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>
64 lines
758 B
Plaintext
64 lines
758 B
Plaintext
config USB
|
|
bool
|
|
|
|
config USB_UHCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config USB_OHCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config USB_EHCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config USB_EHCI_SYSBUS
|
|
bool
|
|
|
|
config USB_XHCI
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config USB_XHCI_NEC
|
|
bool
|
|
default y if PCI_DEVICES
|
|
depends on PCI
|
|
|
|
config USB_MUSB
|
|
bool
|
|
|
|
config TUSB6010
|
|
bool
|
|
|
|
config USB_TABLET_WACOM
|
|
bool
|
|
|
|
config USB_STORAGE_BOT
|
|
bool
|
|
|
|
config USB_STORAGE_UAS
|
|
bool
|
|
|
|
config USB_AUDIO
|
|
bool
|
|
|
|
config USB_SERIAL
|
|
bool
|
|
|
|
config USB_NETWORK
|
|
bool
|
|
|
|
config USB_BLUETOOTH
|
|
bool
|
|
|
|
config USB_SMARTCARD
|
|
bool
|
|
|
|
config USB_STORAGE_MTP
|
|
bool
|