diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-09 13:29:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-11 12:27:22 +0100 |
commit | bc19e915fbbb932f7ad7bb8a0b7fb3227f94562f (patch) | |
tree | a2618b4c0fb8e46bce86dc2eb84cc7642a625327 /meta/classes/base.bbclass | |
parent | fe0219ccc8c2a9e61be9ac5231fcae7b9d29ce5e (diff) | |
download | poky-bc19e915fbbb932f7ad7bb8a0b7fb3227f94562f.tar.gz |
classes/lib/oe: Fix cross/crosssdk references
With the renaming of the cross packages, its no longer possible to use
endswith("-cross") and similar to detect cross packages. Replace these
references with other techniques.
This resolves certain build from sstate failures which were due to the
system believing cross packages were target packages and therefore
dependency handling was altered.
(From OE-Core rev: 91edf4cac223298e50a4b8e59dd19f1b272e3418)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 8a74d6e578..c0d2c8ec88 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -182,7 +182,7 @@ def preferred_ml_updates(d): | |||
182 | for prov in providers: | 182 | for prov in providers: |
183 | val = d.getVar(prov, False) | 183 | val = d.getVar(prov, False) |
184 | pkg = prov.replace("PREFERRED_PROVIDER_", "") | 184 | pkg = prov.replace("PREFERRED_PROVIDER_", "") |
185 | if pkg.endswith(("-native", "-crosssdk")) or pkg.startswith(("nativesdk-", "virtual/nativesdk-")): | 185 | if pkg.endswith("-native") or "-crosssdk-" in pkg or pkg.startswith(("nativesdk-", "virtual/nativesdk-")): |
186 | continue | 186 | continue |
187 | if 'cross-canadian' in pkg: | 187 | if 'cross-canadian' in pkg: |
188 | for p in prefixes: | 188 | for p in prefixes: |
@@ -229,7 +229,7 @@ def preferred_ml_updates(d): | |||
229 | mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() | 229 | mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() |
230 | extramp = [] | 230 | extramp = [] |
231 | for p in mp: | 231 | for p in mp: |
232 | if p.endswith(("-native", "-crosssdk")) or p.startswith(("nativesdk-", "virtual/nativesdk-")) or 'cross-canadian' in p: | 232 | if p.endswith("-native") or "-crosssdk-" in p or p.startswith(("nativesdk-", "virtual/nativesdk-")) or 'cross-canadian' in p: |
233 | continue | 233 | continue |
234 | virt = "" | 234 | virt = "" |
235 | if p.startswith("virtual/"): | 235 | if p.startswith("virtual/"): |
@@ -413,7 +413,7 @@ python () { | |||
413 | appends = bb.utils.explode_deps(d.expand(" ".join(appends))) | 413 | appends = bb.utils.explode_deps(d.expand(" ".join(appends))) |
414 | newappends = [] | 414 | newappends = [] |
415 | for a in appends: | 415 | for a in appends: |
416 | if a.endswith("-native") or a.endswith("-cross"): | 416 | if a.endswith("-native") or ("-cross-" in a): |
417 | newappends.append(a) | 417 | newappends.append(a) |
418 | elif a.startswith("virtual/"): | 418 | elif a.startswith("virtual/"): |
419 | subs = a.split("/", 1)[1] | 419 | subs = a.split("/", 1)[1] |