]> git.baikalelectronics.ru Git - uboot.git/commit
mx6sabre_common: Allow building CONFIG_USB_FUNCTION_MASS_STORAGE
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 28 Jan 2018 14:49:02 +0000 (12:49 -0200)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:02:35 +0000 (12:02 +0100)
commit158b1efcb0cdce132878cb8d020089f46a6e3d5f
tree05ced44cae4917a03cdc43e68610ee2139be93de
parent706de3025e098b6c0c678820874ea689b8e9cbe3
mx6sabre_common: Allow building CONFIG_USB_FUNCTION_MASS_STORAGE

Selecting CONFIG_USB_FUNCTION_MASS_STORAGE=y in the defconfig leads to
the following error:

cmd/built-in.o: In function `do_usb_mass_storage':
cmd/usb_mass_storage.c:217: undefined reference to `fsg_main_thread'
cmd/usb_mass_storage.c:170: undefined reference to `fsg_init'

CONFIG_USB_FUNCTION_MASS_STORAGE option is built only for
the non-SPL case as per the logic in drivers/usb/gadget/Makefile,
so remove the incorrect CONFIG_SPL ifdefery to fix the build
failure.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
include/configs/mx6sabre_common.h