]> git.sur5r.net Git - u-boot/commitdiff
usb: dwc3: Makefile: Don't build gadget code if USB_GADGET is disabled
authorRoger Quadros <rogerq@ti.com>
Fri, 13 May 2016 12:17:52 +0000 (15:17 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:39:49 +0000 (15:39 -0400)
It is pointless to build gadget driver if USB_GADGET is disabled.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/usb/dwc3/Makefile

index 0cd73020a78c85d54188450c94510a3e68c4d67c..2964bae0d8f4b7245a9faca3595543f7f096a5e4 100644 (file)
@@ -6,7 +6,7 @@ obj-$(CONFIG_USB_DWC3)                  += dwc3.o
 
 dwc3-y                                 := core.o
 
-dwc3-y                                 += gadget.o ep0.o
+obj-$(CONFIG_USB_DWC3_GADGET)          += gadget.o ep0.o
 
 obj-$(CONFIG_USB_DWC3_OMAP)            += dwc3-omap.o
 obj-$(CONFIG_USB_DWC3_PHY_OMAP)                += ti_usb_phy.o