Merge remote-tracking branch 'remotes/kraxel/tags/fixes-31-20181127-pull-request...
[qemu/kevin.git] / hw / usb / Makefile.objs
blob41be700812a920e00a61b969cc0f07f312d87ded
1 # usb subsystem core
2 common-obj-y += core.o combined-packet.o bus.o libhw.o
3 common-obj-$(CONFIG_USB) += desc.o desc-msos.o
5 # usb host adapters
6 common-obj-$(CONFIG_USB_UHCI) += hcd-uhci.o
7 common-obj-$(CONFIG_USB_OHCI) += hcd-ohci.o
8 common-obj-$(CONFIG_USB_EHCI) += hcd-ehci.o hcd-ehci-pci.o
9 common-obj-$(CONFIG_USB_EHCI_SYSBUS) += hcd-ehci-sysbus.o
10 common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o
11 common-obj-$(CONFIG_USB_XHCI_NEC) += hcd-xhci-nec.o
12 common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o
14 obj-$(CONFIG_TUSB6010) += tusb6010.o
15 obj-$(CONFIG_IMX)      += chipidea.o
17 # emulated usb devices
18 common-obj-$(CONFIG_USB) += dev-hub.o
19 common-obj-$(CONFIG_USB) += dev-hid.o
20 common-obj-$(CONFIG_USB_TABLET_WACOM) += dev-wacom.o
21 common-obj-$(CONFIG_USB_STORAGE_BOT)  += dev-storage.o
22 common-obj-$(CONFIG_USB_STORAGE_UAS)  += dev-uas.o
23 common-obj-$(CONFIG_USB_AUDIO)        += dev-audio.o
24 common-obj-$(CONFIG_USB_SERIAL)       += dev-serial.o
25 common-obj-$(CONFIG_USB_NETWORK)      += dev-network.o
26 common-obj-$(CONFIG_USB_BLUETOOTH)    += dev-bluetooth.o
28 ifeq ($(CONFIG_USB_SMARTCARD),y)
29 common-obj-y                          += dev-smartcard-reader.o
30 common-obj-$(CONFIG_SMARTCARD)        += smartcard.mo
31 smartcard.mo-objs := ccid-card-passthru.o ccid-card-emulated.o
32 smartcard.mo-cflags := $(SMARTCARD_CFLAGS)
33 smartcard.mo-libs := $(SMARTCARD_LIBS)
34 endif
36 ifeq ($(CONFIG_POSIX),y)
37 common-obj-$(CONFIG_USB_STORAGE_MTP)  += dev-mtp.o
38 endif
40 # usb redirection
41 common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
42 redirect.o-cflags = $(USB_REDIR_CFLAGS)
43 redirect.o-libs = $(USB_REDIR_LIBS)
45 # usb pass-through
46 ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
47 common-obj-y += host-libusb.o
48 else
49 common-obj-y += host-stub.o
50 endif
51 common-obj-$(CONFIG_ALL) += host-stub.o
53 host-libusb.o-cflags := $(LIBUSB_CFLAGS)
54 host-libusb.o-libs := $(LIBUSB_LIBS)
56 ifeq ($(CONFIG_USB_LIBUSB),y)
57 common-obj-$(CONFIG_XEN) += xen-usb.o
58 xen-usb.o-cflags := $(LIBUSB_CFLAGS)
59 xen-usb.o-libs := $(LIBUSB_LIBS)
60 endif