12c4cbe6eSFelipe Balbi# define_trace.h needs to know how to find our header 22c4cbe6eSFelipe BalbiCFLAGS_trace.o := -I$(src) 32c4cbe6eSFelipe Balbi 472246da4SFelipe Balbiccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG 572246da4SFelipe Balbiccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG 672246da4SFelipe Balbi 772246da4SFelipe Balbiobj-$(CONFIG_USB_DWC3) += dwc3.o 872246da4SFelipe Balbi 92c4cbe6eSFelipe Balbidwc3-y := core.o debug.o trace.o 10388e5c51SVivek Gautam 11388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 12d07e8819SFelipe Balbi dwc3-y += host.o 13388e5c51SVivek Gautamendif 14388e5c51SVivek Gautam 15388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 1672246da4SFelipe Balbi dwc3-y += gadget.o ep0.o 17388e5c51SVivek Gautamendif 18d07e8819SFelipe Balbi 1972246da4SFelipe Balbiifneq ($(CONFIG_DEBUG_FS),) 2072246da4SFelipe Balbi dwc3-y += debugfs.o 2172246da4SFelipe Balbiendif 2272246da4SFelipe Balbi 2372246da4SFelipe Balbi## 2472246da4SFelipe Balbi# Platform-specific glue layers go here 2572246da4SFelipe Balbi# 2672246da4SFelipe Balbi# NOTICE: Make sure your glue layer doesn't depend on anything 2772246da4SFelipe Balbi# which is arch-specific and that it compiles on all situations. 2872246da4SFelipe Balbi# 2972246da4SFelipe Balbi# We want to keep this requirement in order to be able to compile 3072246da4SFelipe Balbi# the entire driver (with all its glue layers) on several architectures 3172246da4SFelipe Balbi# and make sure it compiles fine. This will also help with allmodconfig 3272246da4SFelipe Balbi# and allyesconfig builds. 3372246da4SFelipe Balbi## 3472246da4SFelipe Balbi 351a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o 361a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o 371a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o 38943befc3SWingMan Kwokobj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o 39*f83fca07SPeter Griffinobj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o 40