]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_CMD_MTDPARTS_SPREAD to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 4 Aug 2017 22:34:30 +0000 (16:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Aug 2017 19:41:30 +0000 (15:41 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_MTDPARTS_SPREAD

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
[trini: Make this a bool not a string]
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig
configs/sandbox_defconfig
scripts/config_whitelist.txt

index 67890c7f8ebd83bda19de809722c2d820e9f269d..4d89af4a819ef3430c888745bdcc83d3adf08ad3 100644 (file)
@@ -1230,6 +1230,16 @@ config MTDPARTS_DEFAULT
          Defines a default MTD partitioning scheme in the Linux MTD command
          line partitions format
 
+config CMD_MTDPARTS_SPREAD
+       bool "Padd partition size to take account of bad blocks"
+       depends on CMD_MTDPARTS
+       help
+         This enables the 'spread' sub-command of the mtdparts command.
+         This command will modify the existing mtdparts variable by increasing
+         the size of the partitions such that 1) each partition's net size is
+         at least as large as the size specified in the mtdparts variable and
+         2) each partition starts on a good block.
+
 endmenu
 
 menu "Debug commands"
index fd0b952e1dbb941c3b49542b2e878b85acbe6225..698ced0256c50ee87d34657155fba5fb907977e8 100644 (file)
@@ -61,6 +61,7 @@ CONFIG_CMD_TPM_TEST=y
 CONFIG_CMD_CBFS=y
 CONFIG_CMD_CRAMFS=y
 CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_MTDPARTS=y
 CONFIG_MAC_PARTITION=y
 CONFIG_AMIGA_PARTITION=y
 CONFIG_OF_CONTROL=y
index 4a2730a8a47ac3e0ae22317672a6a91980ef5b01..90ed096fee836c55f9ebab1b6e1ba6801eb4a096 100644 (file)
@@ -293,7 +293,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_MTDPARTS_SPREAD
 CONFIG_CMD_ONENAND
 CONFIG_CMD_PCA953X
 CONFIG_CMD_PCA953X_INFO