From: Tom Rini Date: Fri, 4 Jul 2025 21:45:56 +0000 (-0600) Subject: mtd: Correct dependency on SYS_FLASH_CHECKSUM X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd7bf693de4f6f1c04159a312ad2b69b30dff8c5;p=thirdparty%2Fu-boot.git 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. Signed-off-by: Tom Rini --- diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 06941a4fa8b..86752b5926d 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -167,7 +167,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.