summaryrefslogtreecommitdiffstats
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-07 23:08:55 +0000
commitd21cf7ca124eac07f46534d12851ebdd7e8d3bcb (patch)
tree9bcad3ad8b92a91a44c4130a0ad108c840883127
parente06de80a616ce2c78c6b416149710fcb45f6e986 (diff)
downloadpoky-d21cf7ca124eac07f46534d12851ebdd7e8d3bcb.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) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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