xref: /openbmc/linux/drivers/usb/cdns3/Makefile (revision 64b558f5)
17733f6c3SPawel Laszczak# SPDX-License-Identifier: GPL-2.0
27733f6c3SPawel Laszczak# define_trace.h needs to know how to find our header
3*64b558f5SPawel 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
97733f6c3SPawel Laszczakobj-$(CONFIG_USB_CDNS3)				+= cdns3.o
103d829045SPawel Laszczakobj-$(CONFIG_USB_CDNS_SUPPORT)			+= cdns-usb-common.o
11394c3a14SPawel Laszczak
123d829045SPawel Laszczakcdns-usb-common-$(CONFIG_USB_CDNS_HOST) 	+= host.o
13*64b558f5SPawel Laszczakcdns3-$(CONFIG_USB_CDNS3_GADGET)		+= cdns3-gadget.o cdns3-ep0.o
147733f6c3SPawel Laszczak
157733f6c3SPawel Laszczakifneq ($(CONFIG_USB_CDNS3_GADGET),)
16*64b558f5SPawel Laszczakcdns3-$(CONFIG_TRACING)				+= cdns3-trace.o
177733f6c3SPawel Laszczakendif
187733f6c3SPawel Laszczak
197733f6c3SPawel Laszczakobj-$(CONFIG_USB_CDNS3_PCI_WRAP)		+= cdns3-pci-wrap.o
20387c359bSRoger Quadrosobj-$(CONFIG_USB_CDNS3_TI)			+= cdns3-ti.o
211e056efaSPeter Chenobj-$(CONFIG_USB_CDNS3_IMX)			+= cdns3-imx.o
223d829045SPawel Laszczak
233d829045SPawel Laszczakcdnsp-udc-pci-y					:= cdnsp-pci.o
243d829045SPawel Laszczakobj-$(CONFIG_USB_CDNSP_PCI) 			+= cdnsp-udc-pci.o
253d829045SPawel Laszczakcdnsp-udc-pci-$(CONFIG_USB_CDNSP_GADGET)	+= cdnsp-ring.o cdnsp-gadget.o \
263d829045SPawel Laszczak						   cdnsp-mem.o cdnsp-ep0.o
27118b2a32SPawel Laszczak
28118b2a32SPawel Laszczakifneq ($(CONFIG_USB_CDNSP_GADGET),)
29118b2a32SPawel Laszczakcdnsp-udc-pci-$(CONFIG_TRACING)			+= cdnsp-trace.o
30118b2a32SPawel Laszczakendif
31