| Message ID | 20260601165912.533636-1-sivakumar.bs@gmail.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | [v2] qemuboot.bbclass: add missing task dependency on kernel deploy | expand |
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass index 56106b1958..db971d50bd 100644 --- a/meta/classes-recipe/qemuboot.bbclass +++ b/meta/classes-recipe/qemuboot.bbclass @@ -128,6 +128,7 @@ inherit image-artifact-names # Create qemuboot.conf addtask do_write_qemuboot_conf after do_rootfs before do_image +do_write_qemuboot_conf[depends] += "${KERNEL_DEPLOY_DEPEND}" def qemuboot_vars(d): build_vars = ['MACHINE', 'TUNE_ARCH', 'DEPLOY_DIR_IMAGE',
do_write_qemuboot_conf had no dependency on the kernel deploy task, so if the kernel was rebuilt without invalidating the rootfs sstate, the task was skipped and .qemuboot.conf was left stale while new image artifacts were deployed with a new timestamp suffix. Add do_write_qemuboot_conf[depends] on KERNEL_DEPLOY_DEPEND, which is the same variable used by do_build[depends] in image.bbclass for the same reason. Since KERNEL_DEPLOY_DEPEND is defined with ?= it correctly handles firmware and baremetal images that override it to their own deploy target. Fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14520 Signed-off-by: Siva Balasubramanian <sivakumar.bs@gmail.com> --- meta/classes-recipe/qemuboot.bbclass | 1 + 1 file changed, 1 insertion(+)