From 679cdbe1c9d46476ce5ffe46d3b83fd0b165c520 Mon Sep 17 00:00:00 2001 From: Xin Ouyang Date: Fri, 17 Feb 2012 17:27:06 +0800 Subject: libselinux: Fix the ARCH variable while building. --- recipes-security/selinux/libselinux_2.1.9.bb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recipes-security/selinux/libselinux_2.1.9.bb b/recipes-security/selinux/libselinux_2.1.9.bb index 290b6bb..8de51e0 100644 --- a/recipes-security/selinux/libselinux_2.1.9.bb +++ b/recipes-security/selinux/libselinux_2.1.9.bb @@ -18,6 +18,15 @@ PACKAGES += "${PN}-python" FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*" FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*" +python __anonymous () { + import re + target = d.getVar('TARGET_ARCH', True) + extra_oemake = d.getVar('EXTRA_OEMAKE', True) + p = re.compile('i.86') + target = p.sub('i386',target) + d.setVar("EXTRA_OEMAKE", extra_oemake + " ARCH='" + target + "'") +} + do_compile_append() { oe_runmake pywrap -j1 \ INCLUDEDIR='${STAGING_INCDIR}' \ -- cgit v1.2.3-54-g00ecf