Skip to contentSkip to conversation

SPL: Rework logic around SPL_BLK_FS (and SPL_NVME)

PATCH In review Tom Rini 1 participant 2 messages Mar 17 – Mar 30 Block layer

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 SPL: Rework logic around SPL_BLK_FS (and SPL_NVME)

As exposed by "make randconfig", we have an issue around SPL_BLK_FS. This is functionally a library type symbol that should be selected when required and select what it needs. Have SPL_BLK_FS select SPL_FS_LOADER and then SPL_NVME will now correctly select SPL_FS_LOADER via SPL_BLK_FS.

---
 common/spl/Kconfig    | 1 -
 drivers/block/Kconfig | 5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)
common/spl/Kconfig +0 -1
index 69b6ad773462..d1a85f50209e 100644
@@ -1497,7 +1497,6 @@ config SPL_SATA_RAW_U_BOOT_SECTOR
 config SPL_NVME
 	bool "NVM Express device support"
 	depends on SPL_BLK
-	select FS_LOADER
 	select SPL_BLK_FS
 	help
 	  This option enables support for NVM Express devices.
drivers/block/Kconfig +3 -2
index 461b5a9fc838..adf338ab00c3 100644
@@ -106,8 +106,9 @@ config EFI_MEDIA
 	  For sandbox there is a test driver.
 
 config SPL_BLK_FS
-	bool "Load images from filesystems on block devices"
-	depends on SPL_BLK && SPL_FS_LOADER
+	bool
+	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.
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 8 lines · Tom Rini

As exposed by "make randconfig", we have an issue around SPL_BLK_FS. This is functionally a library type symbol that should be selected when required and select what it needs. Have SPL_BLK_FS select SPL_FS_LOADER and then SPL_NVME will now correctly select SPL_FS_LOADER via SPL_BLK_FS.

[...]

Applied to u-boot/next, thanks!

[1/1] SPL: Rework logic around SPL_BLK_FS (and SPL_NVME)

      commit: c40e539c77fbd3b68168c995f3dda64548b033d6
Signature · 1 line
Tom