On 28/01/2018 15:49, Fabio Estevam wrote: > From: Fabio Estevam <fabio.este...@nxp.com> > > 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.este...@nxp.com> > --- > include/configs/mx6sabre_common.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/configs/mx6sabre_common.h > b/include/configs/mx6sabre_common.h > index f083dc8..42e650a 100644 > --- a/include/configs/mx6sabre_common.h > +++ b/include/configs/mx6sabre_common.h > @@ -208,10 +208,8 @@ > #define CONFIG_IMX_HDMI > #define CONFIG_IMX_VIDEO_SKIP > > -#ifndef CONFIG_SPL > #define CONFIG_USBD_HS > > #define CONFIG_USB_FUNCTION_MASS_STORAGE > -#endif > > #endif /* __MX6QSABRE_COMMON_CONFIG_H */ >
Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot