Commit 6ad6102246d83ec1d39aeba83f66cf5faffd0f82

Authored by Tom Rini
1 parent 5e61b0df41

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/usb/gadget/Makefile
... ... @@ -19,7 +19,9 @@
19 19 obj-$(CONFIG_CI_UDC) += ci_udc.o
20 20 obj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
21 21 obj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
  22 +ifndef CONFIG_SPL_BUILD
22 23 obj-$(CONFIG_USB_FUNCTION_DFU) += f_dfu.o
  24 +endif
23 25 obj-$(CONFIG_USB_FUNCTION_MASS_STORAGE) += f_mass_storage.o
24 26 obj-$(CONFIG_USB_FUNCTION_FASTBOOT) += f_fastboot.o
25 27 endif