xref: /openbmc/linux/drivers/usb/dwc2/Makefile (revision 588b48ca)
1ccflags-$(CONFIG_USB_DWC2_DEBUG)	+= -DDEBUG
2ccflags-$(CONFIG_USB_DWC2_VERBOSE)	+= -DVERBOSE_DEBUG
3
4obj-$(CONFIG_USB_DWC2_HOST)		+= dwc2.o
5dwc2-y					:= core.o core_intr.o
6dwc2-y					+= hcd.o hcd_intr.o
7dwc2-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
17ifneq ($(CONFIG_USB_DWC2_PCI),)
18	obj-$(CONFIG_USB_DWC2_HOST)	+= dwc2_pci.o
19	dwc2_pci-y			:= pci.o
20endif
21
22ifneq ($(CONFIG_USB_DWC2_PLATFORM),)
23	obj-$(CONFIG_USB_DWC2_HOST)	+= dwc2_platform.o
24	dwc2_platform-y			:= platform.o
25endif
26
27obj-$(CONFIG_USB_DWC2_PERIPHERAL)	+= dwc2_gadget.o
28dwc2_gadget-y				:= gadget.o
29