diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-31 22:38:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-24 21:45:58 +0000 |
commit | 5ed5ca2f03ddb7e678b428c10674dd0b91cf64a0 (patch) | |
tree | d37fbc604a80ec5b307037a979957ec4969658f4 /meta/classes | |
parent | 0eb20f7cc40994463d9298240de25c0958cd5d14 (diff) | |
download | poky-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.bbclass | 8 |
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}" | |||
21 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" | 21 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" |
22 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" | 22 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" |
23 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" | 23 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" |
24 | TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}" | 24 | TARGET_CPPFLAGS = "" |
25 | TARGET_CFLAGS = "${BUILD_CFLAGS}" | 25 | TARGET_CFLAGS = "" |
26 | TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}" | 26 | TARGET_CXXFLAGS = "" |
27 | TARGET_LDFLAGS = "${BUILD_LDFLAGS}" | 27 | TARGET_LDFLAGS = "" |
28 | TARGET_FPU = "" | 28 | TARGET_FPU = "" |
29 | 29 | ||
30 | 30 | ||