]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/qemuboot: add depends on qemu-system-native and qemu-helper-native
authorRoss Burton <ross.burton@arm.com>
Fri, 22 Mar 2024 16:49:59 +0000 (16:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Mar 2024 13:01:12 +0000 (13:01 +0000)
Any image that inherits qemuboot must also add image dependencies on
qemu-system-native and qemu-helper-native, otherwise the image won't
be able to be booted.

Currently this is done by conf/machine/include/qemu.inc, but not every
machine that uses qemuboot includes that file.

Move the EXTRA_IMAGEDEPENDS from qemu.inc into qemuboot.bbclass, so that
the dependencies don't have to be duplicated.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/qemuboot.bbclass
meta/conf/machine/include/qemu.inc

index 4a563b8cccded5930aa60143a34505b836735dfa..895fd38d6847763f05f5a0c3e23b4fbcf24f8d60 100644 (file)
@@ -185,3 +185,5 @@ python do_write_qemuboot_conf() {
            os.remove(qemuboot_link)
         os.symlink(os.path.basename(qemuboot), qemuboot_link)
 }
+
+EXTRA_IMAGEDEPENDS += "qemu-system-native qemu-helper-native:do_addto_recipe_sysroot"
index 14feb867906a64de584db534168a4642c5da33f4..bb7aec76750170b152f03869507d1a309aa4ca17 100644 (file)
@@ -23,8 +23,6 @@ RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""
 # Use a common kernel recipe for all QEMU machines
 PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto"
 
-EXTRA_IMAGEDEPENDS += "qemu-system-native qemu-helper-native:do_addto_recipe_sysroot"
-
 # Provide the nfs server kernel module for all qemu images
 KERNEL_FEATURES:append:pn-linux-yocto = " features/nfsd/nfsd-enable.scc"
 KERNEL_FEATURES:append:pn-linux-yocto-rt = " features/nfsd/nfsd-enable.scc"