diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-09 14:35:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-09 16:46:52 +0100 |
commit | 4dbc340c63a86879fa727908cfb502f299f5d21b (patch) | |
tree | 242163826b5ff24ceb599e508a4d0e84eb563d00 /meta/classes/base.bbclass | |
parent | c69453fe94a649c518b0e6d79616f05579b864ce (diff) | |
download | openembedded-core-4dbc340c63a86879fa727908cfb502f299f5d21b.tar.gz openembedded-core-4dbc340c63a86879fa727908cfb502f299f5d21b.tar.bz2 openembedded-core-4dbc340c63a86879fa727908cfb502f299f5d21b.zip |
base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilib
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index e686652f16..4332d2434e 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -184,6 +184,20 @@ def preferred_ml_updates(d): if not d.getVar(newname, False): d.setVar(newname, p + "-" + val) + + mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() + extramp = [] + for p in mp: + if p.endswith("-native") or p.endswith("-nativesdk"): + continue + virt = "" + if p.startswith("virtual/"): + p = p.replace("virtual/", "") + virt = "virtual/" + for pref in prefixes: + extramp.append(virt + pref + "-" + p) + d.setVar("MULTI_PROVIDER_WHITELIST", " ".join(mp + extramp)) + addhandler base_eventhandler python base_eventhandler() { from bb import note, error, data |