]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
allarch: Fix allarch corner case
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Jan 2024 12:35:19 +0000 (12:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jan 2024 10:13:41 +0000 (10:13 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/allarch.bbclass

index 9138f40ed84030f1117c6435b4b69137ffacc97e..e429b924370b2be94072b61898fee0b7d13e297f 100644 (file)
@@ -63,9 +63,9 @@ python () {
         d.appendVarFlag("emit_pkgdata", "vardepsexclude", " MULTILIB_VARIANTS")
         d.appendVarFlag("write_specfile", "vardepsexclude", " MULTILIBS")
         d.appendVarFlag("do_package", "vardepsexclude", " package_do_shlibs")
+
+        d.setVar("qemu_wrapper_cmdline", "def qemu_wrapper_cmdline(data, rootfs_path, library_paths):\n    return 'false'")
     elif bb.data.inherits_class('packagegroup', d) and not bb.data.inherits_class('nativesdk', d):
         bb.error("Please ensure recipe %s sets PACKAGE_ARCH before inherit packagegroup" % d.getVar("FILE"))
 }
 
-def qemu_wrapper_cmdline(data, rootfs_path, library_paths):
-    return 'false'