7c28b925b7
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>
26 lines
422 B
Makefile
26 lines
422 B
Makefile
# Default configuration for sh4eb-softmmu
|
|
|
|
include usb.mak
|
|
CONFIG_PCI=y
|
|
CONFIG_PCI_DEVICES=y
|
|
CONFIG_SERIAL=y
|
|
CONFIG_SERIAL_ISA=y
|
|
CONFIG_PTIMER=y
|
|
CONFIG_PFLASH_CFI02=y
|
|
CONFIG_SH4=y
|
|
CONFIG_IDE_MMIO=y
|
|
CONFIG_SM501=y
|
|
CONFIG_I2C=y
|
|
CONFIG_DDC=y
|
|
CONFIG_ISA_TESTDEV=y
|
|
CONFIG_TEST_DEVICES=y
|
|
CONFIG_I82378=y
|
|
CONFIG_I8259=y
|
|
CONFIG_I8254=y
|
|
CONFIG_PCSPK=y
|
|
CONFIG_I82374=y
|
|
CONFIG_I8257=y
|
|
CONFIG_MC146818RTC=y
|
|
CONFIG_R2D=y
|
|
CONFIG_SHIX=y
|