|
|
4a2fec |
From ca6e32bce33eab1000eba5629e28832430896cbd Mon Sep 17 00:00:00 2001
|
|
|
4a2fec |
From: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
Date: Mon, 9 Oct 2017 12:32:37 +0200
|
|
|
4a2fec |
Subject: [PATCH 18/34] usb: drop HOST_USB
|
|
|
4a2fec |
|
|
|
4a2fec |
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
Message-id: <1507552368-9245-2-git-send-email-thuth@redhat.com>
|
|
|
4a2fec |
Patchwork-id: 77016
|
|
|
4a2fec |
O-Subject: [RHEL-7.5 qemu-kvm-ma PATCH 01/12] usb: drop HOST_USB
|
|
|
4a2fec |
Bugzilla: 1492033
|
|
|
4a2fec |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: David Gibson <dgibson@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
Nowdays we use libusb for usb-host, so we don't have different code
|
|
|
4a2fec |
for linux vs. bsd any more. So there is little reason to have the
|
|
|
4a2fec |
HOST_USB variable, we can just write things directly into the Makefile
|
|
|
4a2fec |
and avoid a pointless indirection.
|
|
|
4a2fec |
|
|
|
4a2fec |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
4a2fec |
Reviewed-by: Fam Zheng <famz@redhat.com>
|
|
|
4a2fec |
Reviewed-by: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
Message-id: 20170908111217.21985-2-kraxel@redhat.com
|
|
|
4a2fec |
(cherry picked from commit 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1)
|
|
|
4a2fec |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
Conflicts:
|
|
|
4a2fec |
configure (simple conflict in the context of the removed hunk)
|
|
|
4a2fec |
---
|
|
|
4a2fec |
configure | 7 -------
|
|
|
4a2fec |
hw/usb/Makefile.objs | 6 +++++-
|
|
|
4a2fec |
2 files changed, 5 insertions(+), 8 deletions(-)
|
|
|
4a2fec |
|
|
|
4a2fec |
diff --git a/configure b/configure
|
|
|
4a2fec |
index 5cb65d0..457b2ff 100755
|
|
|
4a2fec |
--- a/configure
|
|
|
4a2fec |
+++ b/configure
|
|
|
4a2fec |
@@ -5968,13 +5968,6 @@ if test "$live_block_ops" = "yes" ; then
|
|
|
4a2fec |
echo "CONFIG_LIVE_BLOCK_OPS=y" >> $config_host_mak
|
|
|
4a2fec |
fi
|
|
|
4a2fec |
|
|
|
4a2fec |
-# USB host support
|
|
|
4a2fec |
-if test "$libusb" = "yes"; then
|
|
|
4a2fec |
- echo "HOST_USB=libusb legacy" >> $config_host_mak
|
|
|
4a2fec |
-else
|
|
|
4a2fec |
- echo "HOST_USB=stub" >> $config_host_mak
|
|
|
4a2fec |
-fi
|
|
|
4a2fec |
-
|
|
|
4a2fec |
# TPM passthrough support?
|
|
|
4a2fec |
if test "$tpm" = "yes"; then
|
|
|
4a2fec |
echo 'CONFIG_TPM=$(CONFIG_SOFTMMU)' >> $config_host_mak
|
|
|
4a2fec |
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs
|
|
|
4a2fec |
index 97f1c456..a43ebbc 100644
|
|
|
4a2fec |
--- a/hw/usb/Makefile.objs
|
|
|
4a2fec |
+++ b/hw/usb/Makefile.objs
|
|
|
4a2fec |
@@ -38,7 +38,11 @@ endif
|
|
|
4a2fec |
common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
|
|
|
4a2fec |
|
|
|
4a2fec |
# usb pass-through
|
|
|
4a2fec |
-common-obj-y += $(patsubst %,host-%.o,$(HOST_USB))
|
|
|
4a2fec |
+ifeq ($(CONFIG_LIBUSB),y)
|
|
|
4a2fec |
+common-obj-y += host-libusb.o host-legacy.o
|
|
|
4a2fec |
+else
|
|
|
4a2fec |
+common-obj-y += host-stub.o
|
|
|
4a2fec |
+endif
|
|
|
4a2fec |
|
|
|
4a2fec |
ifeq ($(CONFIG_USB_LIBUSB),y)
|
|
|
4a2fec |
common-obj-$(CONFIG_XEN) += xen-usb.o
|
|
|
4a2fec |
--
|
|
|
4a2fec |
1.8.3.1
|
|
|
4a2fec |
|