summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-20 17:08:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-04 12:57:43 +0000
commit41ea1be73c1945403440a0e38a156227702d415f (patch)
tree65278d415ca4bce80f3042e2fbe5298e6389f05d /meta/lib/oe/utils.py
parent3ab224951c3210e8a5a3a1f5995372b0f2501163 (diff)
downloadpoky-41ea1be73c1945403440a0e38a156227702d415f.tar.gz
utils: Make get_multilib_datastore available from lib/oe
Currently we can't access this function from lib/oe as its a class function. Move it to allow such access. (From OE-Core rev: b241a666f2867ffa425f6d43763d7c3c17941dcf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r--meta/lib/oe/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 1897c5faea..7a79d752b6 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -281,6 +281,14 @@ def host_gcc_version(d):
281 version = match.group(1) 281 version = match.group(1)
282 return "-%s" % version if version in ("4.8", "4.9") else "" 282 return "-%s" % version if version in ("4.8", "4.9") else ""
283 283
284
285def get_multilib_datastore(variant, d):
286 localdata = bb.data.createCopy(d)
287 overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + variant
288 localdata.setVar("OVERRIDES", overrides)
289 localdata.setVar("MLPREFIX", variant + "-")
290 return localdata
291
284# 292#
285# Python 2.7 doesn't have threaded pools (just multiprocessing) 293# Python 2.7 doesn't have threaded pools (just multiprocessing)
286# so implement a version here 294# so implement a version here