Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # SPDX-License-Identifier: GPL-2.0
  2. # define_trace.h needs to know how to find our header
  3. CFLAGS_cdns3-trace.o := -I$(src)
  4. CFLAGS_cdnsp-trace.o := -I$(src)
  5. cdns-usb-common-y := core.o drd.o
  6. cdns3-y := cdns3-plat.o
  7. ifeq ($(CONFIG_USB),m)
  8. obj-m += cdns-usb-common.o
  9. obj-m += cdns3.o
  10. else
  11. obj-$(CONFIG_USB_CDNS_SUPPORT) += cdns-usb-common.o
  12. obj-$(CONFIG_USB_CDNS3) += cdns3.o
  13. endif
  14. cdns-usb-common-$(CONFIG_USB_CDNS_HOST) += host.o
  15. cdns3-$(CONFIG_USB_CDNS3_GADGET) += cdns3-gadget.o cdns3-ep0.o
  16. ifneq ($(CONFIG_USB_CDNS3_GADGET),)
  17. cdns3-$(CONFIG_TRACING) += cdns3-trace.o
  18. endif
  19. obj-$(CONFIG_USB_CDNS3_PCI_WRAP) += cdns3-pci-wrap.o
  20. obj-$(CONFIG_USB_CDNS3_TI) += cdns3-ti.o
  21. obj-$(CONFIG_USB_CDNS3_IMX) += cdns3-imx.o
  22. cdnsp-udc-pci-y := cdnsp-pci.o
  23. ifdef CONFIG_USB_CDNSP_PCI
  24. ifeq ($(CONFIG_USB),m)
  25. obj-m += cdnsp-udc-pci.o
  26. else
  27. obj-$(CONFIG_USB_CDNSP_PCI) += cdnsp-udc-pci.o
  28. endif
  29. endif
  30. cdnsp-udc-pci-$(CONFIG_USB_CDNSP_GADGET) += cdnsp-ring.o cdnsp-gadget.o \
  31. cdnsp-mem.o cdnsp-ep0.o
  32. ifneq ($(CONFIG_USB_CDNSP_GADGET),)
  33. cdnsp-udc-pci-$(CONFIG_TRACING) += cdnsp-trace.o
  34. endif