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