summaryrefslogtreecommitdiffstats
path: root/meta/classes/multilib.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 17:03:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 17:13:19 +0100
commitae48ee6627e6c1c4f1fcc4ead40edc968e64f7fe (patch)
tree7c4a020d0e3663885487ebb985dc1014bf1b3325 /meta/classes/multilib.bbclass
parent2c1978fe1a5b72167c49010fbdd39a9e2eefdef8 (diff)
downloadopenembedded-core-ae48ee6627e6c1c4f1fcc4ead40edc968e64f7fe.tar.gz
openembedded-core-ae48ee6627e6c1c4f1fcc4ead40edc968e64f7fe.tar.bz2
openembedded-core-ae48ee6627e6c1c4f1fcc4ead40edc968e64f7fe.zip
multilib: Fix issues with some cross-canadian toolchain sysroots
MACHINE = "qemumips64" MULTILIBS = "multilib:lib64 multilib:lib32" DEFAULTTUNE = "mips64-n32" DEFAULTTUNE_virtclass-multilib-lib64 = "mips64" DEFAULTTUNE_virtclass-multilib-lib32 = "mips32r2" bitbake core-image-minimal -c populate_sdk Results in gcc-cross-canadian-mips failing to build due to the use of an incorrect sysroot, fix this. All nativesdk pieces should be in the same sysroot (unprefixed). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/multilib.bbclass')
-rw-r--r--meta/classes/multilib.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 1dcd350298..3831d2bab2 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -35,6 +35,8 @@ python multilib_virtclass_handler () {
return
if bb.data.inherits_class('cross-canadian', e.data):
+ # Multilib cross-candian should use the same nativesdk sysroot without MLPREFIX
+ e.data.setVar("RECIPE_SYSROOT", "${WORKDIR}/recipe-sysroot")
e.data.setVar("MLPREFIX", variant + "-")
override = ":virtclass-multilib-" + variant
e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override)