Instead of including the same list of devices for each target, let the host controllers select CONFIG_USB and make the devices default to present whenever USB is available. Done 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\' -e' depends on USB' \ `grep -lw $i hw/*/Kconfig` done < default-configs/usb.mak followed by adding "select USB" on the host controllers. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Yang Zhong <yang.zhong@intel.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20190123065618.3520-33-yang.zhong@intel.com> Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
22 lines
378 B
Makefile
22 lines
378 B
Makefile
# Default configuration for sparc64-softmmu
|
|
|
|
CONFIG_PCI=y
|
|
CONFIG_PCI_DEVICES=y
|
|
CONFIG_M48T59=y
|
|
CONFIG_PTIMER=y
|
|
CONFIG_SERIAL=y
|
|
CONFIG_SERIAL_ISA=y
|
|
CONFIG_PARALLEL=y
|
|
CONFIG_PCKBD=y
|
|
CONFIG_FDC=y
|
|
CONFIG_IDE_CMD646=y
|
|
CONFIG_PCI_SABRE=y
|
|
CONFIG_SIMBA=y
|
|
CONFIG_SUNHME=y
|
|
CONFIG_MC146818RTC=y
|
|
CONFIG_ISA_TESTDEV=y
|
|
CONFIG_TEST_DEVICES=y
|
|
CONFIG_SUN4V_RTC=y
|
|
CONFIG_SUN4U=y
|
|
CONFIG_NIAGARA=y
|