diff options
author | Saul Wold <Saul.Wold@windriver.com> | 2021-01-12 15:11:07 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-21 23:25:53 +0000 |
commit | 78007331fb8031846a77e58beb803a27320f5cd6 (patch) | |
tree | c8887b0c61f270c8667d0b446f38b406adac90c4 /meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb | |
parent | acce3be5e93928fee6538152698cf1983b306dbc (diff) | |
download | poky-78007331fb8031846a77e58beb803a27320f5cd6.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: 34bf3a4455da498f6e48b1da281796cbbd321e40)
Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-system-native_5.2.0.bb | 4 |
1 files changed, 4 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..4a58bf9055 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 | |||
@@ -2,6 +2,7 @@ BPN = "qemu" | |||
2 | 2 | ||
3 | require qemu-native.inc | 3 | require qemu-native.inc |
4 | 4 | ||
5 | inherit python3-dir | ||
5 | # As some of the files installed by qemu-native and qemu-system-native | 6 | # As some of the files installed by qemu-native and qemu-system-native |
6 | # are the same, we depend on qemu-native to get the full installation set | 7 | # are the same, we depend on qemu-native to get the full installation set |
7 | # and avoid file clashes | 8 | # and avoid file clashes |
@@ -23,4 +24,7 @@ do_install_append() { | |||
23 | rm -f ${D}${datadir}/qemu/trace-events-all | 24 | rm -f ${D}${datadir}/qemu/trace-events-all |
24 | rm -rf ${D}${datadir}/qemu/keymaps | 25 | rm -rf ${D}${datadir}/qemu/keymaps |
25 | rm -rf ${D}${datadir}/icons/ | 26 | rm -rf ${D}${datadir}/icons/ |
27 | |||
28 | # Install qmp.py to be used with testimage | ||
29 | install -D ${S}/python/qemu/qmp.py ${D}${PYTHON_SITEPACKAGES_DIR}/qmp.py | ||
26 | } | 30 | } |