qemuboot.bbclass: do_write_qemuboot_conf after wic

Message ID 20211207083605.845470-1-adrian.freihofer@siemens.com
State New
Headers show
Series qemuboot.bbclass: do_write_qemuboot_conf after wic | expand

Commit Message

Adrian Freihofer Dec. 7, 2021, 8:36 a.m. UTC
Allow to run do_write_qemuboot_conf later. The use case is to create a
cryptographically signed firmware image with wic and boot it with
runqemu. The signatures are generated by wic and forwarded to runqemu.
Therefore do_write_qemuboot_conf must be allowed to run after
do_image_wic.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 meta/classes/qemuboot.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 7a5afe0c1d..12c5501a99 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -89,7 +89,7 @@  QB_ROOTFS_EXTRA_OPT ?= ""
 QB_DRIVE_TYPE ?= "/dev/sd"
 
 # Create qemuboot.conf
-addtask do_write_qemuboot_conf after do_rootfs before do_image
+addtask do_write_qemuboot_conf after do_rootfs before do_image_complete
 IMGDEPLOYDIR ?= "${WORKDIR}/deploy-${PN}-image-complete"
 
 def qemuboot_vars(d):