summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-09-27 08:36:56 -0400
committerTom Rini <trini@konsulko.com>2016-09-27 10:46:20 -0400
commit6ad6102246d83ec1d39aeba83f66cf5faffd0f82 (patch)
tree00fbd2c3ed9688e8ec99d5c045580b08b854b212 /drivers
parent5e61b0df41bbd084e2f59aa3857a5063822cae5a (diff)
downloadu-boot-imx-6ad6102246d83ec1d39aeba83f66cf5faffd0f82.zip
u-boot-imx-6ad6102246d83ec1d39aeba83f66cf5faffd0f82.tar.gz
u-boot-imx-6ad6102246d83ec1d39aeba83f66cf5faffd0f82.tar.bz2
usb:gadget: Disallow DFU in SPL for now
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile
index c915c79..acc9964 100644
--- a/drivers/usb/gadget/Makefile
+++ b/drivers/usb/gadget/Makefile
@@ -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