]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
usb:gadget: Disallow DFU in SPL for now
authorTom Rini <trini@konsulko.com>
Tue, 27 Sep 2016 12:36:56 +0000 (08:36 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 27 Sep 2016 14:46:20 +0000 (10:46 -0400)
Previously, DFU was not built in for SPL and often disabled via the board
config.h file, in the SPL build.  By moving DFU to Kconfig we now need to
move this logic to the Makefile to continue to allow boards to fit within
their SPL size limit (until gcc 6 is more widespread and unused strings will
be discarded).

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/usb/gadget/Makefile

index c915c79729d09a7088ea417eb20bd467156d1f7b..acc9964e232680cc74ce4773dd1f2d5b747556b3 100644 (file)
@@ -19,7 +19,9 @@ obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
 obj-$(CONFIG_CI_UDC)   += ci_udc.o
 obj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
 obj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
+ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_USB_FUNCTION_DFU) += f_dfu.o
+endif
 obj-$(CONFIG_USB_FUNCTION_MASS_STORAGE) += f_mass_storage.o
 obj-$(CONFIG_USB_FUNCTION_FASTBOOT) += f_fastboot.o
 endif