[OE-core] [PATCH 5/5] utils: Rely on get_multilib_datastore() to get the original datastore

Richard Purdie richard.purdie at linuxfoundation.org
Thu Aug 23 08:24:57 UTC 2018


get_multilib_datastore() should be able to handle the original datastore
correctly now so rely upon this rather than custom coding.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/utils.bbclass | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 7035f9da253..812129fda7b 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -361,21 +361,7 @@ def all_multilib_tune_list(vars, d):
     for v in vars:
         values[v] = []
 
-    localdata = bb.data.createCopy(d)
-    overrides = localdata.getVar("OVERRIDES", False).split(":")
-    newoverrides = []
-    for o in overrides:
-        if not o.startswith("virtclass-multilib-"):
-            newoverrides.append(o)
-    localdata.setVar("OVERRIDES", ":".join(newoverrides))
-    localdata.setVar("MLPREFIX", "")
-    origdefault = localdata.getVar("DEFAULTTUNE_MULTILIB_ORIGINAL")
-    if origdefault:
-        localdata.setVar("DEFAULTTUNE", origdefault)
-    values['ml'] = ['']
-    for v in vars:
-        values[v].append(localdata.getVar(v))
-    variants = d.getVar("MULTILIB_VARIANTS") or ""
+    variants = (d.getVar("MULTILIB_VARIANTS") or "").split() + ['']
     for item in variants.split():
         localdata = get_multilib_datastore(item, d)
         values[v].append(localdata.getVar(v))
-- 
2.17.1




More information about the Openembedded-core mailing list