summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2015-10-29 12:28:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-15 13:14:34 +0000
commit36ea7bd65f64f0b586ad6bb8ef5fa84457543611 (patch)
treebe2f3d03d4e78fc0c2e3df98072629d36714e449
parent619b1c6b7d586a7b6e7853edc68cdeac62bade33 (diff)
downloadpoky-36ea7bd65f64f0b586ad6bb8ef5fa84457543611.tar.gz
allarch: Force TARGET_*FLAGS variable values
TARGET_CPPFLAGS, TARGET_CFLAGS, TARGET_CPPFLAGS and TARGET_LDFLAGS may differ between MACHINEs. Since they are exported they affect task hashes even if unused which leads to multiple variants of allarch packages existing in sstate and bouncing in the sysroot when switching between MACHINEs. allarch packages shouldn't be using these variables anyway, so let's ensure they have a fixed value in order to avoid this problem. (Compare with 05a70ac30b37cab0952f1b9df501993a9dec70da and 14f4d016fef9d660da1e7e91aec4a0e807de59ab.) (From OE-Core master rev: d08fda21bfb7d264c238af0232a22cdd751f5150) (From OE-Core rev: 017b1992c7b9055f3a16e9c2e14535fe81dde6c8) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/allarch.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass
index 4bc99272c4..6f63f9df28 100644
--- a/meta/classes/allarch.bbclass
+++ b/meta/classes/allarch.bbclass
@@ -27,6 +27,10 @@ python () {
27 d.setVar("PACKAGE_EXTRA_ARCHS", "") 27 d.setVar("PACKAGE_EXTRA_ARCHS", "")
28 d.setVar("SDK_ARCH", "none") 28 d.setVar("SDK_ARCH", "none")
29 d.setVar("SDK_CC_ARCH", "none") 29 d.setVar("SDK_CC_ARCH", "none")
30 d.setVar("TARGET_CPPFLAGS", "none")
31 d.setVar("TARGET_CFLAGS", "none")
32 d.setVar("TARGET_CXXFLAGS", "none")
33 d.setVar("TARGET_LDFLAGS", "none")
30 34
31 # Avoid this being unnecessarily different due to nuances of 35 # Avoid this being unnecessarily different due to nuances of
32 # the target machine that aren't important for "all" arch 36 # the target machine that aren't important for "all" arch