18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# define_trace.h needs to know how to find our header 38c2ecf20Sopenharmony_ciCFLAGS_trace.o := -I$(src) 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3) += dwc3.o 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cidwc3-y := core.o 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciifneq ($(CONFIG_TRACING),) 108c2ecf20Sopenharmony_ci dwc3-y += trace.o 118c2ecf20Sopenharmony_ciendif 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 148c2ecf20Sopenharmony_ci dwc3-y += host.o 158c2ecf20Sopenharmony_ciendif 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),) 188c2ecf20Sopenharmony_ci dwc3-y += gadget.o ep0.o 198c2ecf20Sopenharmony_ciendif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),) 228c2ecf20Sopenharmony_ci dwc3-y += drd.o 238c2ecf20Sopenharmony_ciendif 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciifneq ($(CONFIG_USB_DWC3_ULPI),) 268c2ecf20Sopenharmony_ci dwc3-y += ulpi.o 278c2ecf20Sopenharmony_ciendif 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciifneq ($(CONFIG_DEBUG_FS),) 308c2ecf20Sopenharmony_ci dwc3-y += debugfs.o 318c2ecf20Sopenharmony_ciendif 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci## 348c2ecf20Sopenharmony_ci# Platform-specific glue layers go here 358c2ecf20Sopenharmony_ci# 368c2ecf20Sopenharmony_ci# NOTICE: Make sure your glue layer doesn't depend on anything 378c2ecf20Sopenharmony_ci# which is arch-specific and that it compiles on all situations. 388c2ecf20Sopenharmony_ci# 398c2ecf20Sopenharmony_ci# We want to keep this requirement in order to be able to compile 408c2ecf20Sopenharmony_ci# the entire driver (with all its glue layers) on several architectures 418c2ecf20Sopenharmony_ci# and make sure it compiles fine. This will also help with allmodconfig 428c2ecf20Sopenharmony_ci# and allyesconfig builds. 438c2ecf20Sopenharmony_ci## 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o 468c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o 478c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o 488c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_HAPS) += dwc3-haps.o 498c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o 508c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o 518c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o 528c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o 538c2ecf20Sopenharmony_ciobj-$(CONFIG_USB_DWC3_QCOM) += dwc3-qcom.o 54