| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG |
| 4 |
|
| 5 |
# define_trace.h needs to know how to find our header |
| 6 |
CFLAGS_mtu3_trace.o := -I$(src) |
| 7 |
|
| 8 |
obj-$(CONFIG_USB_MTU3) += mtu3.o |
| 9 |
|
| 10 |
mtu3-y := mtu3_plat.o |
| 11 |
|
| 12 |
ifneq ($(CONFIG_TRACING),) |
| 13 |
mtu3-y += mtu3_trace.o |
| 14 |
endif |
| 15 |
|
| 16 |
ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),) |
| 17 |
mtu3-y += mtu3_host.o |
| 18 |
endif |
| 19 |
|
| 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 |
| 22 |
endif |
| 23 |
|
| 24 |
ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),) |
| 25 |
mtu3-y += mtu3_dr.o |
| 26 |
endif |
| 27 |
|
| 28 |
ifneq ($(CONFIG_DEBUG_FS),) |
| 29 |
mtu3-y += mtu3_debugfs.o |
| 30 |
endif |