Skip to contentSkip to conversation

mtd: Correct dependency on SYS_FLASH_CHECKSUM

PATCH In review Tom Rini 1 participant 2 messages Jul 4, 2025 – Oct 28, 2025 Memory technology devices (MTD)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 mtd: Correct dependency on SYS_FLASH_CHECKSUM

This feature requires that CFG_SYS_FLASH_BASE is defined and this in turn is only done in the case of FLASH_CFI_DRIVER && !CFI_FLASH or in other words, when DM_MTD is not enabled.

---
 drivers/mtd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/Kconfig +1 -1
index 2b7f5e5ed7ba..f561b07e40b9 100644
@@ -166,7 +166,7 @@ config SYS_FLASH_QUIET_TEST
 
 config SYS_FLASH_CHECKSUM
 	bool "Compute and print flash CRC if 'flashchecksum' is set in the environment"
-	depends on MTD_NOR_FLASH
+	depends on (FLASH_CFI_DRIVER && !CFI_FLASH)
 	help
 	  If the variable flashchecksum is set in the environment, perform a CRC
 	  of the flash and print the value to console.
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

This feature requires that CFG_SYS_FLASH_BASE is defined and this in turn is only done in the case of FLASH_CFI_DRIVER && !CFI_FLASH or in other words, when DM_MTD is not enabled.

Applied to u-boot/master, thanks!

[1/1] mtd: Correct dependency on SYS_FLASH_CHECKSUM

      commit: bd7bf693de4f6f1c04159a312ad2b69b30dff8c5
Signature · 1 line
Tom