17733f6c3SPawel Laszczak# SPDX-License-Identifier: GPL-2.0 27733f6c3SPawel Laszczak# define_trace.h needs to know how to find our header 364b558f5SPawel LaszczakCFLAGS_cdns3-trace.o := -I$(src) 4118b2a32SPawel LaszczakCFLAGS_cdnsp-trace.o := -I$(src) 57733f6c3SPawel Laszczak 6394c3a14SPawel Laszczakcdns-usb-common-y := core.o drd.o 7394c3a14SPawel Laszczakcdns3-y := cdns3-plat.o 87733f6c3SPawel Laszczak 9826a9584SPawel Laszczakifeq ($(CONFIG_USB),m) 10826a9584SPawel Laszczakobj-m += cdns-usb-common.o 11826a9584SPawel Laszczakobj-m += cdns3.o 12826a9584SPawel Laszczakelse 133d829045SPawel Laszczakobj-$(CONFIG_USB_CDNS_SUPPORT) += cdns-usb-common.o 14826a9584SPawel Laszczakobj-$(CONFIG_USB_CDNS3) += cdns3.o 15826a9584SPawel Laszczakendif 16394c3a14SPawel Laszczak 173d829045SPawel Laszczakcdns-usb-common-$(CONFIG_USB_CDNS_HOST) += host.o 1864b558f5SPawel Laszczakcdns3-$(CONFIG_USB_CDNS3_GADGET) += cdns3-gadget.o cdns3-ep0.o 197733f6c3SPawel Laszczak 207733f6c3SPawel Laszczakifneq ($(CONFIG_USB_CDNS3_GADGET),) 2164b558f5SPawel Laszczakcdns3-$(CONFIG_TRACING) += cdns3-trace.o 227733f6c3SPawel Laszczakendif 237733f6c3SPawel Laszczak 247733f6c3SPawel Laszczakobj-$(CONFIG_USB_CDNS3_PCI_WRAP) += cdns3-pci-wrap.o 25387c359bSRoger Quadrosobj-$(CONFIG_USB_CDNS3_TI) += cdns3-ti.o 261e056efaSPeter Chenobj-$(CONFIG_USB_CDNS3_IMX) += cdns3-imx.o 27*bfb46b42SMinda Chenobj-$(CONFIG_USB_CDNS3_STARFIVE) += cdns3-starfive.o 283d829045SPawel Laszczak 293d829045SPawel Laszczakcdnsp-udc-pci-y := cdnsp-pci.o 309fd53a5bSPawel Laszczak 319fd53a5bSPawel Laszczakifdef CONFIG_USB_CDNSP_PCI 329fd53a5bSPawel Laszczakifeq ($(CONFIG_USB),m) 339fd53a5bSPawel Laszczakobj-m += cdnsp-udc-pci.o 349fd53a5bSPawel Laszczakelse 353d829045SPawel Laszczakobj-$(CONFIG_USB_CDNSP_PCI) += cdnsp-udc-pci.o 369fd53a5bSPawel Laszczakendif 379fd53a5bSPawel Laszczakendif 389fd53a5bSPawel Laszczak 393d829045SPawel Laszczakcdnsp-udc-pci-$(CONFIG_USB_CDNSP_GADGET) += cdnsp-ring.o cdnsp-gadget.o \ 403d829045SPawel Laszczak cdnsp-mem.o cdnsp-ep0.o 41118b2a32SPawel Laszczak 42118b2a32SPawel Laszczakifneq ($(CONFIG_USB_CDNSP_GADGET),) 43118b2a32SPawel Laszczakcdnsp-udc-pci-$(CONFIG_TRACING) += cdnsp-trace.o 44118b2a32SPawel Laszczakendif 45