]> code.ossystems Code Review - openembedded-core.git/commit
native.bbclass: Override TARGET_ flags too
authorMike Crowe <mac@mcrowe.com>
Wed, 16 Apr 2014 09:31:36 +0000 (10:31 +0100)
committerSaul Wold <sgw@linux.intel.com>
Fri, 23 May 2014 16:09:39 +0000 (09:09 -0700)
commitac14407182fe1dec2e53179177344833d20eb2db
tree10b92f4c7ade7a493801556acbe393aab5a84add
parentcfb4539b932e9f6c686206840e0cd60d0af86adb
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)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/native.bbclass