On 2018-12-27 07:34, Yang Zhong wrote: > From: Paolo Bonzini <pbonz...@redhat.com> > > 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 <pbonz...@redhat.com> > Signed-off-by: Yang Zhong <yang.zh...@intel.com> > --- > default-configs/i386-softmmu.mak | 1 - > default-configs/usb.mak | 11 ----------- > hw/usb/Kconfig | 26 ++++++++++++++++++++++++++ > 3 files changed, 26 insertions(+), 12 deletions(-) > delete mode 100644 default-configs/usb.mak
Reviewed-by: Thomas Huth <th...@redhat.com>