xref: /linux/drivers/usb/dwc3/Makefile (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
22c4cbe6eSFelipe Balbi# define_trace.h needs to know how to find our header
32c4cbe6eSFelipe BalbiCFLAGS_trace.o				:= -I$(src)
42c4cbe6eSFelipe Balbi
572246da4SFelipe Balbiobj-$(CONFIG_USB_DWC3)			+= dwc3.o
672246da4SFelipe Balbi
757b14da5SFelipe Balbidwc3-y					:= core.o
857b14da5SFelipe Balbi
9de948a74SFelipe Balbiifneq ($(CONFIG_TRACING),)
105eb30cedSFelipe Balbi	dwc3-y				+= trace.o
1157b14da5SFelipe Balbiendif
12388e5c51SVivek Gautam
13388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
14d07e8819SFelipe Balbi	dwc3-y				+= host.o
15388e5c51SVivek Gautamendif
16388e5c51SVivek Gautam
17388e5c51SVivek Gautamifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
1872246da4SFelipe Balbi	dwc3-y				+= gadget.o ep0.o
19388e5c51SVivek Gautamendif
20d07e8819SFelipe Balbi
219840354fSRoger Quadrosifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),)
229840354fSRoger Quadros	dwc3-y				+= drd.o
239840354fSRoger Quadrosendif
249840354fSRoger Quadros
2588bc9d19SHeikki Krogerusifneq ($(CONFIG_USB_DWC3_ULPI),)
2688bc9d19SHeikki Krogerus	dwc3-y				+= ulpi.o
2788bc9d19SHeikki Krogerusendif
2888bc9d19SHeikki Krogerus
2972246da4SFelipe Balbiifneq ($(CONFIG_DEBUG_FS),)
3072246da4SFelipe Balbi	dwc3-y				+= debugfs.o
3172246da4SFelipe Balbiendif
3272246da4SFelipe Balbi
3372246da4SFelipe Balbi##
3472246da4SFelipe Balbi# Platform-specific glue layers go here
3572246da4SFelipe Balbi#
3672246da4SFelipe Balbi# NOTICE: Make sure your glue layer doesn't depend on anything
3772246da4SFelipe Balbi# which is arch-specific and that it compiles on all situations.
3872246da4SFelipe Balbi#
3972246da4SFelipe Balbi# We want to keep this requirement in order to be able to compile
4072246da4SFelipe Balbi# the entire driver (with all its glue layers) on several architectures
4172246da4SFelipe Balbi# and make sure it compiles fine. This will also help with allmodconfig
4272246da4SFelipe Balbi# and allyesconfig builds.
4372246da4SFelipe Balbi##
4472246da4SFelipe Balbi
45e8784c0aSAswath Govindrajuobj-$(CONFIG_USB_DWC3_AM62)		+= dwc3-am62.o
461a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_OMAP)		+= dwc3-omap.o
471a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_EXYNOS)		+= dwc3-exynos.o
481a356dbcSFelipe Balbiobj-$(CONFIG_USB_DWC3_PCI)		+= dwc3-pci.o
493fe314caSThinh Nguyenobj-$(CONFIG_USB_DWC3_HAPS)		+= dwc3-haps.o
50943befc3SWingMan Kwokobj-$(CONFIG_USB_DWC3_KEYSTONE)		+= dwc3-keystone.o
51c9999337SNeil Armstrongobj-$(CONFIG_USB_DWC3_MESON_G12A)	+= dwc3-meson-g12a.o
5216adc674SFelipe Balbiobj-$(CONFIG_USB_DWC3_OF_SIMPLE)	+= dwc3-of-simple.o
53f83fca07SPeter Griffinobj-$(CONFIG_USB_DWC3_ST)		+= dwc3-st.o
54a4333c3aSManu Gautamobj-$(CONFIG_USB_DWC3_QCOM)		+= dwc3-qcom.o
556dd25659SLi Junobj-$(CONFIG_USB_DWC3_IMX8MP)		+= dwc3-imx8mp.o
5684770f02SManish Naraniobj-$(CONFIG_USB_DWC3_XILINX)		+= dwc3-xilinx.o
57976f82e8SLadislav Michlobj-$(CONFIG_USB_DWC3_OCTEON)		+= dwc3-octeon.o
58*34c20048SStanley Changobj-$(CONFIG_USB_DWC3_RTK)		+= dwc3-rtk.o
59