xref: /linux/drivers/usb/mtu3/Makefile (revision c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d0ed062aSChunfeng Yun
3d0ed062aSChunfeng Yunccflags-$(CONFIG_USB_MTU3_DEBUG)	+= -DDEBUG
4d0ed062aSChunfeng Yun
5*83374e03SChunfeng Yun# define_trace.h needs to know how to find our header
6*83374e03SChunfeng YunCFLAGS_mtu3_trace.o	:= -I$(src)
7*83374e03SChunfeng Yun
8df2069acSChunfeng Yunobj-$(CONFIG_USB_MTU3)	+= mtu3.o
9b3f4e727SChunfeng Yun
10b3f4e727SChunfeng Yunmtu3-y	:= mtu3_plat.o
11b3f4e727SChunfeng Yun
12*83374e03SChunfeng Yunifneq ($(CONFIG_TRACING),)
13*83374e03SChunfeng Yun	mtu3-y	+= mtu3_trace.o
14*83374e03SChunfeng Yunendif
15*83374e03SChunfeng Yun
16d0ed062aSChunfeng Yunifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
17b3f4e727SChunfeng Yun	mtu3-y	+= mtu3_host.o
18b3f4e727SChunfeng Yunendif
19b3f4e727SChunfeng Yun
20d0ed062aSChunfeng Yunifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
21b3f4e727SChunfeng Yun	mtu3-y	+= mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o
22b3f4e727SChunfeng Yunendif
23d0ed062aSChunfeng Yun
24d0ed062aSChunfeng Yunifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),)
25d0ed062aSChunfeng Yun	mtu3-y	+= mtu3_dr.o
26d0ed062aSChunfeng Yunendif
27ae078092SChunfeng Yun
28ae078092SChunfeng Yunifneq ($(CONFIG_DEBUG_FS),)
29ae078092SChunfeng Yun	mtu3-y	+= mtu3_debugfs.o
30ae078092SChunfeng Yunendif
31