mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
libselinux: Fix the ARCH variable while building.
This commit is contained in:
parent
36400ed07c
commit
679cdbe1c9
|
|
@ -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}' \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user