1 # SPDX-License-Identifier: GPL-2.0
3 ccflags-
$(CONFIG_USB_MTU3_DEBUG
) += -DDEBUG
5 # define_trace.h needs to know how to find our header
6 CFLAGS_mtu3_trace.o
:= -I
$(src
)
8 obj-
$(CONFIG_USB_MTU3
) += mtu3.o
12 ifneq ($(CONFIG_TRACING
),)
13 mtu3-y
+= mtu3_trace.o
16 ifneq ($(filter y
,$(CONFIG_USB_MTU3_HOST
) $(CONFIG_USB_MTU3_DUAL_ROLE
)),)
20 ifneq ($(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
24 ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE
),)
28 ifneq ($(CONFIG_DEBUG_FS
),)
29 mtu3-y
+= mtu3_debugfs.o