base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilib

(From OE-Core rev: 4dbc340c63a86879fa727908cfb502f299f5d21b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-08-09 14:35:34 +01:00
parent 7239530a13
commit 2a0f785c9e
1 changed files with 14 additions and 0 deletions

View File

@ -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