mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
package/qemu: add fine-grained target selection
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
68ec49acc7
commit
6fd9a3e864
@ -31,6 +31,25 @@ if BR2_PACKAGE_QEMU
|
|||||||
|
|
||||||
comment "Emulators selection"
|
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
|
config BR2_PACKAGE_QEMU_SYSTEM
|
||||||
bool "Enable all systems emulation"
|
bool "Enable all systems emulation"
|
||||||
help
|
help
|
||||||
@ -43,4 +62,6 @@ config BR2_PACKAGE_QEMU_LINUX_USER
|
|||||||
|
|
||||||
# Note: bsd-user can not be build on Linux
|
# Note: bsd-user can not be build on Linux
|
||||||
|
|
||||||
|
endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == ""
|
||||||
|
|
||||||
endif # BR2_PACKAGE_QEMU
|
endif # BR2_PACKAGE_QEMU
|
||||||
|
@ -111,6 +111,10 @@ else
|
|||||||
QEMU_OPTS += --disable-linux-user
|
QEMU_OPTS += --disable-linux-user
|
||||||
endif
|
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
|
define QEMU_CONFIGURE_CMDS
|
||||||
( cd $(@D); \
|
( cd $(@D); \
|
||||||
LIBS='$(QEMU_LIBS)' \
|
LIBS='$(QEMU_LIBS)' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user