2013-02-01 16:53:17 +08:00
|
|
|
# usb subsystem core
|
2015-03-17 21:52:54 +08: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 16:53:17 +08:00
|
|
|
|
|
|
|
# usb host adapters
|
2012-10-06 01:39:33 +08:00
|
|
|
common-obj-$(CONFIG_USB_UHCI) += hcd-uhci.o
|
|
|
|
common-obj-$(CONFIG_USB_OHCI) += hcd-ohci.o
|
2015-02-18 13:01:01 +08:00
|
|
|
common-obj-$(CONFIG_USB_EHCI) += hcd-ehci.o hcd-ehci-pci.o
|
|
|
|
common-obj-$(CONFIG_USB_EHCI_SYSBUS) += hcd-ehci-sysbus.o
|
2012-10-06 01:39:33 +08:00
|
|
|
common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o
|
2017-05-17 18:33:13 +08:00
|
|
|
common-obj-$(CONFIG_USB_XHCI_NEC) += hcd-xhci-nec.o
|
2013-02-05 19:23:23 +08:00
|
|
|
common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o
|
2012-05-29 17:10:55 +08:00
|
|
|
|
2016-02-19 20:03:24 +08:00
|
|
|
obj-$(CONFIG_TUSB6010) += tusb6010.o
|
|
|
|
|
2013-02-01 16:53:17 +08:00
|
|
|
# emulated usb devices
|
2015-03-17 21:52:54 +08:00
|
|
|
common-obj-$(CONFIG_USB) += dev-hub.o
|
|
|
|
common-obj-$(CONFIG_USB) += dev-hid.o
|
2013-02-01 17:49:43 +08: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
|
|
|
|
common-obj-$(CONFIG_USB_BLUETOOTH) += dev-bluetooth.o
|
2013-03-01 20:59:19 +08:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_USB_SMARTCARD),y)
|
|
|
|
common-obj-y += dev-smartcard-reader.o
|
2017-09-07 16:29:16 +08:00
|
|
|
common-obj-$(CONFIG_SMARTCARD) += smartcard.mo
|
|
|
|
smartcard.mo-objs := ccid-card-passthru.o ccid-card-emulated.o
|
|
|
|
smartcard.mo-cflags := $(SMARTCARD_CFLAGS)
|
|
|
|
smartcard.mo-libs := $(SMARTCARD_LIBS)
|
2013-03-01 20:59:19 +08:00
|
|
|
endif
|
2013-02-01 16:53:17 +08:00
|
|
|
|
2012-10-18 16:26:09 +08:00
|
|
|
ifeq ($(CONFIG_POSIX),y)
|
|
|
|
common-obj-$(CONFIG_USB_STORAGE_MTP) += dev-mtp.o
|
|
|
|
endif
|
|
|
|
|
2013-02-01 16:53:17 +08:00
|
|
|
# usb redirection
|
2012-12-19 22:08:33 +08:00
|
|
|
common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
|
2017-09-07 16:29:18 +08:00
|
|
|
redirect.o-cflags = $(USB_REDIR_CFLAGS)
|
|
|
|
redirect.o-libs = $(USB_REDIR_LIBS)
|
2012-05-29 17:10:55 +08:00
|
|
|
|
2013-02-01 16:53:17 +08:00
|
|
|
# usb pass-through
|
2017-09-26 14:38:20 +08:00
|
|
|
ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
|
2017-09-08 19:12:16 +08:00
|
|
|
common-obj-y += host-libusb.o host-legacy.o
|
|
|
|
else
|
|
|
|
common-obj-y += host-stub.o
|
|
|
|
endif
|
2017-10-04 20:52:10 +08:00
|
|
|
common-obj-$(CONFIG_ALL) += host-stub.o
|
2016-05-12 22:13:41 +08:00
|
|
|
|
2017-09-07 16:29:17 +08:00
|
|
|
host-libusb.o-cflags := $(LIBUSB_CFLAGS)
|
|
|
|
host-libusb.o-libs := $(LIBUSB_LIBS)
|
|
|
|
|
2016-05-12 22:13:41 +08:00
|
|
|
ifeq ($(CONFIG_USB_LIBUSB),y)
|
2017-03-17 04:01:50 +08: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 22:13:41 +08:00
|
|
|
endif
|