xref: /openbmc/linux/drivers/usb/mtu3/Makefile (revision 83374e03)
1# SPDX-License-Identifier: GPL-2.0
2
3ccflags-$(CONFIG_USB_MTU3_DEBUG)	+= -DDEBUG
4
5# define_trace.h needs to know how to find our header
6CFLAGS_mtu3_trace.o	:= -I$(src)
7
8obj-$(CONFIG_USB_MTU3)	+= mtu3.o
9
10mtu3-y	:= mtu3_plat.o
11
12ifneq ($(CONFIG_TRACING),)
13	mtu3-y	+= mtu3_trace.o
14endif
15
16ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
17	mtu3-y	+= mtu3_host.o
18endif
19
20ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
21	mtu3-y	+= mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o
22endif
23
24ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),)
25	mtu3-y	+= mtu3_dr.o
26endif
27
28ifneq ($(CONFIG_DEBUG_FS),)
29	mtu3-y	+= mtu3_debugfs.o
30endif
31