]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mtd: Correct dependency on SYS_FLASH_CHECKSUM
authorTom Rini <trini@konsulko.com>
Fri, 4 Jul 2025 21:45:56 +0000 (15:45 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 18:20:18 +0000 (12:20 -0600)
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@konsulko.com>
drivers/mtd/Kconfig

index 06941a4fa8bc22b917269184884c41a8f8516ae3..86752b5926de27ea739f04af24c5af196633a531 100644 (file)
@@ -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.