hw/usb/redirect: Do not link 'usb-redir' device when USB not enabled
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 31 Dec 2019 18:32:03 +0000 (19:32 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jan 2020 11:08:39 +0000 (12:08 +0100)
commitbe3d7ee960143959c5866daf15f2ab93f3f282b8
treec42d4c9b9134aad6d4b551857e49d649419ad6ba
parentdccdaa1f756fedee2f1dac3650e19f29572f76c4
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>
hw/usb/Makefile.objs