mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00

libvirt generates several python scripts using its python/generator.py script. This uses the PYTHON variable, which in our case will be a full path to the sysroot that will not exist on the target. For this we are patching libvirt to allow for (but not require) TARGET_PYTHON to be defined and used when generating these python scripts. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
21 lines
740 B
PHP
21 lines
740 B
PHP
inherit pythonnative python-dir
|
|
|
|
export STAGING_INCDIR
|
|
export STAGING_LIBDIR
|
|
export BUILD_SYS
|
|
export HOST_SYS
|
|
|
|
PACKAGECONFIG += "python"
|
|
PACKAGECONFIG[python] = "--with-python,--without-python,python,"
|
|
RDEPENDS_${PN}-python += "python"
|
|
PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python"
|
|
|
|
PACKAGES += "${PN}-python-staticdev ${PN}-python-dev ${PN}-python-dbg ${PN}-python"
|
|
FILES_${PN}-python-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
|
|
FILES_${PN}-python-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
|
|
FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
|
|
FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}"
|
|
|
|
EXTRA_OECONF += "TARGET_PYTHON=${bindir}/python"
|
|
|
|
SRC_URI += "file://libvirt-allow-location-of-python-on-the-target-to-be.patch" |