diff options
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 10cb84ac91..8a74d6e578 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -157,15 +157,15 @@ def preferred_ml_updates(d): | |||
157 | for v in versions: | 157 | for v in versions: |
158 | val = d.getVar(v, False) | 158 | val = d.getVar(v, False) |
159 | pkg = v.replace("PREFERRED_VERSION_", "") | 159 | pkg = v.replace("PREFERRED_VERSION_", "") |
160 | if pkg.endswith(("-native", "-crosssdk")) or pkg.startswith(("nativesdk-", "virtual/nativesdk-")): | 160 | if pkg.endswith("-native") or "-crosssdk-" in pkg or pkg.startswith(("nativesdk-", "virtual/nativesdk-")): |
161 | continue | 161 | continue |
162 | if 'cross-canadian' in pkg: | 162 | if '-cross-' in pkg and '${' in pkg: |
163 | for p in prefixes: | 163 | for p in prefixes: |
164 | localdata = bb.data.createCopy(d) | 164 | localdata = bb.data.createCopy(d) |
165 | override = ":virtclass-multilib-" + p | 165 | override = ":virtclass-multilib-" + p |
166 | localdata.setVar("OVERRIDES", localdata.getVar("OVERRIDES", False) + override) | 166 | localdata.setVar("OVERRIDES", localdata.getVar("OVERRIDES", False) + override) |
167 | bb.data.update_data(localdata) | 167 | bb.data.update_data(localdata) |
168 | newname = localdata.expand(v) | 168 | newname = localdata.expand(v).replace("PREFERRED_VERSION_", "PREFERRED_VERSION_" + p + '-') |
169 | if newname != v: | 169 | if newname != v: |
170 | newval = localdata.expand(val) | 170 | newval = localdata.expand(val) |
171 | d.setVar(newname, newval) | 171 | d.setVar(newname, newval) |