From ac6785f12cc6b24e66f3d16eb6058d7c5db6014e Mon Sep 17 00:00:00 2001 From: Sam bobroff Date: Wed, 23 Nov 2016 11:16:52 +1100 Subject: [PATCH] package/qemu: add option to include tools Add an option to QEMU to include the "tools" (configure option: --enable-tools) in the target. This adds a dependency on pixman, but that's already present. Signed-off-by: Sam Bobroff Signed-off-by: Thomas Petazzoni --- package/qemu/Config.in | 5 +++++ package/qemu/qemu.mk | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package/qemu/Config.in b/package/qemu/Config.in index e935ef9c61..b9c1ca1816 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -107,4 +107,9 @@ comment "FDT support needs a toolchain w/ dynamic library" endif # BR2_PACKAGE_QEMU_HAS_EMULS +config BR2_PACKAGE_QEMU_TOOLS + bool "Enable tools" + help + Say 'y' here to include tools packaged with QEMU (e.g. qemu-img). + endif # BR2_PACKAGE_QEMU diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 45fc0fad0a..bc707cf7e6 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -204,6 +204,12 @@ else QEMU_OPTS += --disable-fdt endif +ifeq ($(BR2_PACKAGE_QEMU_TOOLS),y) +QEMU_OPTS += --enable-tools +else +QEMU_OPTS += --disable-tools +endif + # Override CPP, as it expects to be able to call it like it'd # call the compiler. define QEMU_CONFIGURE_CMDS @@ -242,7 +248,6 @@ define QEMU_CONFIGURE_CMDS --disable-strip \ --disable-seccomp \ --disable-sparse \ - --disable-tools \ $(QEMU_OPTS) \ ) endef -- 2.30.2