diff mbox series

[1/1] multilib_global.bbclass: Avoid expanding native recipes in NON_MULTILIB_RECIPES

Message ID 7ee79c781aea254888bae3aa9873710c31b742a9.1730901843.git.liezhi.yang@windriver.com
State New
Headers show
Series [1/1] multilib_global.bbclass: Avoid expanding native recipes in NON_MULTILIB_RECIPES | expand

Commit Message

Robert Yang Nov. 6, 2024, 2:05 p.m. UTC
From: Robert Yang <liezhi.yang@windriver.com>

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>
---
 meta/classes/multilib_global.bbclass | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes/multilib_global.bbclass b/meta/classes/multilib_global.bbclass
index 973ac9130b..c95c3a586d 100644
--- a/meta/classes/multilib_global.bbclass
+++ b/meta/classes/multilib_global.bbclass
@@ -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 \