diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-18 23:08:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-22 09:45:47 +0100 |
commit | 26e16a5e5ee1059fb8e55ab915ae9cb8e2b54dcd (patch) | |
tree | 733862ec4389656a8c444ba35283d04722cf6832 | |
parent | f91322edc8b9f2a5906f3908bde2508ae97f2816 (diff) | |
download | openembedded-core-26e16a5e5ee1059fb8e55ab915ae9cb8e2b54dcd.tar.gz openembedded-core-26e16a5e5ee1059fb8e55ab915ae9cb8e2b54dcd.tar.bz2 openembedded-core-26e16a5e5ee1059fb8e55ab915ae9cb8e2b54dcd.zip |
lib/oe/packagedata: Use the PKGMLTRIPLETS variable
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/packagedata.py | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py index ce92a7ef8e..62fd71898e 100644 --- a/meta/lib/oe/packagedata.py +++ b/meta/lib/oe/packagedata.py @@ -24,30 +24,10 @@ def read_pkgdatafile(fn): return pkgdata 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 = [] - for i in range(len(archs)): - for arch in archs[i]: - dirs.append(arch + tvs[i] + "-" + tos[i] + "/runtime/") - dirs.reverse() + triplets = (d.getVar("PKGMLTRIPLETS") or "").split() + for t in triplets: + dirs.append(t + "/runtime/") return dirs def get_subpkgedata_fn(pkg, d): |