summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorSaul Wold <Saul.Wold@windriver.com>2021-04-26 07:45:09 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-27 15:11:47 +0100
commit2c86aba6f0eeb1fc747de2f518d1ec982398c54a (patch)
tree16b1e0224dae8ca93258f05666cebdf1ded85039 /meta/recipes-devtools
parent8cf9b6529e695401bba7e8dbd7b151e0cae743d2 (diff)
downloadpoky-2c86aba6f0eeb1fc747de2f518d1ec982398c54a.tar.gz
qemu-system-native: install qmp python module
The qmp python module supports the Qemu Machine Protocol [0]. This module needs to be installed in a known location so the qemurunner python script can find the qmp module. This change causes it to be installed in the recipe-sysroot-native of the target image and that directory can be added to the python sys.path that needs to use the qmp.py module. [0] https://github.com/qemu/qemu/blob/master/docs/interop/qmp-spec.txt (From OE-Core rev: 46a60f67562a6ae227e018228212fc797d1f2795) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb b/meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb
index 222b55cbc6..390dadea48 100644
--- a/meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb
+++ b/meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb
@@ -1,5 +1,7 @@
1BPN = "qemu" 1BPN = "qemu"
2 2
3inherit python3-dir
4
3require qemu-native.inc 5require qemu-native.inc
4 6
5# As some of the files installed by qemu-native and qemu-system-native 7# As some of the files installed by qemu-native and qemu-system-native
@@ -23,4 +25,7 @@ do_install_append() {
23 rm -f ${D}${datadir}/qemu/trace-events-all 25 rm -f ${D}${datadir}/qemu/trace-events-all
24 rm -rf ${D}${datadir}/qemu/keymaps 26 rm -rf ${D}${datadir}/qemu/keymaps
25 rm -rf ${D}${datadir}/icons/ 27 rm -rf ${D}${datadir}/icons/
28
29 # Install qmp.py to be used with testimage
30 install -D ${S}/python/qemu/qmp.py ${D}${PYTHON_SITEPACKAGES_DIR}/qmp.py
26} 31}