From b241a666f2867ffa425f6d43763d7c3c17941dcf Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 20 Dec 2017 17:08:40 +0000 Subject: 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. Signed-off-by: Richard Purdie --- meta/lib/oe/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta/lib/oe/utils.py') 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): version = match.group(1) return "-%s" % version if version in ("4.8", "4.9") else "" + +def get_multilib_datastore(variant, d): + localdata = bb.data.createCopy(d) + overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + variant + localdata.setVar("OVERRIDES", overrides) + localdata.setVar("MLPREFIX", variant + "-") + return localdata + # # Python 2.7 doesn't have threaded pools (just multiprocessing) # so implement a version here -- cgit 1.2.3-korg