| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 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 | ccflags-y += -I$(srctree)/drivers/misc/mediatek/include |
| 8 | |
| 9 | obj-$(CONFIG_USB_MTU3) += mtu3.o |
| 10 | |
| 11 | mtu3-y := mtu3_plat.o |
| 12 | |
| 13 | ifneq ($(CONFIG_TRACING),) |
| 14 | mtu3-y += mtu3_trace.o |
| 15 | endif |
| 16 | |
| 17 | ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),) |
| 18 | mtu3-y += mtu3_host.o |
| 19 | endif |
| 20 | |
| 21 | ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),) |
| 22 | mtu3-y += mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o |
| 23 | endif |
| 24 | |
| 25 | ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),) |
| 26 | mtu3-y += mtu3_dr.o |
| 27 | endif |
| 28 | |
| 29 | ifneq ($(CONFIG_DEBUG_FS),) |
| 30 | mtu3-y += mtu3_debugfs.o |
| 31 | endif |