| 
									
										
										
										
											2013-02-01 09:53:17 +01:00
										 |  |  | # usb subsystem core
 | 
					
						
							| 
									
										
										
										
											2015-03-17 14:52:54 +01:00
										 |  |  | common-obj-y += core.o combined-packet.o bus.o libhw.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB) += desc.o desc-msos.o | 
					
						
							| 
									
										
										
										
											2013-02-01 09:53:17 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # usb host adapters
 | 
					
						
							| 
									
										
										
										
											2012-10-05 19:39:33 +02:00
										 |  |  | common-obj-$(CONFIG_USB_UHCI) += hcd-uhci.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_OHCI) += hcd-ohci.o | 
					
						
							| 
									
										
										
										
											2019-04-19 09:56:25 +02:00
										 |  |  | common-obj-$(CONFIG_USB_OHCI_PCI) += hcd-ohci-pci.o | 
					
						
							| 
									
										
										
										
											2019-07-15 11:55:44 +02:00
										 |  |  | common-obj-$(CONFIG_USB_EHCI) += hcd-ehci.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_EHCI_PCI) += hcd-ehci-pci.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_EHCI_SYSBUS) += hcd-ehci-sysbus.o | 
					
						
							| 
									
										
										
										
											2012-10-05 19:39:33 +02:00
										 |  |  | common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o | 
					
						
							| 
									
										
										
										
											2017-05-17 12:33:13 +02:00
										 |  |  | common-obj-$(CONFIG_USB_XHCI_NEC) += hcd-xhci-nec.o | 
					
						
							| 
									
										
										
										
											2013-02-05 12:23:23 +01:00
										 |  |  | common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o | 
					
						
							| 
									
										
										
										
											2020-05-20 16:53:46 -07:00
										 |  |  | common-obj-$(CONFIG_USB_DWC2) += hcd-dwc2.o | 
					
						
							| 
									
										
										
										
											2012-05-29 11:10:55 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-11 20:56:08 +02:00
										 |  |  | common-obj-$(CONFIG_TUSB6010) += tusb6010.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_IMX)      += chipidea.o | 
					
						
							| 
									
										
										
										
											2016-02-19 12:03:24 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-01 09:53:17 +01:00
										 |  |  | # emulated usb devices
 | 
					
						
							| 
									
										
										
										
											2015-03-17 14:52:54 +01:00
										 |  |  | common-obj-$(CONFIG_USB) += dev-hub.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB) += dev-hid.o | 
					
						
							| 
									
										
										
										
											2013-02-01 10:49:43 +01:00
										 |  |  | common-obj-$(CONFIG_USB_TABLET_WACOM) += dev-wacom.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_STORAGE_BOT)  += dev-storage.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_STORAGE_UAS)  += dev-uas.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_AUDIO)        += dev-audio.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_SERIAL)       += dev-serial.o | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_NETWORK)      += dev-network.o | 
					
						
							| 
									
										
										
										
											2013-03-01 13:59:19 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | ifeq ($(CONFIG_USB_SMARTCARD),y) | 
					
						
							|  |  |  | common-obj-y                          += dev-smartcard-reader.o | 
					
						
							| 
									
										
										
										
											2020-06-24 15:10:40 +02:00
										 |  |  | ifeq ($(CONFIG_SMARTCARD),y) | 
					
						
							|  |  |  | common-obj-m                          += smartcard.mo | 
					
						
							| 
									
										
										
										
											2017-09-07 16:29:16 +08:00
										 |  |  | smartcard.mo-objs := ccid-card-passthru.o ccid-card-emulated.o | 
					
						
							|  |  |  | smartcard.mo-cflags := $(SMARTCARD_CFLAGS) | 
					
						
							|  |  |  | smartcard.mo-libs := $(SMARTCARD_LIBS) | 
					
						
							| 
									
										
										
										
											2013-03-01 13:59:19 +01:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2020-06-24 15:10:40 +02:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2013-02-01 09:53:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-10-18 10:26:09 +02:00
										 |  |  | ifeq ($(CONFIG_POSIX),y) | 
					
						
							|  |  |  | common-obj-$(CONFIG_USB_STORAGE_MTP)  += dev-mtp.o | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-01 09:53:17 +01:00
										 |  |  | # usb redirection
 | 
					
						
							| 
									
										
										
										
											2019-12-31 19:32:03 +01:00
										 |  |  | ifeq ($(CONFIG_USB),y) | 
					
						
							| 
									
										
										
										
											2020-06-24 15:10:41 +02:00
										 |  |  | ifeq ($(CONFIG_USB_REDIR),y) | 
					
						
							|  |  |  | common-obj-m += redirect.mo | 
					
						
							|  |  |  | redirect.mo-objs = redirect.o quirks.o | 
					
						
							|  |  |  | redirect.mo-cflags = $(USB_REDIR_CFLAGS) | 
					
						
							|  |  |  | redirect.mo-libs = $(USB_REDIR_LIBS) | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2019-12-31 19:32:03 +01:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2012-05-29 11:10:55 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-01 09:53:17 +01:00
										 |  |  | # usb pass-through
 | 
					
						
							| 
									
										
										
										
											2017-09-26 08:38:20 +02:00
										 |  |  | ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy) | 
					
						
							| 
									
										
											  
											
												usb: Remove legacy -usbdevice options (host, serial, disk and net)
