mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
meson: cleanup Kconfig.host handling
Build the array of command line arguments coming from config_host once for all targets. Add all accelerators to accel/Kconfig so that the command line arguments for accelerators can be computed easily in the existing "foreach sym: accelerators" loop. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2f2a376a42
commit
0a18911074
3 changed files with 35 additions and 36 deletions
|
@ -288,21 +288,20 @@ they will include all these symbols and some help text on what they do.
|
|||
----------------
|
||||
|
||||
In some special cases, a configurable element depends on host features
|
||||
that are detected by QEMU's configure script; for example some devices
|
||||
depend on the availability of KVM or on the presence of a library on
|
||||
the host.
|
||||
that are detected by QEMU's configure or ``meson.build`` scripts; for
|
||||
example some devices depend on the availability of KVM or on the presence
|
||||
of a library on the host.
|
||||
|
||||
These symbols should be listed in ``Kconfig.host`` like this::
|
||||
|
||||
config KVM
|
||||
config TPM
|
||||
bool
|
||||
|
||||
and also listed as follows in the top-level Makefile's ``MINIKCONF_ARGS``
|
||||
and also listed as follows in the top-level meson.build's host_kconfig
|
||||
variable::
|
||||
|
||||
MINIKCONF_ARGS = \
|
||||
$@ $*/config-devices.mak.d $< $(MINIKCONF_INPUTS) \
|
||||
CONFIG_KVM=$(CONFIG_KVM) \
|
||||
CONFIG_SPICE=$(CONFIG_SPICE) \
|
||||
CONFIG_TPM=$(CONFIG_TPM) \
|
||||
host_kconfig = \
|
||||
('CONFIG_TPM' in config_host ? ['CONFIG_TPM=y'] : []) + \
|
||||
('CONFIG_SPICE' in config_host ? ['CONFIG_SPICE=y'] : []) + \
|
||||
('CONFIG_IVSHMEM' in config_host ? ['CONFIG_IVSHMEM=y'] : []) + \
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue