]> code.ossystems Code Review - openembedded-core.git/commit
multilib: Fix an OVERRIDES expansion order issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Feb 2013 00:21:53 +0000 (00:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Feb 2013 10:05:10 +0000 (10:05 +0000)
commit920c9024f5a47ad14670067f910450983bae2aa7
tree0f48c14080c6e38668826dc2b616647d4f2aea90
parenta79597994e3f680e34a1a45fb37d76977903ded5
multilib: Fix an OVERRIDES expansion order issue

There were problems where a SRC_URI with:

SRC_URI_append_powerpc = " xxx"
SRC_URI_append_powerpc64 = " xxx2"

would end up with *both* xxx and xxx2 being added when using a multilib
which is clearly incorrect and undesirable.

The issue is that OVERRIDES has virtclass-multilib-xxxx added to it,
this eventually changed DEFAULTTUNE which then changes
TRANSLATED_TARGET_ARCH which is in OVERRIDES meaning we then need to
re-evaluate the overides and the TRANSLATED_TARGET_ARCH gets applied
twice since once you apply an override, it doesn't get undone.

Expanding DEFAULTTUNE to the correct value in advance avoids the issue
and means only the correct overrides get applied.

[YOCTO #3874]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/multilib.bbclass