summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorWeisser, Pascal.ext <Pascal.Weisser.ext@karlstorz.com>2024-07-03 12:56:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-04 22:56:15 +0100
commit2e9e8f6fb3415f9aac6b5f96e8e7c8d9ced5beb5 (patch)
treecd0988dde03d34a7267b9c0e284230059c324033 /meta/classes-recipe
parente1492d20b13accb5e6d0b5eafd974b2749dda201 (diff)
downloadpoky-2e9e8f6fb3415f9aac6b5f96e8e7c8d9ced5beb5.tar.gz
qemuboot: Trigger write_qemuboot_conf task on changes of kernel image realpath
The qemuboot.conf file contains the realpath of the kernel image referenced by QB_DEFAULT_KERNEL. So, it must be recreated in case the realpath of the referenced kernel image changes. The variables KERNEL_IMAGE_NAME and KERNEL_IMAGE_BIN_EXT determine the realpath of the kernel image relative to DEPLOY_DIR_IMAGE. Adding both of them to the vardeps of the write_qemuboot_conf task triggers the write_qemuboot_conf task in case the realpath of the kernel image referenced by QB_DEFAULT_KERNEL changes. Fixes: [YOCTO 15525] (From OE-Core rev: f8b3975a9ce36ea7af5fd76243a823da2842415b) Signed-off-by: "Weisser, Pascal" <pascal.weisser.ext@karlstorz.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/qemuboot.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass
index 895fd38d68..0f80c60ab5 100644
--- a/meta/classes-recipe/qemuboot.bbclass
+++ b/meta/classes-recipe/qemuboot.bbclass
@@ -129,7 +129,8 @@ addtask do_write_qemuboot_conf after do_rootfs before do_image
129 129
130def qemuboot_vars(d): 130def qemuboot_vars(d):
131 build_vars = ['MACHINE', 'TUNE_ARCH', 'DEPLOY_DIR_IMAGE', 131 build_vars = ['MACHINE', 'TUNE_ARCH', 'DEPLOY_DIR_IMAGE',
132 'KERNEL_IMAGETYPE', 'IMAGE_NAME', 'IMAGE_LINK_NAME', 132 'KERNEL_IMAGETYPE', 'KERNEL_IMAGE_NAME',
133 'KERNEL_IMAGE_BIN_EXT', 'IMAGE_NAME', 'IMAGE_LINK_NAME',
133 'STAGING_DIR_NATIVE', 'STAGING_BINDIR_NATIVE', 134 'STAGING_DIR_NATIVE', 'STAGING_BINDIR_NATIVE',
134 'STAGING_DIR_HOST', 'SERIAL_CONSOLES', 'UNINATIVE_LOADER'] 135 'STAGING_DIR_HOST', 'SERIAL_CONSOLES', 'UNINATIVE_LOADER']
135 return build_vars + [k for k in d.keys() if k.startswith('QB_')] 136 return build_vars + [k for k in d.keys() if k.startswith('QB_')]