Felipe Balbi | 4dc64e5 | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 1 | ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG |
| 2 | ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG |
| 3 | |
| 4 | obj-$(CONFIG_USB_DWC3) += dwc3.o |
| 5 | |
| 6 | dwc3-y := core.o |
Ido Shayevitz | b01e3c7 | 2012-03-12 13:24:51 +0200 | [diff] [blame] | 7 | dwc3-y += gadget.o ep0.o |
Felipe Balbi | 4dc64e5 | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 8 | |
| 9 | ifneq ($(CONFIG_DEBUG_FS),) |
| 10 | dwc3-y += debugfs.o |
| 11 | endif |
| 12 | |
| 13 | ## |
| 14 | # Platform-specific glue layers go here |
| 15 | # |
| 16 | # NOTICE: Make sure your glue layer doesn't depend on anything |
| 17 | # which is arch-specific and that it compiles on all situations. |
| 18 | # |
| 19 | # We want to keep this requirement in order to be able to compile |
| 20 | # the entire driver (with all its glue layers) on several architectures |
| 21 | # and make sure it compiles fine. This will also help with allmodconfig |
| 22 | # and allyesconfig builds. |
| 23 | # |
| 24 | # The only exception is the PCI glue layer, but that's only because |
| 25 | # PCI doesn't provide nops if CONFIG_PCI isn't enabled. |
| 26 | ## |
| 27 | |
Ido Shayevitz | ef72ddd | 2012-03-28 18:55:55 +0200 | [diff] [blame^] | 28 | |
Ido Shayevitz | b01e3c7 | 2012-03-12 13:24:51 +0200 | [diff] [blame] | 29 | obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o |
Ido Shayevitz | ef72ddd | 2012-03-28 18:55:55 +0200 | [diff] [blame^] | 30 | obj-$(CONFIG_USB_DWC3_MSM) += dwc3-msm.o |
Felipe Balbi | 4dc64e5 | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 31 | |
| 32 | ifneq ($(CONFIG_PCI),) |
| 33 | obj-$(CONFIG_USB_DWC3) += dwc3-pci.o |
| 34 | endif |
| 35 | |