summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-01 12:35:19 +0000
committerSteve Sakoman <steve@sakoman.com>2024-02-22 04:34:14 -1000
commitab7fecefc6d511f64bf236df3605df866c249b9b (patch)
treec921186be8668451e5218136ce7b8a6c7bb5834a
parent10b2dd53ce30478b0df78931619a1904b9143874 (diff)
downloadpoky-ab7fecefc6d511f64bf236df3605df866c249b9b.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: 2e206eb9b43c267e939ccb3cdfa62d9666ff5efa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit dfd704f1741dccd9a85338c5d45dee4be079064d) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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'