summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-02-17 17:27:06 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-02-17 17:27:06 +0800
commit679cdbe1c9d46476ce5ffe46d3b83fd0b165c520 (patch)
tree86b509e15239d5d41284e99e1dd1e68b9a044cd2
parent36400ed07ce4ef0a04c9d870cdd02452eb37ac67 (diff)
downloadmeta-selinux-679cdbe1c9d46476ce5ffe46d3b83fd0b165c520.tar.gz
libselinux: Fix the ARCH variable while building.
-rw-r--r--recipes-security/selinux/libselinux_2.1.9.bb9
1 files changed, 9 insertions, 0 deletions
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"
18FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*" 18FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*"
19FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*" 19FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
20 20
21python __anonymous () {
22 import re
23 target = d.getVar('TARGET_ARCH', True)
24 extra_oemake = d.getVar('EXTRA_OEMAKE', True)
25 p = re.compile('i.86')
26 target = p.sub('i386',target)
27 d.setVar("EXTRA_OEMAKE", extra_oemake + " ARCH='" + target + "'")
28}
29
21do_compile_append() { 30do_compile_append() {
22 oe_runmake pywrap -j1 \ 31 oe_runmake pywrap -j1 \
23 INCLUDEDIR='${STAGING_INCDIR}' \ 32 INCLUDEDIR='${STAGING_INCDIR}' \