summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <peter.x.liu@external.atlascopco.com>2017-04-06 14:09:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-08 22:48:07 +0100
commit55c83cb239df5faf5e2143fffca47f2f16931cb3 (patch)
treee7e6f1d43ff0abe2bfee098c173b2e828cbfea62
parent5b69eef40868180c59400624096d7ebbbbea446b (diff)
downloadopenembedded-core-contrib-55c83cb239df5faf5e2143fffca47f2f16931cb3.tar.gz
openembedded-core-contrib-55c83cb239df5faf5e2143fffca47f2f16931cb3.tar.bz2
openembedded-core-contrib-55c83cb239df5faf5e2143fffca47f2f16931cb3.zip
cross.bbclass: override TARGET_* flags
Some TARGET_* flags are being exported in bitbake.conf currently, so they are impacting all the tasks of a cross recipe even they are not in use at all. This can lead a lot of churn when the cross sysroot are shared by machines while they have defined different TARGET_* flags. And sometimes it even causes "Taskhash mismatch" errors. Fix it by overriding with BUILD_* flags. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/cross.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 2602153a97..8757303678 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -28,6 +28,11 @@ MULTIMACH_TARGET_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR = ""
+TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}"
+TARGET_CFLAGS = "${BUILD_CFLAGS}"
+TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}"
+TARGET_LDFLAGS = "${BUILD_LDFLAGS}"
+
CPPFLAGS = "${BUILD_CPPFLAGS}"
CFLAGS = "${BUILD_CFLAGS}"
CXXFLAGS = "${BUILD_CFLAGS}"