blob: 3bf8cbcc1addbe04dade322995887351c641f65d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Chunfeng Yund0ed0622016-10-19 10:28:26 +08002
3ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG
4
Chunfeng Yun83374e02019-03-21 10:53:48 +08005# define_trace.h needs to know how to find our header
6CFLAGS_mtu3_trace.o := -I$(src)
7
Chunfeng Yundf2069a2016-10-19 10:28:23 +08008obj-$(CONFIG_USB_MTU3) += mtu3.o
Chunfeng Yunb3f4e722016-10-19 10:28:25 +08009
10mtu3-y := mtu3_plat.o
11
Chunfeng Yun83374e02019-03-21 10:53:48 +080012ifneq ($(CONFIG_TRACING),)
13 mtu3-y += mtu3_trace.o
14endif
15
Chunfeng Yund0ed0622016-10-19 10:28:26 +080016ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
Chunfeng Yunb3f4e722016-10-19 10:28:25 +080017 mtu3-y += mtu3_host.o
18endif
19
Chunfeng Yund0ed0622016-10-19 10:28:26 +080020ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
Chunfeng Yunb3f4e722016-10-19 10:28:25 +080021 mtu3-y += mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o
22endif
Chunfeng Yund0ed0622016-10-19 10:28:26 +080023
24ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),)
25 mtu3-y += mtu3_dr.o
26endif
Chunfeng Yunae078092019-03-21 10:53:46 +080027
28ifneq ($(CONFIG_DEBUG_FS),)
29 mtu3-y += mtu3_debugfs.o
30endif