hw/usb: Do not build USB subsystem if not required
commit9c3c834bdda5ca6d58c0e61508737683d12968b5
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 24 Apr 2021 22:41:10 +0000 (25 00:41 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 4 May 2021 06:38:23 +0000 (4 08:38 +0200)
treefb9bfcc25adfaea88177e24943acdbd2ebc27545
parent1081607bfab94a0b6149c4a2195737107aed265f
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>
MAINTAINERS
hw/usb/meson.build
stubs/meson.build
stubs/usb-dev-stub.c [new file with mode: 0644]