]> code.ossystems Code Review - openembedded-core.git/commit
multilib_global: expand multilib pref values properly
authorChristopher Larson <kergoth@gmail.com>
Wed, 1 Jul 2015 15:18:21 +0000 (08:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Jul 2015 22:57:12 +0000 (23:57 +0100)
commit4d208ebacb3a5d189998ac9be6d1a454c45aa975
treea483540506eb4a2fec67518ca6ec162d8a99d3d4
parent8df57b4b1a110dcbaab9652795fe5c0d86019554
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.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/multilib_global.bbclass