summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-08-25 12:01:17 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-20 10:41:29 +0100
commit38b1b68923c503f80db4fd68257fa1bd57a518d5 (patch)
treefe4bba99227b2e39d17cf5423adf55e15243ec37
parentec3c8fcf81c643b41dcca5dba8dcf97a2cc4de8e (diff)
downloadpoky-38b1b68923c503f80db4fd68257fa1bd57a518d5.tar.gz
native/nativesdk: Clear MACHINEOVERRIDES
In cases where we override variables e.g PACKAGE_ARCH conditionally and use a MACHINEOVERRIDE to qualify the override like PACKAGE_ARCH_<MACHINE> = "some target PACKAGE_ARCH" This would also be effective if this recipe is BBEXTENDED to native or nativesdk which is undesired This particular issue will cause wrong sysroot to be used for nativesdk case since PACKAGE_ARCH would have been modified and eventually changing value of STAGING_DIR_TARGET which we use as --sysroot option to cross and cross-canadian built SDK gcc (From OE-Core rev: 474234a362b4cda5f2f1afab369c98d4e0ca1b11) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/native.bbclass1
-rw-r--r--meta/classes/nativesdk.bbclass1
2 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 2d182f0ebc..95f62fc1ce 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -104,6 +104,7 @@ PKG_CONFIG_SYSROOT_DIR = ""
104# we dont want libc-uclibc or libc-glibc to kick in for native recipes 104# we dont want libc-uclibc or libc-glibc to kick in for native recipes
105LIBCOVERRIDE = "" 105LIBCOVERRIDE = ""
106CLASSOVERRIDE = "class-native" 106CLASSOVERRIDE = "class-native"
107MACHINEOVERRIDES = ""
107 108
108PATH_prepend = "${COREBASE}/scripts/native-intercept:" 109PATH_prepend = "${COREBASE}/scripts/native-intercept:"
109 110
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 7f94258bf1..fb8971d720 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -8,6 +8,7 @@ STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${S
8NATIVESDKLIBC ?= "libc-glibc" 8NATIVESDKLIBC ?= "libc-glibc"
9LIBCOVERRIDE = ":${NATIVESDKLIBC}" 9LIBCOVERRIDE = ":${NATIVESDKLIBC}"
10CLASSOVERRIDE = "class-nativesdk" 10CLASSOVERRIDE = "class-nativesdk"
11MACHINEOVERRIDES = ""
11 12
12# 13#
13# Update PACKAGE_ARCH and PACKAGE_ARCHS 14# Update PACKAGE_ARCH and PACKAGE_ARCHS