[OE-core] [PATCH] qemu: Use capstone version included via git submodule

Jon Szymaniak jon.szymaniak.foss at gmail.com
Mon Jun 25 17:50:43 UTC 2018


An optional dependency upon the capstone disassembler was introduced
in QEMU v2.11.0-rc0. The necessary version of capstone is included
in the QEMU repository as a git submodule.

The QEMU configure script uses pkg-config to determine if an
installation of capstone already exists on the system, and defaults to
this, if found. However, there does not appear to be any capstone
version or API compatibility checks.

To avoid any potential version conflicts or API incompatibility issues
in the future, use the `--enable-capstone=git` argument to force the use
of the capstone version included by QEMU as a git submodule.
---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 094a975177..37f8398967 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -23,6 +23,7 @@ EXTRA_OECONF = " \
     --libexecdir=${libexecdir} \
     --localstatedir=${localstatedir} \
     --with-confsuffix=/${BPN} \
+    --enable-capstone=git \
     --disable-strip \
     --disable-werror \
     --target-list=${@get_qemu_target_list(d)} \
-- 
2.14.1




More information about the Openembedded-core mailing list