[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/14] hw/usb/redirect: Do not link 'usb-redir' device when USB n
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 01/14] hw/usb/redirect: Do not link 'usb-redir' device when USB not enabled |
Date: |
Tue, 31 Dec 2019 19:32:03 +0100 |
The 'usb-redir' device requires the USB core code to work. Do not
link it when there is no USB support. This fixes:
$ qemu-system-tricore -M tricore_testboard -device usb-redir
qemu-system-tricore: -device usb-redir: No 'usb-bus' bus found for device
'usb-redir'
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/usb/Makefile.objs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs
index 0ab20f9d73..0052d49ce1 100644
--- a/hw/usb/Makefile.objs
+++ b/hw/usb/Makefile.objs
@@ -39,9 +39,11 @@ common-obj-$(CONFIG_USB_STORAGE_MTP) += dev-mtp.o
endif
# usb redirection
+ifeq ($(CONFIG_USB),y)
common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
redirect.o-cflags = $(USB_REDIR_CFLAGS)
redirect.o-libs = $(USB_REDIR_LIBS)
+endif
# usb pass-through
ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
--
2.21.0
- [PATCH 00/14] hw: Fix various --without-default-devices issues, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 01/14] hw/usb/redirect: Do not link 'usb-redir' device when USB not enabled,
Philippe Mathieu-Daudé <=
- [PATCH 02/14] hw/intc/i8259: Fix Kconfig dependency on ISA bus, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 03/14] hw/i386/Kconfig: Let the MicroVM machine select the SERIAL_ISA config, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 04/14] hw/i386: Restrict fw_cfg to the PC machines, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 05/14] hw/i2c/Kconfig: Add an entry for the SMBus, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 06/14] hw/ppc/Kconfig: Restrict the MPC I2C controller to e500-based platforms, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 07/14] hw/ppc/Kconfig: Let the Sam460ex board use the PowerPC 405 devices, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 08/14] hw/ppc/Kconfig: Let the Xilinx Virtex5 ML507 use the PPC-440 devices, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 09/14] hw/ppc/Makefile: Simplify the sPAPR PCI objects rule, Philippe Mathieu-Daudé, 2019/12/31
- [PATCH 10/14] hw/ppc/Kconfig: Only select fw_cfg with machines using OpenBIOS, Philippe Mathieu-Daudé, 2019/12/31