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:47:46 +0100 |
commit | 9da9e5d8aeced9880e84d421492ebc451cf7fa1b (patch) | |
tree | c443a6d3f03c3378e93d125c2715587e9edd98f9 /meta/lib/oe/packagedata.py | |
parent | 0c2c3b7656301af20ff88eea61840e05a5bc4f69 (diff) | |
download | poky-9da9e5d8aeced9880e84d421492ebc451cf7fa1b.tar.gz |
lib/oe/packagedata: Use the PKGMLTRIPLETS variable
(From OE-Core rev: 26e16a5e5ee1059fb8e55ab915ae9cb8e2b54dcd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/packagedata.py')
-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): | |||
24 | return pkgdata | 24 | return pkgdata |
25 | 25 | ||
26 | def all_pkgdatadirs(d): | 26 | def all_pkgdatadirs(d): |
27 | archs = [] | ||
28 | tos = [] | ||
29 | tvs = [] | ||
30 | |||
31 | archs.append(d.getVar("PACKAGE_ARCHS", True).split()) | ||
32 | tos.append(d.getVar("TARGET_OS", True)) | ||
33 | tvs.append(d.getVar("TARGET_VENDOR", True)) | ||
34 | |||
35 | variants = d.getVar("MULTILIB_VARIANTS", True) or "" | ||
36 | for item in variants.split(): | ||
37 | localdata = bb.data.createCopy(d) | ||
38 | overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + item | ||
39 | localdata.setVar("OVERRIDES", overrides) | ||
40 | bb.data.update_data(localdata) | ||
41 | |||
42 | archs.append(localdata.getVar("PACKAGE_ARCHS", True).split()) | ||
43 | tos.append(localdata.getVar("TARGET_OS", True)) | ||
44 | tvs.append(localdata.getVar("TARGET_VENDOR", True)) | ||
45 | |||
46 | dirs = [] | 27 | dirs = [] |
47 | for i in range(len(archs)): | 28 | triplets = (d.getVar("PKGMLTRIPLETS") or "").split() |
48 | for arch in archs[i]: | 29 | for t in triplets: |
49 | dirs.append(arch + tvs[i] + "-" + tos[i] + "/runtime/") | 30 | dirs.append(t + "/runtime/") |
50 | dirs.reverse() | ||
51 | return dirs | 31 | return dirs |
52 | 32 | ||
53 | def get_subpkgedata_fn(pkg, d): | 33 | def get_subpkgedata_fn(pkg, d): |