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-10 13:33:06 +0100 |
commit | 2a0f785c9eed1cb1028416b4076cc6bfea454c2d (patch) | |
tree | d3969e9b5a27257bca7eb776d582252eb5a0f0a0 /meta/classes/base.bbclass | |
parent | 7239530a1383a7be7f6b49fb52ba4e2b9d387786 (diff) | |
download | poky-2a0f785c9eed1cb1028416b4076cc6bfea454c2d.tar.gz |
base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilib
(From OE-Core rev: 4dbc340c63a86879fa727908cfb502f299f5d21b)
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): | |||
184 | if not d.getVar(newname, False): | 184 | if not d.getVar(newname, False): |
185 | d.setVar(newname, p + "-" + val) | 185 | d.setVar(newname, p + "-" + val) |
186 | 186 | ||
187 | |||
188 | mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() | ||
189 | extramp = [] | ||
190 | for p in mp: | ||
191 | if p.endswith("-native") or p.endswith("-nativesdk"): | ||
192 | continue | ||
193 | virt = "" | ||
194 | if p.startswith("virtual/"): | ||
195 | p = p.replace("virtual/", "") | ||
196 | virt = "virtual/" | ||
197 | for pref in prefixes: | ||
198 | extramp.append(virt + pref + "-" + p) | ||
199 | d.setVar("MULTI_PROVIDER_WHITELIST", " ".join(mp + extramp)) | ||
200 | |||
187 | addhandler base_eventhandler | 201 | addhandler base_eventhandler |
188 | python base_eventhandler() { | 202 | python base_eventhandler() { |
189 | from bb import note, error, data | 203 | from bb import note, error, data |