]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb:g_dnl:ums: Conditional compilation for mass storage function (f_mass_storage)
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 17 Sep 2013 13:58:21 +0000 (15:58 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 24 Sep 2013 15:51:35 +0000 (17:51 +0200)
commitba4e95c9f0e18ddeff55ef1b94be650d7b653d3f
tree8097f878fba79928a25e821797e86a4d7a7fe846
parente473b8b65b5c12a840e71939ed9fa243959ec5f2
usb:g_dnl:ums: Conditional compilation for mass storage function (f_mass_storage)

The mass storage composite function is now compiled in only when
CONFIG_USB_GADGET_MASS_STORAGE is defined.
Such change provides binary size reduction for boards which use USB
download gadget (like am335x_evm) with DFU, but don't use UMS.

For example at am335x_evm board reduction is more than 2KiB for
text and around 120B for data.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
drivers/usb/gadget/Makefile
drivers/usb/gadget/g_dnl.c
include/usb_mass_storage.h