]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/usb/dwc2/Makefile
usb: dwc2/s3c-hsotg: move s3c-hsotg into dwc2 directory
[karo-tx-linux.git] / drivers / usb / dwc2 / Makefile
1 ccflags-$(CONFIG_USB_DWC2_DEBUG)        += -DDEBUG
2 ccflags-$(CONFIG_USB_DWC2_VERBOSE)      += -DVERBOSE_DEBUG
3
4 obj-$(CONFIG_USB_DWC2_HOST)             += dwc2.o
5 dwc2-y                                  := core.o core_intr.o
6 dwc2-y                                  += hcd.o hcd_intr.o
7 dwc2-y                                  += hcd_queue.o hcd_ddma.o
8
9 # NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to
10 # this location and renamed gadget.c. When building for dynamically linked
11 # modules, dwc2_gadget.ko will get built for peripheral mode. For host mode,
12 # the core module will be dwc2.ko, the PCI bus interface module will called
13 # dwc2_pci.ko and the platform interface module will be called dwc2_platform.ko.
14 # At present the host and gadget driver will be separate drivers, but there
15 # are plans in the near future to create a dual-role driver.
16
17 ifneq ($(CONFIG_USB_DWC2_PCI),)
18         obj-$(CONFIG_USB_DWC2_HOST)     += dwc2_pci.o
19         dwc2_pci-y                      := pci.o
20 endif
21
22 ifneq ($(CONFIG_USB_DWC2_PLATFORM),)
23         obj-$(CONFIG_USB_DWC2_HOST)     += dwc2_platform.o
24         dwc2_platform-y                 := platform.o
25 endif
26
27 obj-$(CONFIG_USB_DWC2_PERIPHERAL)       += dwc2_gadget.o
28 dwc2_gadget-y                           := gadget.o