hw/usb: Include USB files only if necessary
[qemu.git] / hw / usb / Makefile.objs
blob7443e386b3b6c252b469e686e540f7ffc4c7bcf3
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_MUSB) += hcd-musb.o
13 # emulated usb devices
14 common-obj-$(CONFIG_USB) += dev-hub.o
15 common-obj-$(CONFIG_USB) += dev-hid.o
16 common-obj-$(CONFIG_USB_TABLET_WACOM) += dev-wacom.o
17 common-obj-$(CONFIG_USB_STORAGE_BOT)  += dev-storage.o
18 common-obj-$(CONFIG_USB_STORAGE_UAS)  += dev-uas.o
19 common-obj-$(CONFIG_USB_AUDIO)        += dev-audio.o
20 common-obj-$(CONFIG_USB_SERIAL)       += dev-serial.o
21 common-obj-$(CONFIG_USB_NETWORK)      += dev-network.o
22 common-obj-$(CONFIG_USB_BLUETOOTH)    += dev-bluetooth.o
24 ifeq ($(CONFIG_USB_SMARTCARD),y)
25 common-obj-y                          += dev-smartcard-reader.o
26 common-obj-y                          += ccid-card-passthru.o
27 common-obj-$(CONFIG_SMARTCARD_NSS)    += ccid-card-emulated.o
28 ccid-card-emulated.o-cflags := -I$(SRC_PATH)/libcacard
29 endif
31 ifeq ($(CONFIG_POSIX),y)
32 common-obj-$(CONFIG_USB_STORAGE_MTP)  += dev-mtp.o
33 endif
35 # usb redirection
36 common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
38 # usb pass-through
39 common-obj-y += $(patsubst %,host-%.o,$(HOST_USB))