]> Git Repo - J-u-boot.git/commitdiff
mx6sabre_common: Allow building CONFIG_USB_FUNCTION_MASS_STORAGE
authorFabio Estevam <[email protected]>
Sun, 28 Jan 2018 14:49:02 +0000 (12:49 -0200)
committerStefano Babic <[email protected]>
Sun, 4 Feb 2018 11:02:35 +0000 (12:02 +0100)
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 <[email protected]>
Tested-by: Shawn Guo <[email protected]>
include/configs/mx6sabre_common.h

index 207c05ab9db19c4b0f03b1eea2808ebe4d1a3834..f218e48f8738d59737ef3e08bc2da8d4d64944ae 100644 (file)
 #define CONFIG_IMX_HDMI
 #define CONFIG_IMX_VIDEO_SKIP
 
-#ifndef CONFIG_SPL
 #define CONFIG_USBD_HS
-#endif
+#define CONFIG_USB_FUNCTION_MASS_STORAGE
 
 #endif                         /* __MX6QSABRE_COMMON_CONFIG_H */
This page took 0.038046 seconds and 4 git commands to generate.