blob: a14c54832c65b4688439ef4663bbb01b17dbcfe2 [file] [log] [blame]
Felipe Balbi4dc64e52011-08-19 18:10:58 +03001ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG
2ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG
3
4obj-$(CONFIG_USB_DWC3) += dwc3.o
5
6dwc3-y := core.o
Ido Shayevitzb01e3c72012-03-12 13:24:51 +02007dwc3-y += gadget.o ep0.o
Felipe Balbi4dc64e52011-08-19 18:10:58 +03008
9ifneq ($(CONFIG_DEBUG_FS),)
10 dwc3-y += debugfs.o
11endif
12
13##
14# Platform-specific glue layers go here
15#
16# NOTICE: Make sure your glue layer doesn't depend on anything
17# which is arch-specific and that it compiles on all situations.
18#
19# We want to keep this requirement in order to be able to compile
20# the entire driver (with all its glue layers) on several architectures
21# and make sure it compiles fine. This will also help with allmodconfig
22# and allyesconfig builds.
23#
24# The only exception is the PCI glue layer, but that's only because
25# PCI doesn't provide nops if CONFIG_PCI isn't enabled.
26##
27
Ido Shayevitzef72ddd2012-03-28 18:55:55 +020028
Ido Shayevitzb01e3c72012-03-12 13:24:51 +020029obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
Ido Shayevitzef72ddd2012-03-28 18:55:55 +020030obj-$(CONFIG_USB_DWC3_MSM) += dwc3-msm.o
Felipe Balbi4dc64e52011-08-19 18:10:58 +030031
32ifneq ($(CONFIG_PCI),)
33 obj-$(CONFIG_USB_DWC3) += dwc3-pci.o
34endif
35