Patchwork packagedata.py: Fix get_subpkgedata_fn for multilib

login
register
mail settings
Submitter Matthew McClintock
Date March 8, 2012, 9:01 p.m.
Message ID <1331240492-6759-1-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/22929/
State New
Headers show

Comments

Matthew McClintock - March 8, 2012, 9:01 p.m.
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/lib/oe/packagedata.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index a7a40f0..124a49d 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -27,6 +27,13 @@  def read_pkgdatafile(fn):
 
 def get_subpkgedata_fn(pkg, d):
     archs = d.expand("${PACKAGE_ARCHS}").split(" ")
+    mlarchs = d.expand("${MULTILIB_PACKAGE_ARCHS}", d).split(" ")
+
+    for mlarch in mlarchs:
+        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/')