* [PATCH] base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilib
@ 2011-08-09 13:41 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2011-08-09 13:41 UTC (permalink / raw)
To: openembedded-core
This avoids errors about multiple providers being built for a given target.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e686652..4332d24 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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-09 13:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 13:41 [PATCH] base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilib Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox