diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-22 17:01:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-23 17:58:59 +0100 |
commit | 99d40ac0920760ec3b8d2dc5ab1ceaa89096ae29 (patch) | |
tree | ced56228e03c5be4b854f85a1006a8aac0da8bc0 /meta/classes/utils.bbclass | |
parent | 2988d730a3d469f9250222b1b7f3cae03dd17eba (diff) | |
download | poky-99d40ac0920760ec3b8d2dc5ab1ceaa89096ae29.tar.gz |
utils: Rely on get_multilib_datastore() to get the original datastore
get_multilib_datastore() should be able to handle the original datastore
correctly now so rely upon this rather than custom coding.
(From OE-Core rev: 2ae85af480066e252fca01f3005ecac2ff37a8d4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 7035f9da25..812129fda7 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -361,21 +361,7 @@ def all_multilib_tune_list(vars, d): | |||
361 | for v in vars: | 361 | for v in vars: |
362 | values[v] = [] | 362 | values[v] = [] |
363 | 363 | ||
364 | localdata = bb.data.createCopy(d) | 364 | variants = (d.getVar("MULTILIB_VARIANTS") or "").split() + [''] |
365 | overrides = localdata.getVar("OVERRIDES", False).split(":") | ||
366 | newoverrides = [] | ||
367 | for o in overrides: | ||
368 | if not o.startswith("virtclass-multilib-"): | ||
369 | newoverrides.append(o) | ||
370 | localdata.setVar("OVERRIDES", ":".join(newoverrides)) | ||
371 | localdata.setVar("MLPREFIX", "") | ||
372 | origdefault = localdata.getVar("DEFAULTTUNE_MULTILIB_ORIGINAL") | ||
373 | if origdefault: | ||
374 | localdata.setVar("DEFAULTTUNE", origdefault) | ||
375 | values['ml'] = [''] | ||
376 | for v in vars: | ||
377 | values[v].append(localdata.getVar(v)) | ||
378 | variants = d.getVar("MULTILIB_VARIANTS") or "" | ||
379 | for item in variants.split(): | 365 | for item in variants.split(): |
380 | localdata = get_multilib_datastore(item, d) | 366 | localdata = get_multilib_datastore(item, d) |
381 | values[v].append(localdata.getVar(v)) | 367 | values[v].append(localdata.getVar(v)) |