summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-10-11 11:40:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-13 09:42:01 +0100
commitd97caeb6bb53a2c34865293d40698e345886197a (patch)
tree6b276e3862336059a2176e395ecb8d70475efd9b
parent1670d22835d612344862ae9d5cb1f8dd58e9bb02 (diff)
downloadpoky-d97caeb6bb53a2c34865293d40698e345886197a.tar.gz
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>
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
-rw-r--r--meta/recipes-devtools/qemu/qemu-system-native_6.1.0.bb2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index d961a9a218..0397148082 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -183,7 +183,7 @@ class QemuRunner:
183 # then add in the site-packages path components and add that 183 # then add in the site-packages path components and add that
184 # to the python sys.path so qmp.py can be found. 184 # to the python sys.path so qmp.py can be found.
185 python_path = os.path.dirname(os.path.dirname(self.logfile)) 185 python_path = os.path.dirname(os.path.dirname(self.logfile))
186 python_path += "/recipe-sysroot-native/usr/lib/python3.9/site-packages" 186 python_path += "/recipe-sysroot-native/usr/lib/qemu-python"
187 sys.path.append(python_path) 187 sys.path.append(python_path)
188 importlib.invalidate_caches() 188 importlib.invalidate_caches()
189 try: 189 try:
diff --git a/meta/recipes-devtools/qemu/qemu-system-native_6.1.0.bb b/meta/recipes-devtools/qemu/qemu-system-native_6.1.0.bb
index b47ffd5262..b544ab4e81 100644
--- a/meta/recipes-devtools/qemu/qemu-system-native_6.1.0.bb
+++ b/meta/recipes-devtools/qemu/qemu-system-native_6.1.0.bb
@@ -28,5 +28,5 @@ do_install:append() {
28 rm -rf ${D}${includedir}/qemu-plugin.h 28 rm -rf ${D}${includedir}/qemu-plugin.h
29 29
30 # Install qmp.py to be used with testimage 30 # Install qmp.py to be used with testimage
31 install -D ${S}/python/qemu/qmp/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/qmp.py 31 install -D ${S}/python/qemu/qmp/__init__.py ${D}${libdir}/qemu-python/qmp.py
32} 32}