diff mbox

[U-Boot,v2,06/42] Convert CONFIG_CMD_MTDPARTS_SPREAD to Kconfig

Message ID 20170804223506.105306-7-sjg@chromium.org
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass Aug. 4, 2017, 10:34 p.m. UTC
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>
---

Changes in v2: None

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

Comments

Philipp Tomsich Aug. 5, 2017, 9:54 a.m. UTC | #1
> 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>
> ---
> 
> Changes in v2: None
> 
>  cmd/Kconfig                  | 10 ++++++++++
>  configs/sandbox_defconfig    |  1 +
>  scripts/config_whitelist.txt |  1 -
>  3 files changed, 11 insertions(+), 1 deletion(-)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tom Rini Aug. 12, 2017, 1:12 p.m. UTC | #2
On Fri, Aug 04, 2017 at 04:34:30PM -0600, Simon Glass wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4b63efe80c..27b970975e 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1222,6 +1222,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 fd0b952e1d..698ced0256 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -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
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 60d13dfbba..b366dc0f39 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