mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
lib/oe/packagedata: Use the PKGMLTRIPLETS variable
(From OE-Core rev: 26e16a5e5ee1059fb8e55ab915ae9cb8e2b54dcd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -24,30 +24,10 @@ def read_pkgdatafile(fn):
|
|||||||
return pkgdata
|
return pkgdata
|
||||||
|
|
||||||
def all_pkgdatadirs(d):
|
def all_pkgdatadirs(d):
|
||||||
archs = []
|
|
||||||
tos = []
|
|
||||||
tvs = []
|
|
||||||
|
|
||||||
archs.append(d.getVar("PACKAGE_ARCHS", True).split())
|
|
||||||
tos.append(d.getVar("TARGET_OS", True))
|
|
||||||
tvs.append(d.getVar("TARGET_VENDOR", True))
|
|
||||||
|
|
||||||
variants = d.getVar("MULTILIB_VARIANTS", True) or ""
|
|
||||||
for item in variants.split():
|
|
||||||
localdata = bb.data.createCopy(d)
|
|
||||||
overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + item
|
|
||||||
localdata.setVar("OVERRIDES", overrides)
|
|
||||||
bb.data.update_data(localdata)
|
|
||||||
|
|
||||||
archs.append(localdata.getVar("PACKAGE_ARCHS", True).split())
|
|
||||||
tos.append(localdata.getVar("TARGET_OS", True))
|
|
||||||
tvs.append(localdata.getVar("TARGET_VENDOR", True))
|
|
||||||
|
|
||||||
dirs = []
|
dirs = []
|
||||||
for i in range(len(archs)):
|
triplets = (d.getVar("PKGMLTRIPLETS") or "").split()
|
||||||
for arch in archs[i]:
|
for t in triplets:
|
||||||
dirs.append(arch + tvs[i] + "-" + tos[i] + "/runtime/")
|
dirs.append(t + "/runtime/")
|
||||||
dirs.reverse()
|
|
||||||
return dirs
|
return dirs
|
||||||
|
|
||||||
def get_subpkgedata_fn(pkg, d):
|
def get_subpkgedata_fn(pkg, d):
|
||||||
|
|||||||
Reference in New Issue
Block a user