mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
3ab224951c
commit
41ea1be73c
|
@ -364,12 +364,7 @@ def multilib_pkg_extend(d, pkg):
|
|||
return pkgs
|
||||
|
||||
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
|
||||
get_multilib_datastore[vardepsexclude] = "OVERRIDES"
|
||||
return oe.utils.get_multilib_datastore(variant, d)
|
||||
|
||||
def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' '):
|
||||
"""Return a string of all ${var} in all multilib tune configuration"""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user