Patchwork base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilib

login
register
mail settings
Submitter Richard Purdie
Date Aug. 9, 2011, 1:41 p.m.
Message ID <1312897271.14274.293.camel@rex>
Download mbox | patch
Permalink /patch/9535/
State New, archived
Headers show

Comments

Richard Purdie - Aug. 9, 2011, 1:41 p.m.
This avoids errors about multiple providers being built for a given target.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

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