2015-04-23 11:50:57 +02:00
|
|
|
config BR2_PACKAGE_QEMU_ARCH_SUPPORTS_TARGET
|
|
|
|
bool
|
|
|
|
# Only tested on these architectures
|
2015-06-29 16:13:34 +02:00
|
|
|
default y if BR2_aarch64 || BR2_i386 || BR2_mips || BR2_mipsel \
|
2016-11-17 05:42:50 +01:00
|
|
|
|| BR2_x86_64 || BR2_arm \
|
|
|
|
|| BR2_powerpc64 || BR2_powerpc64le
|
2015-04-23 11:50:57 +02:00
|
|
|
|
2015-04-19 14:40:00 +02:00
|
|
|
comment "QEMU requires a toolchain with wchar, threads"
|
2015-04-23 11:50:57 +02:00
|
|
|
depends on BR2_PACKAGE_QEMU_ARCH_SUPPORTS_TARGET
|
2014-11-03 22:55:26 +01:00
|
|
|
depends on BR2_USE_MMU
|
2015-04-19 14:40:00 +02:00
|
|
|
depends on !(BR2_TOOLCHAIN_HAS_THREADS && BR2_USE_WCHAR)
|
2014-10-08 00:38:12 +02:00
|
|
|
|
|
|
|
config BR2_PACKAGE_QEMU
|
|
|
|
bool "QEMU"
|
2015-04-23 11:50:57 +02:00
|
|
|
depends on BR2_PACKAGE_QEMU_ARCH_SUPPORTS_TARGET
|
2014-10-08 00:38:12 +02:00
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
depends on BR2_USE_WCHAR # gettext
|
|
|
|
depends on BR2_USE_MMU # fork()
|
|
|
|
select BR2_PACKAGE_LIBGLIB2
|
|
|
|
select BR2_PACKAGE_PIXMAN
|
|
|
|
select BR2_PACKAGE_ZLIB
|
|
|
|
help
|
|
|
|
QEMU is a generic and open source machine emulator and virtualizer.
|
|
|
|
|
|
|
|
When used as a machine emulator, QEMU can run OSes and programs made
|
|
|
|
for one machine (e.g. an ARM board) on a different machine (e.g.
|
|
|
|
your own PC). By using dynamic translation, it achieves very good
|
|
|
|
performance.
|
|
|
|
|
|
|
|
When used as a virtualizer, QEMU achieves near native performances
|
|
|
|
by executing the guest code directly on the host CPU. QEMU supports
|
|
|
|
virtualization when executing under the Xen hypervisor or using the
|
|
|
|
KVM kernel module in Linux. When using KVM, QEMU can virtualize x86,
|
|
|
|
server and embedded PowerPC, and S390 guests.
|
|
|
|
|
|
|
|
http://qemu.org/
|
2014-10-08 00:38:13 +02:00
|
|
|
|
|
|
|
if BR2_PACKAGE_QEMU
|
|
|
|
|
|
|
|
comment "Emulators selection"
|
|
|
|
|
2014-10-08 00:38:14 +02:00
|
|
|
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:"
|
|
|
|
|
2014-10-08 00:38:13 +02:00
|
|
|
config BR2_PACKAGE_QEMU_SYSTEM
|
|
|
|
bool "Enable all systems emulation"
|
2015-02-04 01:34:04 +01:00
|
|
|
depends on !BR2_STATIC_LIBS # dtc
|
2014-11-17 22:25:40 +01:00
|
|
|
select BR2_PACKAGE_QEMU_FDT
|
2014-10-08 00:38:13 +02:00
|
|
|
help
|
|
|
|
Say 'y' to build all system emulators/virtualisers that QEMU supports.
|
|
|
|
|
2015-02-04 01:34:04 +01:00
|
|
|
comment "systems emulation needs a toolchain w/ dynamic library"
|
|
|
|
depends on BR2_STATIC_LIBS
|
|
|
|
|
2014-10-08 00:38:13 +02:00
|
|
|
config BR2_PACKAGE_QEMU_LINUX_USER
|
|
|
|
bool "Enable all Linux user-land emulation"
|
2016-11-06 17:04:48 +01:00
|
|
|
# Incompatible "struct sigevent" definition on musl
|
|
|
|
depends on !BR2_TOOLCHAIN_USES_MUSL
|
2014-10-08 00:38:13 +02:00
|
|
|
help
|
|
|
|
Say 'y' to build all Linux user-land emulators that QEMU supports.
|
|
|
|
|
|
|
|
# Note: bsd-user can not be build on Linux
|
|
|
|
|
2016-11-06 17:04:48 +01:00
|
|
|
comment "Linux user-land emulation needs a glibc or uClibc toolchain"
|
|
|
|
depends on BR2_TOOLCHAIN_USES_MUSL
|
|
|
|
|
2014-10-08 00:38:14 +02:00
|
|
|
endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == ""
|
|
|
|
|
2014-10-08 00:38:15 +02:00
|
|
|
config BR2_PACKAGE_QEMU_HAS_EMULS
|
2014-10-25 08:20:44 +02:00
|
|
|
def_bool y
|
|
|
|
depends on BR2_PACKAGE_QEMU_SYSTEM || BR2_PACKAGE_QEMU_LINUX_USER || BR2_PACKAGE_QEMU_CUSTOM_TARGETS != ""
|
2014-10-08 00:38:15 +02:00
|
|
|
|
|
|
|
if BR2_PACKAGE_QEMU_HAS_EMULS
|
|
|
|
|
|
|
|
comment "Frontends"
|
|
|
|
|
|
|
|
config BR2_PACKAGE_QEMU_SDL
|
|
|
|
bool "Enable SDL frontend"
|
|
|
|
select BR2_PACKAGE_SDL
|
|
|
|
help
|
|
|
|
Say 'y' to enable the SDL frontend, that is, a graphical window
|
|
|
|
presenting the VM's display.
|
|
|
|
|
2014-11-17 22:25:40 +01:00
|
|
|
comment "Misc. features"
|
|
|
|
|
|
|
|
config BR2_PACKAGE_QEMU_FDT
|
2014-12-15 09:56:59 +01:00
|
|
|
bool "Enable FDT"
|
2015-02-04 01:34:04 +01:00
|
|
|
depends on !BR2_STATIC_LIBS # dtc
|
2014-12-15 09:56:59 +01:00
|
|
|
select BR2_PACKAGE_DTC
|
|
|
|
help
|
|
|
|
Say 'y' here to have QEMU capable of constructing Device Trees,
|
|
|
|
and passing them to the VMs.
|
2014-11-17 22:25:40 +01:00
|
|
|
|
2015-02-04 01:34:04 +01:00
|
|
|
comment "FDT support needs a toolchain w/ dynamic library"
|
|
|
|
depends on BR2_STATIC_LIBS
|
|
|
|
|
2014-10-08 00:38:15 +02:00
|
|
|
endif # BR2_PACKAGE_QEMU_HAS_EMULS
|
|
|
|
|
2016-11-23 01:16:52 +01:00
|
|
|
config BR2_PACKAGE_QEMU_TOOLS
|
|
|
|
bool "Enable tools"
|
|
|
|
help
|
|
|
|
Say 'y' here to include tools packaged with QEMU (e.g. qemu-img).
|
|
|
|
|
2014-10-08 00:38:13 +02:00
|
|
|
endif # BR2_PACKAGE_QEMU
|