diff options
| author | Weisser, Pascal.ext <Pascal.Weisser.ext@karlstorz.com> | 2024-07-03 12:56:03 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-08-26 05:18:44 -0700 |
| commit | 2d07b2b7342cb663a03a3d6976570ca26af651b5 (patch) | |
| tree | 7596852796babb545f902d86f592ac4e8af8ef20 /meta/classes-recipe/qemuboot.bbclass | |
| parent | 3ecf8641bb7c7b194a4bb33d7b4d61ea6823f5a0 (diff) | |
| download | poky-2d07b2b7342cb663a03a3d6976570ca26af651b5.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: fd21b5fa159e4c612475152e998ae85526fd60d9)
Signed-off-by: "Weisser, Pascal" <pascal.weisser.ext@karlstorz.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f8b3975a9ce36ea7af5fd76243a823da2842415b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes-recipe/qemuboot.bbclass')
| -rw-r--r-- | meta/classes-recipe/qemuboot.bbclass | 3 |
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 | ||
| 130 | def qemuboot_vars(d): | 130 | def 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_')] |
