[oe-commits] Peter Seebach : multilib_global.bbclass: PREFERRED_PROVIDERS for multilibs
git at git.openembedded.org
git at git.openembedded.org
Fri Aug 15 07:47:48 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 0e7627bf98db04862e877738cb00e45c6e11856e
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0e7627bf98db04862e877738cb00e45c6e11856e
Author: Peter Seebach <peter.seebach at windriver.com>
Date: Thu Aug 14 13:03:36 2014 -0500
multilib_global.bbclass: PREFERRED_PROVIDERS for multilibs
The code in base.bbclass to spread PREFERRED_PROVIDERS values
to multilibs doesn't work for things which rely on TARGET_PREFIX,
such as virtual/${TARGET_PREFIX}gcc. This is because the expansion
of TARGET_PREFIX produces the wrong value if executed prior to
the assignment of TARGET_VENDOR_virtclass-multilib-libxx, which
will always happen since that assignment doesn't happen until recipe
parsing, but the PREFERRED_PROVIDERS expansion is happening
around ConfigParsed.
To solve this, we make a couple of changes. First, the creation
of the TARGET_VENDOR override values is moved into a new ConfigParsed
event handler in multilib_global. Second, the preferred_ml_updates()
function's code is moved into that function too. It seems safe to
assume that PREFERRED_PROVIDER values only need to be spread to
other multilibs when multilibs are in use.
I don't think this directly affects any use cases that don't involve
third-party or alternative toolchains.
Signed-off-by: Peter Seebach <peter.seebach at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/base.bbclass | 108 --------------------------------
meta/classes/multilib_global.bbclass | 117 ++++++++++++++++++++++++++++++++++-
2 files changed, 114 insertions(+), 111 deletions(-)
Diff: http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=0e7627bf98db04862e877738cb00e45c6e11856e
More information about the Openembedded-commits
mailing list