mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 14:02:22 +02:00
qemu: install qmp module without hardcoding the python version in oeqa scripts
(From OE-Core rev: 6d3f55ea8f7190e6825dc72424088658cbc0a13c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1670d22835
commit
d97caeb6bb
@@ -183,7 +183,7 @@ class QemuRunner:
|
||||
# then add in the site-packages path components and add that
|
||||
# to the python sys.path so qmp.py can be found.
|
||||
python_path = os.path.dirname(os.path.dirname(self.logfile))
|
||||
python_path += "/recipe-sysroot-native/usr/lib/python3.9/site-packages"
|
||||
python_path += "/recipe-sysroot-native/usr/lib/qemu-python"
|
||||
sys.path.append(python_path)
|
||||
importlib.invalidate_caches()
|
||||
try:
|
||||
|
||||
@@ -28,5 +28,5 @@ do_install:append() {
|
||||
rm -rf ${D}${includedir}/qemu-plugin.h
|
||||
|
||||
# Install qmp.py to be used with testimage
|
||||
install -D ${S}/python/qemu/qmp/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/qmp.py
|
||||
install -D ${S}/python/qemu/qmp/__init__.py ${D}${libdir}/qemu-python/qmp.py
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user