summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2015-07-01 08:18:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-08 00:01:20 +0100
commitd1874becab00582634902c190122beb2a951b4c2 (patch)
tree382ba72732f88071d8c08f7d6d3b14ad16855d56
parentcb196d2f0d2842cb69c812c77dafcc1a6018dcab (diff)
downloadpoky-d1874becab00582634902c190122beb2a951b4c2.tar.gz
multilib_global: expand multilib pref values properly
This ensures that in cases where the preference value changes when the multilib override is applied, we correctly expand it in that context. For example, for `PREFERRED_PROVIDER_${TARGET_PREFIX}gcc = "gcc-external-cross-${TARGET_ARCH}"`, when it sets the prefixed version of this, we want TARGET_ARCH expanded with the multilib applied, otherwise the arch suffix will be incorrect for that context. We ran into this trying to use preferences in meta-sourcery along with multilibs. We worked around it there via PNBLACKLIST, but this fix should still go into the core. (From OE-Core rev: 4d208ebacb3a5d189998ac9be6d1a454c45aa975) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/multilib_global.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/multilib_global.bbclass b/meta/classes/multilib_global.bbclass
index 67bd70d293..ed34404117 100644
--- a/meta/classes/multilib_global.bbclass
+++ b/meta/classes/multilib_global.bbclass
@@ -84,7 +84,7 @@ def preferred_ml_updates(d):
84 # implement alternative multilib name 84 # implement alternative multilib name
85 newname = localdata.expand("PREFERRED_PROVIDER_" + virt + p + "-" + pkg) 85 newname = localdata.expand("PREFERRED_PROVIDER_" + virt + p + "-" + pkg)
86 if not d.getVar(newname, False): 86 if not d.getVar(newname, False):
87 d.setVar(newname, newval) 87 d.setVar(newname, localdata.expand(newval))
88 # Avoid future variable key expansion 88 # Avoid future variable key expansion
89 provexp = d.expand(prov) 89 provexp = d.expand(prov)
90 if prov != provexp and d.getVar(prov, False): 90 if prov != provexp and d.getVar(prov, False):