xref: /linux/drivers/usb/dwc3/Makefile (revision 9840354ff429d4a392a96dff5ab6b5df609b8dc1)
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),)
95eb30cedSFelipe 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
20*9840354fSRoger Quadrosifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),)
21*9840354fSRoger Quadros	dwc3-y				+= drd.o
22*9840354fSRoger Quadrosendif
23*9840354fSRoger Quadros
2488bc9d19SHeikki Krogerusifneq ($(CONFIG_USB_DWC3_ULPI),)
2588bc9d19SHeikki Krogerus	dwc3-y				+= ulpi.o
2688bc9d19SHeikki Krogerusendif
2788bc9d19SHeikki Krogerus
2872246da4SFelipe Balbiifneq ($(CONFIG_DEBUG_FS),)
2972246da4SFelipe Balbi	dwc3-y				+= debugfs.o
3072246da4SFelipe Balbiendif
3172246da4SFelipe Balbi
3272246da4SFelipe Balbi##
3372246da4SFelipe Balbi# Platform-specific glue layers go here
3472246da4SFelipe Balbi#
3572246da4SFelipe Balbi# NOTICE: Make sure your glue layer doesn't depend on anything
3672246da4SFelipe Balbi# which is arch-specific and that it compiles on all situations.
3772246da4SFelipe Balbi#
3872246da4SFelipe Balbi# We want to keep this requirement in order to be able to compile
3972246da4SFelipe Balbi# the entire driver (with all its glue layers) on several architectures
4072246da4SFelipe Balbi# and make sure it compiles fine. This will also help with allmodconfig
4172246da4SFelipe Balbi# and allyesconfig builds.
4272246da4SFelipe Balbi##
4372246da4SFelipe Balbi
441a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_OMAP)		+= dwc3-omap.o
451a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_EXYNOS)		+= dwc3-exynos.o
461a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_PCI)		+= dwc3-pci.o
47943befc3SWingMan Kwokobj-$(CONFIG_USB_DWC3_KEYSTONE)		+= dwc3-keystone.o
4816adc674SFelipe Balbiobj-$(CONFIG_USB_DWC3_OF_SIMPLE)	+= dwc3-of-simple.o
49f83fca07SPeter Griffinobj-$(CONFIG_USB_DWC3_ST)		+= dwc3-st.o
50