mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/usb: Do not build USB subsystem if not required
If the Kconfig 'USB' value is not selected, it is pointless to build the USB core components. Add a stub for the HMP commands and usbdevice_create() which is called by usb_device_add in softmmu/vl.c. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210424224110.3442424-3-f4bug@amsat.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
1081607bfa
commit
9c3c834bdd
4 changed files with 30 additions and 6 deletions
|
@ -1,17 +1,14 @@
|
|||
hw_usb_modules = {}
|
||||
|
||||
# usb subsystem core
|
||||
softmmu_ss.add(files(
|
||||
softmmu_ss.add(when: 'CONFIG_USB', if_true: files(
|
||||
'bus.c',
|
||||
'combined-packet.c',
|
||||
'core.c',
|
||||
'pcap.c',
|
||||
'libhw.c'
|
||||
))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_USB', if_true: files(
|
||||
'desc.c',
|
||||
'desc-msos.c',
|
||||
'libhw.c',
|
||||
'pcap.c',
|
||||
))
|
||||
|
||||
# usb host adapters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue