diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-04-25 00:41:10 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-04 08:38:23 +0200 |
commit | 9c3c834bdda5ca6d58c0e61508737683d12968b5 (patch) | |
tree | fb9bfcc25adfaea88177e24943acdbd2ebc27545 /hw/usb/meson.build | |
parent | 1081607bfab94a0b6149c4a2195737107aed265f (diff) | |
download | qemu-9c3c834bdda5ca6d58c0e61508737683d12968b5.zip qemu-9c3c834bdda5ca6d58c0e61508737683d12968b5.tar.gz qemu-9c3c834bdda5ca6d58c0e61508737683d12968b5.tar.bz2 |
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>
Diffstat (limited to 'hw/usb/meson.build')
-rw-r--r-- | hw/usb/meson.build | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/hw/usb/meson.build b/hw/usb/meson.build index fb7a74e..f357270 100644 --- a/hw/usb/meson.build +++ b/hw/usb/meson.build @@ -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 |