multilib_global.bbclass: Avoid expanding native recipes in NON_MULTILIB_RECIPES

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.

(From OE-Core rev: 73bea15bb5d0f70b587d2ad1007cc0282652eed7)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang
2024-11-06 06:05:20 -08:00
committed by Richard Purdie
parent eca49ca726
commit 242e47dd09

View 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 \