diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-08-25 12:01:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-27 12:12:29 +0100 |
commit | d09e6d883042e5d094cd08d829327c4bbbfae135 (patch) | |
tree | 38bd90e164bbaa11ed94b091e43c05841bdd7a1b | |
parent | 8491ca52b86f22c0d9ba8e4c927262dab322969c (diff) | |
download | poky-d09e6d883042e5d094cd08d829327c4bbbfae135.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: 6907da7eb44dca812dbb9e214357ee96e9ff738a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/native.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/nativesdk.bbclass | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 9dec318aa8..adebb97651 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -109,6 +109,7 @@ PKG_CONFIG_SYSROOT_DIR = "" | |||
109 | # we dont want libc-uclibc or libc-glibc to kick in for native recipes | 109 | # we dont want libc-uclibc or libc-glibc to kick in for native recipes |
110 | LIBCOVERRIDE = "" | 110 | LIBCOVERRIDE = "" |
111 | CLASSOVERRIDE = "class-native" | 111 | CLASSOVERRIDE = "class-native" |
112 | MACHINEOVERRIDES = "" | ||
112 | 113 | ||
113 | PATH_prepend = "${COREBASE}/scripts/native-intercept:" | 114 | PATH_prepend = "${COREBASE}/scripts/native-intercept:" |
114 | 115 | ||
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 37c9f79598..5e78116ab8 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 | |||
8 | NATIVESDKLIBC ?= "libc-glibc" | 8 | NATIVESDKLIBC ?= "libc-glibc" |
9 | LIBCOVERRIDE = ":${NATIVESDKLIBC}" | 9 | LIBCOVERRIDE = ":${NATIVESDKLIBC}" |
10 | CLASSOVERRIDE = "class-nativesdk" | 10 | CLASSOVERRIDE = "class-nativesdk" |
11 | MACHINEOVERRIDES = "" | ||
11 | 12 | ||
12 | # | 13 | # |
13 | # Update PACKAGE_ARCH and PACKAGE_ARCHS | 14 | # Update PACKAGE_ARCH and PACKAGE_ARCHS |