libselinux_git.bb: Add workaround for bitbake parse issue

See Yocto Project bugzilla:
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=2530

This is a temporary workaround to the parsing issue.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
This commit is contained in:
Mark Hatle 2012-06-01 11:48:30 -05:00
parent 06337c0513
commit df46627587

View File

@ -20,13 +20,13 @@ PACKAGES += "${PN}-python"
FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*"
FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
def get_policyconfigarch(d):
def get_git_policyconfigarch(d):
import re
target = d.getVar('TARGET_ARCH', True)
p = re.compile('i.86')
target = p.sub('i386',target)
return "ARCH=%s" % (target)
EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
EXTRA_OEMAKE += "${@get_git_policyconfigarch(d)}"
do_compile_append() {
oe_runmake pywrap -j1 \