xref: /kernel/linux/linux-6.6/drivers/usb/dwc3/Makefile (revision 62306a36)
162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci# define_trace.h needs to know how to find our header
362306a36Sopenharmony_ciCFLAGS_trace.o				:= -I$(src)
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3)			+= dwc3.o
662306a36Sopenharmony_ci
762306a36Sopenharmony_cidwc3-y					:= core.o
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciifneq ($(CONFIG_TRACING),)
1062306a36Sopenharmony_ci	dwc3-y				+= trace.o
1162306a36Sopenharmony_ciendif
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
1462306a36Sopenharmony_ci	dwc3-y				+= host.o
1562306a36Sopenharmony_ciendif
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
1862306a36Sopenharmony_ci	dwc3-y				+= gadget.o ep0.o
1962306a36Sopenharmony_ciendif
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),)
2262306a36Sopenharmony_ci	dwc3-y				+= drd.o
2362306a36Sopenharmony_ciendif
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciifneq ($(CONFIG_USB_DWC3_ULPI),)
2662306a36Sopenharmony_ci	dwc3-y				+= ulpi.o
2762306a36Sopenharmony_ciendif
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciifneq ($(CONFIG_DEBUG_FS),)
3062306a36Sopenharmony_ci	dwc3-y				+= debugfs.o
3162306a36Sopenharmony_ciendif
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci##
3462306a36Sopenharmony_ci# Platform-specific glue layers go here
3562306a36Sopenharmony_ci#
3662306a36Sopenharmony_ci# NOTICE: Make sure your glue layer doesn't depend on anything
3762306a36Sopenharmony_ci# which is arch-specific and that it compiles on all situations.
3862306a36Sopenharmony_ci#
3962306a36Sopenharmony_ci# We want to keep this requirement in order to be able to compile
4062306a36Sopenharmony_ci# the entire driver (with all its glue layers) on several architectures
4162306a36Sopenharmony_ci# and make sure it compiles fine. This will also help with allmodconfig
4262306a36Sopenharmony_ci# and allyesconfig builds.
4362306a36Sopenharmony_ci##
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_AM62)		+= dwc3-am62.o
4662306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_OMAP)		+= dwc3-omap.o
4762306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_EXYNOS)		+= dwc3-exynos.o
4862306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_PCI)		+= dwc3-pci.o
4962306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_HAPS)		+= dwc3-haps.o
5062306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_KEYSTONE)		+= dwc3-keystone.o
5162306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_MESON_G12A)	+= dwc3-meson-g12a.o
5262306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_OF_SIMPLE)	+= dwc3-of-simple.o
5362306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_ST)		+= dwc3-st.o
5462306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_QCOM)		+= dwc3-qcom.o
5562306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_IMX8MP)		+= dwc3-imx8mp.o
5662306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_XILINX)		+= dwc3-xilinx.o
5762306a36Sopenharmony_ciobj-$(CONFIG_USB_DWC3_OCTEON)		+= dwc3-octeon.o
58