hw: Only compile the usb-dwc2 controller if it is really needed
authorThomas Huth <thuth@redhat.com>
Wed, 22 Jul 2020 15:47:19 +0000 (17:47 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 24 Jul 2020 14:15:28 +0000 (16:15 +0200)
commit8d942986be27bb40e6faca2032af763d7db57082
tree0b038125161c7dd30aa7fea340a9b1cea5e00ab3
parent09e0cd773723219d21655587954da2769f64ba01
hw: Only compile the usb-dwc2 controller if it is really needed

The USB_DWC2 switch is currently "default y", so it is included in all
qemu-system-* builds, even if it is not needed. Even worse, it does a
"select USB", so USB devices are now showing up as available on targets
that do not support USB at all. This sysbus device should only be
included by the boards that need it, i.e. by the Raspi machines.

Fixes: 153ef1662c ("dwc-hsotg (dwc2) USB host controller emulation")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Paul Zimmerman <pauldzim@gmail.com>
Message-id: 20200722154719.10130-1-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/arm/Kconfig
hw/usb/Kconfig