]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
multilib_global.bbclass: Avoid expanding native recipes in NON_MULTILIB_RECIPES
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 6 Nov 2024 14:05:20 +0000 (06:05 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2024 11:19:42 +0000 (11:19 +0000)
Fixed:
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 = "x86"
MACHINE = "qemux86-64"

$ bitbake lib32-grub-native
The build would go on before the patch which was incorrect. Now:

ERROR: Nothing PROVIDES 'lib32-grub-native'. Close matches:
[snip]

The nativesdk doesn't have such an issue, so only skip native.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/multilib_global.bbclass

index 973ac9130b1ced48d0cd0bf358a5c36d2b3b9515..c95c3a586d35b3776a575e63fa1c965cf116e4d1 100644 (file)
@@ -184,6 +184,9 @@ python multilib_virtclass_handler_global () {
     if variant:
         return
 
+    if bb.data.inherits_class('native', d):
+        return
+
     non_ml_recipes = d.getVar('NON_MULTILIB_RECIPES').split()
 
     if bb.data.inherits_class('kernel', d) or \