Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG
  2. ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG
  3. ccflags-y += -Idrivers/usb/host
  4. ccflags-y += -Idrivers/base/power
  5. obj-$(CONFIG_USB_DWC3) += dwc3.o
  6. dwc3-y := core.o
  7. dwc3-y += host.o
  8. dwc3-y += gadget.o ep0.o
  9. dwc3-y += dwc3_otg.o
  10. ifneq ($(CONFIG_DEBUG_FS),)
  11. dwc3-y += debugfs.o
  12. endif
  13. ##
  14. # Platform-specific glue layers go here
  15. #
  16. # NOTICE: Make sure your glue layer doesn't depend on anything
  17. # which is arch-specific and that it compiles on all situations.
  18. #
  19. # We want to keep this requirement in order to be able to compile
  20. # the entire driver (with all its glue layers) on several architectures
  21. # and make sure it compiles fine. This will also help with allmodconfig
  22. # and allyesconfig builds.
  23. #
  24. # The only exception is the PCI glue layer, but that's only because
  25. # PCI doesn't provide nops if CONFIG_PCI isn't enabled.
  26. ##
  27. obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
  28. obj-$(CONFIG_USB_DWC3_MSM) += dwc3-msm.o
  29. ##
  30. # REVISIT Samsung Exynos platform needs the clk API which isn't
  31. # defined on all architectures. If we allow dwc3-exynos.c compile
  32. # always we will fail the linking phase on those architectures
  33. # which don't provide clk api implementation and that's unnaceptable.
  34. #
  35. # When Samsung's platform start supporting pm_runtime, this check
  36. # for HAVE_CLK should be removed.
  37. ##
  38. ifneq ($(CONFIG_HAVE_CLK),)
  39. obj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o
  40. endif
  41. ifneq ($(CONFIG_PCI),)
  42. obj-$(CONFIG_USB_DWC3) += dwc3-pci.o
  43. endif