[U-Boot] [PATCH 06/41] Convert CONFIG_CMD_MTDPARTS_SPREAD to Kconfig

Simon Glass sjg at chromium.org
Fri Jul 21 23:11:05 UTC 2017


This converts the following to Kconfig:
   CONFIG_CMD_MTDPARTS_SPREAD

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 cmd/Kconfig                  | 10 ++++++++++
 configs/sandbox_defconfig    |  1 +
 scripts/config_whitelist.txt |  1 -
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index fc8398cd69..e5b63116dc 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1229,6 +1229,16 @@ config MTDPARTS_DEFAULT
 	  Defines a default MTD partitioning scheme in the Linux MTD command
 	  line partitions format
 
+config CMD_MTDPARTS_SPREAD
+	string "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"
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 7a1b9ef052..eaaa25f407 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -60,6 +60,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
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 0e33f65924..603c979a45 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -296,7 +296,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
-- 
2.14.0.rc0.284.gd933b75aa4-goog



More information about the U-Boot mailing list