diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-12-31 19:32:03 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-07 12:08:39 +0100 |
commit | be3d7ee960143959c5866daf15f2ab93f3f282b8 (patch) | |
tree | c42d4c9b9134aad6d4b551857e49d649419ad6ba /hw/usb | |
parent | dccdaa1f756fedee2f1dac3650e19f29572f76c4 (diff) | |
download | qemu-be3d7ee960143959c5866daf15f2ab93f3f282b8.zip qemu-be3d7ee960143959c5866daf15f2ab93f3f282b8.tar.gz qemu-be3d7ee960143959c5866daf15f2ab93f3f282b8.tar.bz2 |
hw/usb/redirect: Do not link 'usb-redir' device when USB not enabled
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é <philmd@redhat.com>
Message-Id: <20191231183216.6781-2-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/Makefile.objs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs index 0ab20f9..0052d49 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) |