From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Date: Mon, 29 Jan 2018 09:56:08 +0800 Subject: [U-Boot] [PATCH 1/2] mx6sabre_common: Allow building CONFIG_USB_FUNCTION_MASS_STORAGE In-Reply-To: <1517150943-21157-1-git-send-email-festevam@gmail.com> References: <1517150943-21157-1-git-send-email-festevam@gmail.com> Message-ID: <20180129015606.GC12957@dragon> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jan 28, 2018 at 12:49:02PM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > 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 For both patches on imx6q-sabresd board, Tested-by: Shawn Guo