diff --git a/fsutils/flash_eraseall/Kconfig b/fsutils/flash_eraseall/Kconfig index 01728391f..25217c251 100644 --- a/fsutils/flash_eraseall/Kconfig +++ b/fsutils/flash_eraseall/Kconfig @@ -6,6 +6,7 @@ config FSUTILS_FLASH_ERASEALL bool "flash_eraseall() function" default n + depends on MTD ---help--- Enables support for the callable flash_eraseall() function that can be used to erase all FLASH backing up a block device driver. diff --git a/system/flash_eraseall/Kconfig b/system/flash_eraseall/Kconfig index 64ea620d2..3f378aca1 100644 --- a/system/flash_eraseall/Kconfig +++ b/system/flash_eraseall/Kconfig @@ -6,7 +6,8 @@ config SYSTEM_FLASH_ERASEALL bool "FLASH Erase-all Command" default n - depends on MTD && NSH_BUILTIN_APPS && !BUILD_PROTECTED && !BUILD_KERNEL + depends on MTD && NSH_BUILTIN_APPS + select FSUTILS_FLASH_ERASEALL ---help--- Enable support for the FLASH eraseall tool.