blob: 3bf8cbcc1addbe04dade322995887351c641f65d [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001# SPDX-License-Identifier: GPL-2.0
2
3ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG
4
David Brazdil0f672f62019-12-10 10:32:29 +00005# define_trace.h needs to know how to find our header
6CFLAGS_mtu3_trace.o := -I$(src)
7
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00008obj-$(CONFIG_USB_MTU3) += mtu3.o
9
10mtu3-y := mtu3_plat.o
11
David Brazdil0f672f62019-12-10 10:32:29 +000012ifneq ($(CONFIG_TRACING),)
13 mtu3-y += mtu3_trace.o
14endif
15
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000016ifneq ($(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
David Brazdil0f672f62019-12-10 10:32:29 +000027
28ifneq ($(CONFIG_DEBUG_FS),)
29 mtu3-y += mtu3_debugfs.o
30endif