The option have been marked as deprecated since QEMU 2.10, and so far
nobody complained that the host, serial, disk and net options are urgently
required anymore. So let's now get rid at least of this legacy pile, to
simplify the usb code quite a bit.
This patch removes the usbdevices host, serial, disk and net. These devices
use their own complicated parameter parsing mechanisms, so they are just
ugly to maintain, without real benefit for the users (the users can use the
corresponding "-device" parameters instead which have the same complexity
as the "-usbdevice" devices here).
Note that the other rather simple -usbdevice options (mouse, tablet, etc.)
are not removed yet (the code is really simple here, so it does not hurt
much to keep it), as well as the two devices "braille" and "bt" which are
easier to use with -usbdevice than with -device.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-id: 1515519171-20315-1-git-send-email-thuth@redhat.com
[kraxel] delete some usb_host_device_open() leftovers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
											
										 
											2018-01-09 18:32:51 +01:00
										 |  |  | common-obj-y += host-libusb.o | 
					
						
							| 
									
										
										
										
											2017-09-08 13:12:16 +02:00
										 |  |  | else | 
					
						
							|  |  |  | common-obj-y += host-stub.o | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2017-10-04 14:52:10 +02:00
										 |  |  | common-obj-$(CONFIG_ALL) += host-stub.o | 
					
						
							| 
									
										
										
										
											2016-05-12 16:13:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-07 16:29:17 +08:00
										 |  |  | host-libusb.o-cflags := $(LIBUSB_CFLAGS) | 
					
						
							|  |  |  | host-libusb.o-libs := $(LIBUSB_LIBS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-12 16:13:41 +02:00
										 |  |  | ifeq ($(CONFIG_USB_LIBUSB),y) | 
					
						
							| 
									
										
										
										
											2017-03-16 13:01:50 -07:00
										 |  |  | common-obj-$(CONFIG_XEN) += xen-usb.o | 
					
						
							| 
									
										
										
										
											2017-09-07 16:29:17 +08:00
										 |  |  | xen-usb.o-cflags := $(LIBUSB_CFLAGS) | 
					
						
							|  |  |  | xen-usb.o-libs := $(LIBUSB_LIBS) | 
					
						
							| 
									
										
										
										
											2016-05-12 16:13:41 +02:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2020-03-12 18:45:47 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | common-obj-$(CONFIG_IMX_USBPHY) += imx-usb-phy.o |