diff options
author | Ming Liu <peter.x.liu@external.atlascopco.com> | 2017-04-06 14:09:41 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:44 +0100 |
commit | b9f9bb443b270aeef0176105c4a74b71b26b92b6 (patch) | |
tree | 03317a10b617705ccaa77806c74ed787ba152cd4 /meta/classes/cross.bbclass | |
parent | 23095a6b011c7473bbf9c5f6b79c22c364a10bac (diff) | |
download | poky-b9f9bb443b270aeef0176105c4a74b71b26b92b6.tar.gz |
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.
(From OE-Core rev: 55c83cb239df5faf5e2143fffca47f2f16931cb3)
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 5 |
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}" | |||
28 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" | 28 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" |
29 | export PKG_CONFIG_SYSROOT_DIR = "" | 29 | export PKG_CONFIG_SYSROOT_DIR = "" |
30 | 30 | ||
31 | TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
32 | TARGET_CFLAGS = "${BUILD_CFLAGS}" | ||
33 | TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}" | ||
34 | TARGET_LDFLAGS = "${BUILD_LDFLAGS}" | ||
35 | |||
31 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 36 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
32 | CFLAGS = "${BUILD_CFLAGS}" | 37 | CFLAGS = "${BUILD_CFLAGS}" |
33 | CXXFLAGS = "${BUILD_CFLAGS}" | 38 | CXXFLAGS = "${BUILD_CFLAGS}" |