Makefile 1.0 KB

12345678910111213141516171819202122232425262728
  1. ccflags-$(CONFIG_USB_DWC2_DEBUG) += -DDEBUG
  2. ccflags-$(CONFIG_USB_DWC2_VERBOSE) += -DVERBOSE_DEBUG
  3. obj-$(CONFIG_USB_DWC2_HOST) += dwc2.o
  4. dwc2-y := core.o core_intr.o
  5. dwc2-y += hcd.o hcd_intr.o
  6. dwc2-y += hcd_queue.o hcd_ddma.o
  7. # NOTE: The previous s3c-hsotg peripheral mode only driver has been moved to
  8. # this location and renamed gadget.c. When building for dynamically linked
  9. # modules, dwc2_gadget.ko will get built for peripheral mode. For host mode,
  10. # the core module will be dwc2.ko, the PCI bus interface module will called
  11. # dwc2_pci.ko and the platform interface module will be called dwc2_platform.ko.
  12. # At present the host and gadget driver will be separate drivers, but there
  13. # are plans in the near future to create a dual-role driver.
  14. ifneq ($(CONFIG_USB_DWC2_PCI),)
  15. obj-$(CONFIG_USB_DWC2_HOST) += dwc2_pci.o
  16. dwc2_pci-y := pci.o
  17. endif
  18. ifneq ($(CONFIG_USB_DWC2_PLATFORM),)
  19. obj-$(CONFIG_USB_DWC2_HOST) += dwc2_platform.o
  20. dwc2_platform-y := platform.o
  21. endif
  22. obj-$(CONFIG_USB_DWC2_PERIPHERAL) += dwc2_gadget.o
  23. dwc2_gadget-y := gadget.o