Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 2 | |
| 3 | ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG |
| 4 | |
Chunfeng Yun | 83374e0 | 2019-03-21 10:53:48 +0800 | [diff] [blame] | 5 | # define_trace.h needs to know how to find our header |
| 6 | CFLAGS_mtu3_trace.o := -I$(src) |
| 7 | |
Chunfeng Yun | df2069a | 2016-10-19 10:28:23 +0800 | [diff] [blame] | 8 | obj-$(CONFIG_USB_MTU3) += mtu3.o |
Chunfeng Yun | b3f4e72 | 2016-10-19 10:28:25 +0800 | [diff] [blame] | 9 | |
| 10 | mtu3-y := mtu3_plat.o |
| 11 | |
Chunfeng Yun | 83374e0 | 2019-03-21 10:53:48 +0800 | [diff] [blame] | 12 | ifneq ($(CONFIG_TRACING),) |
| 13 | mtu3-y += mtu3_trace.o |
| 14 | endif |
| 15 | |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 16 | ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),) |
Chunfeng Yun | b3f4e72 | 2016-10-19 10:28:25 +0800 | [diff] [blame] | 17 | mtu3-y += mtu3_host.o |
| 18 | endif |
| 19 | |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 20 | ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),) |
Chunfeng Yun | b3f4e72 | 2016-10-19 10:28:25 +0800 | [diff] [blame] | 21 | mtu3-y += mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o |
| 22 | endif |
Chunfeng Yun | d0ed062 | 2016-10-19 10:28:26 +0800 | [diff] [blame] | 23 | |
| 24 | ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),) |
| 25 | mtu3-y += mtu3_dr.o |
| 26 | endif |
Chunfeng Yun | ae07809 | 2019-03-21 10:53:46 +0800 | [diff] [blame] | 27 | |
| 28 | ifneq ($(CONFIG_DEBUG_FS),) |
| 29 | mtu3-y += mtu3_debugfs.o |
| 30 | endif |