Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 588E9CD13D2 for ; Sat, 31 Aug 2024 13:49:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 956B188D67; Sat, 31 Aug 2024 15:49:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=dolcini.it header.i=@dolcini.it header.b="tfjMUYc1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 09B7E88D69; Sat, 31 Aug 2024 15:49:19 +0200 (CEST) Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D7E7388C5C for ; Sat, 31 Aug 2024 15:49:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francesco@dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id D81D2211BC; Sat, 31 Aug 2024 15:49:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725112156; bh=3ubJHw29ZBemNvd8XUeCPdbIFCB2bPhk3DzICENvatE=; h=From:To:Subject; b=tfjMUYc19h/UR/P7gOP766kzvREi8fkuof9UrHbmNnFMS+67E7KAGYyZkVnftvpwX /gITzwo9bl17VaaYeAaIyKS3vYOj0jDEOvnwPhToxNwXGOxEpMdLxRe2+zUxlAkd5k B50xE6f0/wYNZebq68Eqkb/uatQVymAKkHh/7eEbo0nKFTILF0gX2gtUoPrbXHtt6T hyXljZ5iSM22NKXt2dNC1krmLOmRO02eiBOUkislg2djJ783SoM5FYjCbSGlrg1C3L wDwqISrC9SfZWQRy4S/lV+XNscYKUCzPXXJ/BVzBdPHk8jtvBaauFRIO5nUjkAxA3v KvJEGYbNcN3uw== Date: Sat, 31 Aug 2024 15:49:11 +0200 From: Francesco Dolcini To: Tom Rini Cc: Hiago De Franco , Keerthy , Amjad Ouled-Ameur , u-boot@lists.denx.de, Hiago De Franco , Francesco Dolcini Subject: Re: [PATCH] fs: Fix SPL build if SPL_FS_LOADER is enabled and FS_LOADER is disabled Message-ID: <20240831134911.GA32220@francesco-nb> References: <20240826181933.252020-1-hiagofranco@gmail.com> <20240830205119.GA3268574@bill-the-cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240830205119.GA3268574@bill-the-cat> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Fri, Aug 30, 2024 at 02:51:19PM -0600, Tom Rini wrote: > On Mon, Aug 26, 2024 at 03:19:33PM -0300, Hiago De Franco wrote: > > > From: Hiago De Franco > > > > When SPL_FS_LOADER is set to y and FS_LOADER is not enabled, the SPL build > > fails with the following errors: > > > > AR spl/boot/built-in.o > > LD spl/u-boot-spl > > arm-none-linux-gnueabihf-ld.bfd: drivers/misc/fs_loader.o: in function > > `fw_get_filesystem_firmware': > > /u-boot/drivers/misc/fs_loader.c:162: undefined reference to > > `fs_set_blk_dev' > > arm-none-linux-gnueabihf-ld.bfd: /home/frh/tdx/src/u-boot/drivers/misc/ > > fs_loader.c:185: undefined reference to `fs_read' > > arm-none-linux-gnueabihf-ld.bfd: drivers/misc/fs_loader.o: in function > > `select_fs_dev': > > /u-boot/drivers/misc/fs_loader.c:89: undefined reference to > > `fs_set_blk_dev_with_part' > > make[1]: *** [scripts/Makefile.spl:527: spl/u-boot-spl] Error 1 > > make: *** [Makefile:2055: spl/u-boot-spl] Error 2 > > > > Fix it by replacing the FS_LOADER with SPL_FS_LOADER in the Makefile, so > > the fs.c with the necessary function definitions are compiled. > > > > Fixes: b071a07743d4 ("drivers: misc: Makefile: Enable fs_loader compilation at SPL Level") > > Suggested-by: Francesco Dolcini > > Signed-off-by: Hiago De Franco > > Reviewed-by: Tom Rini > > This leads to failure to build on sandbox_noinst_defconfig. --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -110,6 +110,7 @@ config EFI_MEDIA config SPL_BLK_FS bool "Load images from filesystems on block devices" depends on SPL_BLK + select SPL_FS_LOADER help Use generic support to load images from fat/ext filesystems on different types of block devices such as NVMe. ?