On 4/24/21 3:41 PM, Philippe Mathieu-Daudé wrote:
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é<f4...@amsat.org>
---
stubs/usb-dev-stub.c | 25 +++++++++++++++++++++++++
MAINTAINERS | 1 +
hw/usb/meson.build | 9 +++------
stubs/meson.build | 1 +
4 files changed, 30 insertions(+), 6 deletions(-)
create mode 100644 stubs/usb-dev-stub.c
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~