From patchwork Thu Mar 8 22:23:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2] packagedata.py: Fix get_subpkgedata_fn for multilib Date: Thu, 08 Mar 2012 22:23:33 -0000 From: Matthew McClintock X-Patchwork-Id: 22935 Message-Id: <1331245413-30310-1-git-send-email-msm@freescale.com> To: Signed-off-by: Matthew McClintock --- meta/lib/oe/packagedata.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py index a7a40f0..daee779 100644 --- a/meta/lib/oe/packagedata.py +++ b/meta/lib/oe/packagedata.py @@ -27,6 +27,14 @@ def read_pkgdatafile(fn): def get_subpkgedata_fn(pkg, d): archs = d.expand("${PACKAGE_ARCHS}").split(" ") + mlarchs = bb.data.getVar("MULTILIB_PACKAGE_ARCHS", d) or None + + if mlarchs: + for mlarch in mlarchs.split(" "): + if "_" in mlarch: + prefix, new_arch = mlarch.split("_") + archs.append(new_arch) + archs.reverse() pkgdata = d.expand('${TMPDIR}/pkgdata/') targetdir = d.expand('${TARGET_VENDOR}-${TARGET_OS}/runtime/')