mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
![Paolo Bonzini](/assets/img/avatar_default.png)
Instead of including the same list of devices for each target, set CONFIG_PCI to true, and make the devices default to present whenever PCI is available. However, s390x does not want all the PCI devices, so there is a separate symbol to enable them. Done mostly with the following script: while read i; do i=${i%=y}; i=${i#CONFIG_} sed -i -e'/^config '$i'$/!b' -en \ -e'a\' -e' default y if PCI_DEVICES\' -e' depends on PCI' \ `grep -lw $i hw/*/Kconfig` done < default-configs/pci.mak followed by replacing a few "depends on" clauses with "select" whenever the symbol is not really related to PCI. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Yang Zhong <yang.zhong@intel.com> Cc: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20190123065618.3520-31-yang.zhong@intel.com> Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
45 lines
633 B
Plaintext
45 lines
633 B
Plaintext
config SCSI
|
|
bool
|
|
|
|
config LSI_SCSI_PCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config MPTSAS_SCSI_PCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config MEGASAS_SCSI_PCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config VMW_PVSCSI_SCSI_PCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config ESP
|
|
bool
|
|
|
|
config ESP_PCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
select ESP
|
|
|
|
config SPAPR_VSCSI
|
|
bool
|
|
default y
|
|
depends on PSERIES
|
|
|
|
config VIRTIO_SCSI
|
|
bool
|
|
|
|
config VHOST_USER_SCSI
|
|
bool
|
|
default y
|
|
depends on VHOST_USER && LINUX
|