MLK-22259-1: cmd: Kconfig: add new option CONFIG_MTDPARTS_SKIP_INVALID
authorHan Xu <han.xu@nxp.com>
Fri, 12 Jul 2019 20:52:46 +0000 (15:52 -0500)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:18 +0000 (00:56 -0700)
add a new option in mtdparts to skip the invalid devices rather than
just quit

Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit dbe3763931e536cba4925fdd04fda39cc748fc1c)
(cherry picked from commit e6aebc13f81012fea8ed9d98bdd1d106b75ad56f)

cmd/Kconfig

index fc7a942..03b12ad 100644 (file)
@@ -2211,6 +2211,12 @@ config MTDPARTS_DEFAULT
          Defines a default MTD partitioning scheme in the Linux MTD command
          line partitions format
 
+config MTDPARTS_SKIP_INVALID
+       bool "Skip invalid devices and keep checking the next one"
+       depends on CMD_MTDPARTS
+       help
+         Enable this feature will look for next device rather than quit.
+
 config CMD_REISER
        bool "reiser - Access to reiserfs filesystems"
        help