diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-16 08:20:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-16 08:22:45 +0100 |
commit | 7095d8da4b3e1a6bc475f1cb5e6d7fedb2a76901 (patch) | |
tree | a9c66fc4ff7fcf26c6938e4b33146e0852f1701a | |
parent | 5f69b6692711ab62597be7e5bc72a9f648d8f67b (diff) | |
download | poky-7095d8da4b3e1a6bc475f1cb5e6d7fedb2a76901.tar.gz |
crosssdk: Clear MACHINEOVERRIDES
Without this, things like arm* can make it into OVERRIDES when we're
building a compiler to build binaries for another architecture like
x86. This can can lead to build failures dependning on the
exact configuration and overrides.
For example:
MACHINE=imx53qsb bitbake gcc-crosssdk-initial-x86_64 -e | grep EXTRA_OECONF
was showing an armv7 configuration option to gcc.
(From OE-Core rev: 859ac3fdb75303f9f0b4bf1d8d83db0069f0a27b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/crosssdk.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass index 7a10c596eb..87d5cf5d37 100644 --- a/meta/classes/crosssdk.bbclass +++ b/meta/classes/crosssdk.bbclass | |||
@@ -1,6 +1,7 @@ | |||
1 | inherit cross | 1 | inherit cross |
2 | 2 | ||
3 | CLASSOVERRIDE = "class-crosssdk" | 3 | CLASSOVERRIDE = "class-crosssdk" |
4 | MACHINEOVERRIDES = "" | ||
4 | PACKAGE_ARCH = "${SDK_ARCH}" | 5 | PACKAGE_ARCH = "${SDK_ARCH}" |
5 | python () { | 6 | python () { |
6 | # set TUNE_PKGARCH to SDK_ARCH | 7 | # set TUNE_PKGARCH to SDK_ARCH |