cmd/flash: Make this default y for CFI and NOR only
authorTom Rini <trini@konsulko.com>
Wed, 10 Jan 2024 18:46:09 +0000 (13:46 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 22 Jan 2024 19:17:35 +0000 (14:17 -0500)
This command is only useful on CFI and NOR type flashes and not others.
Update the dependency so that it's not enabled by default in other
cases. This will lead to a number of platforms no longer building this
command, where it was not useful.

Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig

index 5c0a7ab..58ab357 100644 (file)
@@ -1085,7 +1085,7 @@ config CMD_FASTBOOT
 config CMD_FLASH
        bool "flinfo, erase, protect"
        default y
-       depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
+       depends on FLASH_CFI_DRIVER || MTD_NOR_FLASH
        help
          NOR flash support.
            flinfo - print FLASH memory information