Skip to contentSkip to conversation

package/qemu: add option to include tools

PATCH New Sam Bobroff 2 participants 2 messages Nov 23, 2016 – Nov 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
Hi Buildroot,

I often need qemu-img in the target, so I've been using this patch. In case it's useful to others, here it is.

Cheers,
Sam.

 package/qemu/Config.in | 5 +++++
 package/qemu/qemu.mk   | 7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
package/qemu/Config.in +5 -0
index 72252ac..f4a75fc 100644
@@ -112,4 +112,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
package/qemu/qemu.mk +6 -1
index cf23f16..2c94a51 100644
@@ -196,6 +196,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
@@ -234,7 +240,6 @@ define QEMU_CONFIGURE_CMDS
 			--disable-strip                 \
 			--disable-seccomp               \
 			--disable-sparse                \
-			--disable-tools                 \
 			$(QEMU_OPTS)                    \
 	)
 endef
Signature · 1 line
2.10.0.297.gf6727b0
#1 lore raw

PATCH 1/1 package/qemu: add option to include tools

Hello,

Quoted 7 lines · Sam Bobroff

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.

---
Hi Buildroot,

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com