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 27obj-$(CONFIG_USB_CDNS3_STARFIVE) += cdns3-starfive.o 28 29cdnsp-udc-pci-y := cdnsp-pci.o 30 31ifdef CONFIG_USB_CDNSP_PCI 32ifeq ($(CONFIG_USB),m) 33obj-m += cdnsp-udc-pci.o 34else 35obj-$(CONFIG_USB_CDNSP_PCI) += cdnsp-udc-pci.o 36endif 37endif 38 39cdnsp-udc-pci-$(CONFIG_USB_CDNSP_GADGET) += cdnsp-ring.o cdnsp-gadget.o \ 40 cdnsp-mem.o cdnsp-ep0.o 41 42ifneq ($(CONFIG_USB_CDNSP_GADGET),) 43cdnsp-udc-pci-$(CONFIG_TRACING) += cdnsp-trace.o 44endif 45