diff options
author | Mike Crowe <mac@mcrowe.com> | 2014-04-16 10:31:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-29 13:42:19 +0100 |
commit | b4e7ebe227f25d7f2149f42cf226781ee3f4c93d (patch) | |
tree | 5ed3ac9eeeb5324805854a0c351cb66ca54410e4 /meta/classes/native.bbclass | |
parent | 9ac13c344b2b2f5c0d67c0f6375734e14476c554 (diff) | |
download | poky-b4e7ebe227f25d7f2149f42cf226781ee3f4c93d.tar.gz |
native.bbclass: Override TARGET_ flags too
TARGET_LDFLAGS is currently defined in bitbake.conf to contain
${TARGET_LINK_HASH_STYLE} which differs between MIPS and other
targets. Since TARGET_LDFLAGS is an exported variable it affects the hash
of every shell task even if it is not used.
We don't want native recipe tasks to have different hashes purely because
they happen to have been built in order to satisfy dependencies for
different MACHINEs since this causes lots of churn in the native sysroot
when switching between MACHINEs.
Making native.bbclass override TARGET_LDFLAGS to use BUILD_LDFLAGS ensures
consistent hashes and is a sensible thing to be doing anyway.
Although they don't appear to have the same detrimental affect on task
hashes TARGET_CPPFLAGS, TARGET_CFLAGS and TARGET_CXXFLAGS should be
overridden too.
(From OE-Core rev: 05a70ac30b37cab0952f1b9df501993a9dec70da)
(From OE-Core rev: ac14407182fe1dec2e53179177344833d20eb2db)
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/native.bbclass')
-rw-r--r-- | meta/classes/native.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 5a318d21d9..2d182f0ebc 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -26,6 +26,10 @@ TARGET_PREFIX = "${BUILD_PREFIX}" | |||
26 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" | 26 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" |
27 | TARGET_LD_ARCH = "${BUILD_LD_ARCH}" | 27 | TARGET_LD_ARCH = "${BUILD_LD_ARCH}" |
28 | TARGET_AS_ARCH = "${BUILD_AS_ARCH}" | 28 | TARGET_AS_ARCH = "${BUILD_AS_ARCH}" |
29 | TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
30 | TARGET_CFLAGS = "${BUILD_CFLAGS}" | ||
31 | TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}" | ||
32 | TARGET_LDFLAGS = "${BUILD_LDFLAGS}" | ||
29 | TARGET_FPU = "" | 33 | TARGET_FPU = "" |
30 | 34 | ||
31 | HOST_ARCH = "${BUILD_ARCH}" | 35 | HOST_ARCH = "${BUILD_ARCH}" |