qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] hw/usb: Do not build USB subsystem if not required


From: Richard Henderson
Subject: Re: [PATCH 2/2] hw/usb: Do not build USB subsystem if not required
Date: Sun, 2 May 2021 19:38:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

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é<f4bug@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.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]