Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Felipe Balbi | 2c4cbe6e5 | 2014-04-30 17:45:10 -0500 | [diff] [blame] | 2 | # define_trace.h needs to know how to find our header |
| 3 | CFLAGS_trace.o := -I$(src) |
| 4 | |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 5 | obj-$(CONFIG_USB_DWC3) += dwc3.o |
| 6 | |
Felipe Balbi | 57b14da | 2016-09-30 14:12:34 +0300 | [diff] [blame] | 7 | dwc3-y := core.o |
| 8 | |
Felipe Balbi | de948a7 | 2018-03-22 10:45:20 +0200 | [diff] [blame] | 9 | ifneq ($(CONFIG_TRACING),) |
Felipe Balbi | 5eb30ce | 2016-11-03 14:07:51 +0200 | [diff] [blame] | 10 | dwc3-y += trace.o |
Felipe Balbi | 57b14da | 2016-09-30 14:12:34 +0300 | [diff] [blame] | 11 | endif |
Vivek Gautam | 388e5c5 | 2013-01-15 16:09:21 +0530 | [diff] [blame] | 12 | |
| 13 | ifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) |
| 14 | dwc3-y += host.o |
| 15 | endif |
| 16 | |
| 17 | ifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),) |
| 18 | dwc3-y += gadget.o ep0.o |
| 19 | endif |
Felipe Balbi | d07e881 | 2011-10-12 14:08:26 +0300 | [diff] [blame] | 20 | |
Roger Quadros | 9840354 | 2017-04-05 13:39:31 +0300 | [diff] [blame] | 21 | ifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),) |
| 22 | dwc3-y += drd.o |
| 23 | endif |
| 24 | |
Heikki Krogerus | 88bc9d1 | 2015-05-13 15:26:51 +0300 | [diff] [blame] | 25 | ifneq ($(CONFIG_USB_DWC3_ULPI),) |
| 26 | dwc3-y += ulpi.o |
| 27 | endif |
| 28 | |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 29 | ifneq ($(CONFIG_DEBUG_FS),) |
| 30 | dwc3-y += debugfs.o |
| 31 | endif |
| 32 | |
| 33 | ## |
| 34 | # Platform-specific glue layers go here |
| 35 | # |
| 36 | # NOTICE: Make sure your glue layer doesn't depend on anything |
| 37 | # which is arch-specific and that it compiles on all situations. |
| 38 | # |
| 39 | # We want to keep this requirement in order to be able to compile |
| 40 | # the entire driver (with all its glue layers) on several architectures |
| 41 | # and make sure it compiles fine. This will also help with allmodconfig |
| 42 | # and allyesconfig builds. |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 43 | ## |
| 44 | |
Felipe Balbi | 1a356db | 2013-06-26 15:14:06 +0300 | [diff] [blame] | 45 | obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o |
| 46 | obj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o |
| 47 | obj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o |
Thinh Nguyen | 3fe314c | 2018-06-12 14:26:43 -0700 | [diff] [blame] | 48 | obj-$(CONFIG_USB_DWC3_HAPS) += dwc3-haps.o |
WingMan Kwok | 943befc | 2013-12-12 12:25:29 -0500 | [diff] [blame] | 49 | obj-$(CONFIG_USB_DWC3_KEYSTONE) += dwc3-keystone.o |
Neil Armstrong | c999933 | 2019-04-23 10:51:27 +0200 | [diff] [blame] | 50 | obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o |
Felipe Balbi | 16adc67 | 2015-11-18 13:15:20 -0600 | [diff] [blame] | 51 | obj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o |
Peter Griffin | f83fca0 | 2014-09-05 16:36:30 +0100 | [diff] [blame] | 52 | obj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o |
Manu Gautam | a4333c3 | 2018-05-09 23:09:20 +0530 | [diff] [blame] | 53 | obj-$(CONFIG_USB_DWC3_QCOM) += dwc3-qcom.o |
Li Jun | 6dd2565 | 2020-12-29 19:37:44 +0800 | [diff] [blame] | 54 | obj-$(CONFIG_USB_DWC3_IMX8MP) += dwc3-imx8mp.o |
Manish Narani | 84770f0 | 2021-03-17 12:22:29 +0530 | [diff] [blame] | 55 | obj-$(CONFIG_USB_DWC3_XILINX) += dwc3-xilinx.o |