summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-31 22:38:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-24 21:45:58 +0000
commit5ed5ca2f03ddb7e678b428c10674dd0b91cf64a0 (patch)
treed37fbc604a80ec5b307037a979957ec4969658f4 /meta/classes
parent0eb20f7cc40994463d9298240de25c0958cd5d14 (diff)
downloadpoky-5ed5ca2f03ddb7e678b428c10674dd0b91cf64a0.tar.gz
crosssdk: Remove usage of host flags for cross-compilation
Similarlly to OE-Core rev 4b936cde58ca0a6f34092ce82640a02859110411 for cross.sdk, BUILD_* flags can't be used as TARGET_* flags gcc-crosssdk buils leaks config.log's through "gcc-stashed-builddir" and TARGET_* flags to libgcc cross-build through "gcc/libgcc.mvars" file on "gcc-stashed-builddir". This means that if BUILD_CFLAGS contains host-specific flags like "-isystem/usr/include" libgcc build will fail "do_qa_configure" and "do_package_qa" checks. Remove host-related flags from TARGET_* flags for gcc-crosssdk builds. [YOCTO #11874] (From OE-Core rev: 6e162e619b6f5173c073cd9bedbcadf205017e30) (From OE-Core rev: 702917592ffca04fb1447fca60f6377ef96a57a0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/crosssdk.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index ddb98d22bc..03b0c602c3 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -21,10 +21,10 @@ TARGET_PREFIX = "${SDK_PREFIX}"
21TARGET_CC_ARCH = "${SDK_CC_ARCH}" 21TARGET_CC_ARCH = "${SDK_CC_ARCH}"
22TARGET_LD_ARCH = "${SDK_LD_ARCH}" 22TARGET_LD_ARCH = "${SDK_LD_ARCH}"
23TARGET_AS_ARCH = "${SDK_AS_ARCH}" 23TARGET_AS_ARCH = "${SDK_AS_ARCH}"
24TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}" 24TARGET_CPPFLAGS = ""
25TARGET_CFLAGS = "${BUILD_CFLAGS}" 25TARGET_CFLAGS = ""
26TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}" 26TARGET_CXXFLAGS = ""
27TARGET_LDFLAGS = "${BUILD_LDFLAGS}" 27TARGET_LDFLAGS = ""
28TARGET_FPU = "" 28TARGET_FPU = ""
29 29
30 30