[PATCH] mtd: Correct dependency on SYS_FLASH_CHECKSUM
Tom Rini
trini at konsulko.com
Fri Jul 4 23:45:56 CEST 2025
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.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
drivers/mtd/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 2b7f5e5ed7ba..f561b07e40b9 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -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.
--
2.43.0
More information about the U-Boot
mailing list