@@ -257,6 +257,12 @@ config BR2_PACKAGE_QEMU_SECCOMP
Say 'y' here to have QEMU to use the Linux kernel's seccomp filter,
to more tightly confine the VMs.
+config BR2_PACKAGE_QEMU_TOOLS_ON_TARGET
+ bool "tools on target"
+ help
+ Say 'y' here to also install QEMU tools (qemu-{img,io,nbd}) on the
+ target.
+
config BR2_PACKAGE_QEMU_BLOBS
bool "Install binary blobs"
default y
@@ -258,6 +258,12 @@ else
QEMU_OPTS += --disable-seccomp
endif
+ifeq ($(BR2_PACKAGE_QEMU_TOOLS_ON_TARGET),y)
+QEMU_OPTS += --enable-tools
+else
+QEMU_OPTS += --disable-tools
+endif
+
ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
QEMU_OPTS += --disable-blobs
endif
@@ -347,7 +353,6 @@ define QEMU_CONFIGURE_CMDS
--disable-smartcard \
--disable-strip \
--disable-sparse \
- --disable-tools \
$(QEMU_OPTS) \
)
endef
Usually, tools on the target are not needed, so they are disabled by default. Add an option to install them on the target. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- package/qemu/Config.in | 6 ++++++ package/qemu/qemu.mk | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletions(-)