12c4cbe6eSFelipe Balbi# define_trace.h needs to know how to find our header 22c4cbe6eSFelipe BalbiCFLAGS_trace.o := -I$(src) 32c4cbe6eSFelipe Balbi 472246da4SFelipe Balbiobj-$(CONFIG_USB_DWC3) += dwc3.o 572246da4SFelipe Balbi 657b14da5SFelipe Balbidwc3-y := core.o 757b14da5SFelipe Balbi 857b14da5SFelipe Balbiifneq ($(CONFIG_FTRACE),) 9*5eb30cedSFelipe Balbi dwc3-y += trace.o 1057b14da5SFelipe Balbiendif 11388e5c51SVivek Gautam 12388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 13d07e8819SFelipe Balbi dwc3-y += host.o 14388e5c51SVivek Gautamendif 15388e5c51SVivek Gautam 16388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 1772246da4SFelipe Balbi dwc3-y += gadget.o ep0.o 18388e5c51SVivek Gautamendif 19d07e8819SFelipe Balbi 2088bc9d19SHeikki Krogerusifneq ($(CONFIG_USB_DWC3_ULPI),) 2188bc9d19SHeikki Krogerus dwc3-y += ulpi.o 2288bc9d19SHeikki Krogerusendif 2388bc9d19SHeikki Krogerus 2472246da4SFelipe Balbiifneq ($(CONFIG_DEBUG_FS),) 2572246da4SFelipe Balbi dwc3-y += debugfs.o 2672246da4SFelipe Balbiendif 2772246da4SFelipe Balbi 2872246da4SFelipe Balbi## 2972246da4SFelipe Balbi# Platform-specific glue layers go here 3072246da4SFelipe Balbi# 3172246da4SFelipe Balbi# NOTICE: Make sure your glue layer doesn't depend on anything 3272246da4SFelipe Balbi# which is arch-specific and that it compiles on all situations. 3372246da4SFelipe Balbi# 3472246da4SFelipe Balbi# We want to keep this requirement in order to be able to compile 3572246da4SFelipe Balbi# the entire driver (with all its glue layers) on several architectures 3672246da4SFelipe Balbi# and make sure it compiles fine. This will also help with allmodconfig 3772246da4SFelipe Balbi# and allyesconfig builds. 3872246da4SFelipe Balbi## 3972246da4SFelipe Balbi 401a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o 411a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o 421a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o 43943befc3SWingMan Kwokobj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o 4416adc674SFelipe Balbiobj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o 45f83fca07SPeter Griffinobj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o 46