Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # SPDX-License-Identifier: GPL-2.0
  2. # define_trace.h needs to know how to find our header
  3. CFLAGS_trace.o := -I$(src)
  4. obj-$(CONFIG_USB_DWC3) += dwc3.o
  5. dwc3-y := core.o
  6. ifneq ($(CONFIG_TRACING),)
  7. dwc3-y += trace.o
  8. endif
  9. dwc3-y += host.o
  10. dwc3-y += gadget.o ep0.o
  11. dwc3-y += drd.o
  12. ifneq ($(CONFIG_USB_DWC3_ULPI),)
  13. dwc3-y += ulpi.o
  14. endif
  15. ifneq ($(CONFIG_DEBUG_FS),)
  16. dwc3-y += debugfs.o
  17. endif
  18. ##
  19. # Platform-specific glue layers go here
  20. #
  21. # NOTICE: Make sure your glue layer doesn't depend on anything
  22. # which is arch-specific and that it compiles on all situations.
  23. #
  24. # We want to keep this requirement in order to be able to compile
  25. # the entire driver (with all its glue layers) on several architectures
  26. # and make sure it compiles fine. This will also help with allmodconfig
  27. # and allyesconfig builds.
  28. ##
  29. obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
  30. obj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o
  31. obj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o
  32. obj-$(CONFIG_USB_DWC3_HAPS) += dwc3-haps.o
  33. obj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o
  34. obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o
  35. obj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o
  36. obj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o
  37. obj-$(CONFIG_USB_DWC3_QCOM) += dwc3-qcom.o
  38. obj-$(CONFIG_USB_DWC3_IMX8MP) += dwc3-imx8mp.o
  39. obj-$(CONFIG_USB_DWC3_THEAD) += dwc3-thead.o