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 62c4cbe6eSFelipe Balbidwc3-y := core.o debug.o trace.o 7388e5c51SVivek Gautam 8388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 9d07e8819SFelipe Balbi dwc3-y += host.o 10388e5c51SVivek Gautamendif 11388e5c51SVivek Gautam 12388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 1372246da4SFelipe Balbi dwc3-y += gadget.o ep0.o 14388e5c51SVivek Gautamendif 15d07e8819SFelipe Balbi 1688bc9d19SHeikki Krogerusifneq ($(CONFIG_USB_DWC3_ULPI),) 1788bc9d19SHeikki Krogerus dwc3-y += ulpi.o 1888bc9d19SHeikki Krogerusendif 1988bc9d19SHeikki Krogerus 2072246da4SFelipe Balbiifneq ($(CONFIG_DEBUG_FS),) 2172246da4SFelipe Balbi dwc3-y += debugfs.o 2272246da4SFelipe Balbiendif 2372246da4SFelipe Balbi 2472246da4SFelipe Balbi## 2572246da4SFelipe Balbi# Platform-specific glue layers go here 2672246da4SFelipe Balbi# 2772246da4SFelipe Balbi# NOTICE: Make sure your glue layer doesn't depend on anything 2872246da4SFelipe Balbi# which is arch-specific and that it compiles on all situations. 2972246da4SFelipe Balbi# 3072246da4SFelipe Balbi# We want to keep this requirement in order to be able to compile 3172246da4SFelipe Balbi# the entire driver (with all its glue layers) on several architectures 3272246da4SFelipe Balbi# and make sure it compiles fine. This will also help with allmodconfig 3372246da4SFelipe Balbi# and allyesconfig builds. 3472246da4SFelipe Balbi## 3572246da4SFelipe Balbi 361a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o 371a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o 381a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o 39943befc3SWingMan Kwokobj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o 40*16adc674SFelipe Balbiobj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o 41d9152161SIvan T. Ivanovobj-$(CONFIG_USB_DWC3_QCOM) += dwc3-qcom.o 42f83fca07SPeter Griffinobj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o 43