Skip to contentSkip to conversation

usb: remove old usb-host code

PATCH New Gerd Hoffmann 1 participant 1 message Sep 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: remove old usb-host code

The usb-host code has been rewritten for qemu 1.5 to use libusb, the old code has been left in as temporary fallback. Now we are two releases further out, targeting the 1.7 release. No major issues with the new code poped up until now. Time to remove it from tre tree. Should we ever need it again for some reason -- git has a copy for us in the history.

---
 configure           |   26 +-
 hw/usb/host-bsd.c   |  639 -----------------
 hw/usb/host-linux.c | 1911 ---------------------------------------------------
 3 files changed, 4 insertions(+), 2572 deletions(-)
 delete mode 100644 hw/usb/host-bsd.c
 delete mode 100644 hw/usb/host-linux.c
configure +4 -22
index e989609..d64540f 100755
@@ -550,7 +550,6 @@ Haiku)
   audio_possible_drivers="oss alsa sdl esd pa"
   linux="yes"
   linux_user="yes"
-  usb="linux"
   kvm="yes"
   vhost_net="yes"
   vhost_scsi="yes"
@@ -563,9 +562,6 @@ esac
 
 if [ "$bsd" = "yes" ] ; then
   if [ "$darwin" != "yes" ] ; then
-    if [ "$targetos" != "FreeBSD" ]; then
-      usb="bsd"
-    fi
     bsd_user="yes"
   fi
 fi
@@ -3091,7 +3087,6 @@ fi
 if test "$libusb" != "no" ; then
     if $pkg_config --atleast-version=1.0.13 libusb-1.0; then
         libusb="yes"
-	usb="libusb"
         libusb_cflags=$($pkg_config --cflags libusb-1.0)
         libusb_libs=$($pkg_config --libs libusb-1.0)
         QEMU_CFLAGS="$QEMU_CFLAGS $libusb_cflags"
@@ -4049,24 +4044,11 @@ if test "$virtio_blk_data_plane" = "yes" ; then
 fi
 
 # USB host support
-case "$usb" in
-linux)
-  echo "HOST_USB=linux legacy" >> $config_host_mak
-;;
-bsd)
-  echo "HOST_USB=bsd" >> $config_host_mak
-;;
-libusb)
-  if test "$linux" = "yes"; then
-    echo "HOST_USB=libusb linux legacy" >> $config_host_mak
-  else
-    echo "HOST_USB=libusb legacy" >> $config_host_mak
-  fi
-;;
-*)
+if test "$libusb" = "yes"; then
+  echo "HOST_USB=libusb legacy" >> $config_host_mak
+else
   echo "HOST_USB=stub" >> $config_host_mak
-;;
-esac
+fi
 
 # TPM passthrough support?
 if test "$tpm" = "yes"; then
hw/usb/host-bsd.c deleted +0 -639

639 lines not on this page · raw message

hw/usb/host-linux.c deleted +0 -1911

1,911 lines not on this page · raw message

Signature · 1 line
1.8.3.1