summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-01 12:35:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-18 10:15:58 +0000
commit55eaa3eb3f87fb900f4ea6e387ffbad73d78580c (patch)
tree353ab92fab18b079d62b79d50ad08e6fc8580974 /meta
parentc56fce9e5621bf4353eb112a2555be7aadb048e6 (diff)
downloadpoky-55eaa3eb3f87fb900f4ea6e387ffbad73d78580c.tar.gz
allarch: Fix allarch corner case
Most of the allarch code is conditional and only set if the recipe remains marked as allarch. The qemu wrapper handling is not handled in the same way however and is unconditional. Move the code to some slightly uglier inline python to allow it to be conditional and match the way the rest of the code works. (From OE-Core rev: dfd704f1741dccd9a85338c5d45dee4be079064d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/allarch.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/allarch.bbclass b/meta/classes-recipe/allarch.bbclass
index 9138f40ed8..e429b92437 100644
--- a/meta/classes-recipe/allarch.bbclass
+++ b/meta/classes-recipe/allarch.bbclass
@@ -63,9 +63,9 @@ python () {
63 d.appendVarFlag("emit_pkgdata", "vardepsexclude", " MULTILIB_VARIANTS") 63 d.appendVarFlag("emit_pkgdata", "vardepsexclude", " MULTILIB_VARIANTS")
64 d.appendVarFlag("write_specfile", "vardepsexclude", " MULTILIBS") 64 d.appendVarFlag("write_specfile", "vardepsexclude", " MULTILIBS")
65 d.appendVarFlag("do_package", "vardepsexclude", " package_do_shlibs") 65 d.appendVarFlag("do_package", "vardepsexclude", " package_do_shlibs")
66
67 d.setVar("qemu_wrapper_cmdline", "def qemu_wrapper_cmdline(data, rootfs_path, library_paths):\n return 'false'")
66 elif bb.data.inherits_class('packagegroup', d) and not bb.data.inherits_class('nativesdk', d): 68 elif bb.data.inherits_class('packagegroup', d) and not bb.data.inherits_class('nativesdk', d):
67 bb.error("Please ensure recipe %s sets PACKAGE_ARCH before inherit packagegroup" % d.getVar("FILE")) 69 bb.error("Please ensure recipe %s sets PACKAGE_ARCH before inherit packagegroup" % d.getVar("FILE"))
68} 70}
69 71
70def qemu_wrapper_cmdline(data, rootfs_path, library_paths):
71 return 'false'