From 6fd9a3e864789942fbbd9eee3c31e114fa06f41b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Wed, 8 Oct 2014 00:38:14 +0200 Subject: [PATCH] package/qemu: add fine-grained target selection Signed-off-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- package/qemu/Config.in | 21 +++++++++++++++++++++ package/qemu/qemu.mk | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/package/qemu/Config.in b/package/qemu/Config.in index 96ec301fd7..f29f8489aa 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -31,6 +31,25 @@ if BR2_PACKAGE_QEMU comment "Emulators selection" +config BR2_PACKAGE_QEMU_CUSTOM_TARGETS + string "Enable specific targets" + help + Enter here the list of QEMU targets you want to build. For example: + + System emulation | User-land emulation + ----------------------+----------------------- + i386-softmmu | i386-linux-user + arm-softmmu | ppc-linux-user + x86_64-softmmu | sparc-bsd-user + ... | ... + +config QEMU_FOO + bool # To break the indentation + +if BR2_PACKAGE_QEMU_CUSTOM_TARGETS = "" + +comment "... or you can select emulator families to enable, below:" + config BR2_PACKAGE_QEMU_SYSTEM bool "Enable all systems emulation" help @@ -43,4 +62,6 @@ config BR2_PACKAGE_QEMU_LINUX_USER # Note: bsd-user can not be build on Linux +endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == "" + endif # BR2_PACKAGE_QEMU diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 9f761455c3..5d9fd48a63 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -111,6 +111,10 @@ else QEMU_OPTS += --disable-linux-user endif +ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),) +QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))" +endif + define QEMU_CONFIGURE_CMDS ( cd $(@D); \ LIBS='$(QEMU_LIBS)' \ -- 2.30.2