From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 18/48] Convert CONFIG_CMD_ENV_FLAGS to Kconfig
Date: Wed, 17 May 2017 03:25:14 -0600 [thread overview]
Message-ID: <20170517092544.19357-19-sjg@chromium.org> (raw)
In-Reply-To: <20170517092544.19357-1-sjg@chromium.org>
This converts the following to Kconfig:
CONFIG_CMD_ENV_FLAGS
Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v3: None
Changes in v2: None
README | 1 -
cmd/Kconfig | 8 ++++++++
configs/ids8313_defconfig | 1 +
configs/sandbox_defconfig | 1 +
configs/sandbox_noblk_defconfig | 1 +
configs/sandbox_spl_defconfig | 1 +
include/configs/ids8313.h | 1 -
include/configs/sandbox.h | 2 --
scripts/config_whitelist.txt | 1 -
9 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/README b/README
index 74e1e5473f..9381510402 100644
--- a/README
+++ b/README
@@ -833,7 +833,6 @@ The following options need to be configured:
CONFIG_CMD_ECHO echo arguments
CONFIG_CMD_EDITENV edit env variable
CONFIG_CMD_ELF * bootelf, bootvx
- CONFIG_CMD_ENV_FLAGS * display details about env flags
CONFIG_CMD_ENV_EXISTS * check existence of env variable
CONFIG_CMD_EXPORTENV * export the environment
CONFIG_CMD_EXT2 * ext2 command support
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 3ac876403c..ab09a9f528 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -322,6 +322,14 @@ config CMD_ENV_CALLBACK
For example changing "baudrate" adjust the serial baud rate. This
command lists the currently defined callbacks.
+config CMD_ENV_FLAGS
+ bool "env flags -print variables that have non-default flags"
+ help
+ Some environment variables have special flags that control their
+ behaviour. For example, serial# can only be written once and cannot
+ be deleted. This command shows the variables that have special
+ flags.
+
endmenu
menu "Memory commands"
diff --git a/configs/ids8313_defconfig b/configs/ids8313_defconfig
index 165e2eb495..2accd31229 100644
--- a/configs/ids8313_defconfig
+++ b/configs/ids8313_defconfig
@@ -13,6 +13,7 @@ CONFIG_HUSH_PARSER=y
CONFIG_AUTOBOOT_KEYED=y
CONFIG_AUTOBOOT_PROMPT="Enter password - autoboot in %d seconds...\n"
CONFIG_AUTOBOOT_DELAY_STR="ids"
+CONFIG_CMD_ENV_FLAGS=y
CONFIG_CMD_SPI=y
CONFIG_CMD_I2C=y
# CONFIG_CMD_SETEXPR is not set
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index b63da46c87..f8e1b3ad99 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -23,6 +23,7 @@ CONFIG_CMD_BOOTZ=y
CONFIG_CMD_ASKENV=y
CONFIG_CMD_GREPENV=y
CONFIG_CMD_ENV_CALLBACK=y
+CONFIG_CMD_ENV_FLAGS=y
CONFIG_CMD_MD5SUM=y
CONFIG_LOOPW=y
CONFIG_CMD_MEMTEST=y
diff --git a/configs/sandbox_noblk_defconfig b/configs/sandbox_noblk_defconfig
index 3349697b67..312834bf40 100644
--- a/configs/sandbox_noblk_defconfig
+++ b/configs/sandbox_noblk_defconfig
@@ -23,6 +23,7 @@ CONFIG_CMD_BOOTZ=y
CONFIG_CMD_ASKENV=y
CONFIG_CMD_GREPENV=y
CONFIG_CMD_ENV_CALLBACK=y
+CONFIG_CMD_ENV_FLAGS=y
CONFIG_CMD_MD5SUM=y
CONFIG_LOOPW=y
CONFIG_CMD_MEMTEST=y
diff --git a/configs/sandbox_spl_defconfig b/configs/sandbox_spl_defconfig
index 79eb83719e..7f262dc327 100644
--- a/configs/sandbox_spl_defconfig
+++ b/configs/sandbox_spl_defconfig
@@ -30,6 +30,7 @@ CONFIG_CMD_BOOTZ=y
CONFIG_CMD_ASKENV=y
CONFIG_CMD_GREPENV=y
CONFIG_CMD_ENV_CALLBACK=y
+CONFIG_CMD_ENV_FLAGS=y
CONFIG_CMD_MD5SUM=y
CONFIG_LOOPW=y
CONFIG_CMD_MEMTEST=y
diff --git a/include/configs/ids8313.h b/include/configs/ids8313.h
index 7ffc9d1dd9..be96834c76 100644
--- a/include/configs/ids8313.h
+++ b/include/configs/ids8313.h
@@ -444,7 +444,6 @@
#define CONFIG_UBOOTPATH "ids8313/u-boot.bin"
#define CONFIG_FDTFILE "ids8313/ids8313.dtb"
#define CONFIG_LOADADDR 0x400000
-#define CONFIG_CMD_ENV_FLAGS
#define CONFIG_ENV_FLAGS_LIST_STATIC "ethaddr:mo,eth1addr:mo"
/* Initial Memory map for Linux*/
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 1743055f15..da547c5bb2 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -109,8 +109,6 @@
#define CONFIG_CMD_SANDBOX
-#define CONFIG_CMD_ENV_FLAGS
-
#define CONFIG_BOOTARGS ""
#ifndef SANDBOX_NO_SDL
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index deb98c9db7..d6de1d774b 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -383,7 +383,6 @@ CONFIG_CM922T_XA10
CONFIG_CMDLINE_EDITING
CONFIG_CMDLINE_PS_SUPPORT
CONFIG_CMDLINE_TAG
-CONFIG_CMD_ENV_FLAGS
CONFIG_CMD_ERRATA
CONFIG_CMD_ESBC_VALIDATE
CONFIG_CMD_ETHSW
--
2.13.0.303.g4ebf302169-goog
next prev parent reply other threads:[~2017-05-17 9:25 UTC|newest]
Thread overview: 99+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-17 9:24 [U-Boot] [PATCH v3 00/48] Kconfig: Convert commands (D to L) to Kconfig Simon Glass
2017-05-17 9:24 ` [U-Boot] [PATCH v3 01/48] configs: Re-sync Simon Glass
2017-05-17 9:24 ` [U-Boot] [PATCH v3 02/48] Kconfig: Drop CONFIG_CMD_DS4510_INFO Simon Glass
2017-05-22 17:58 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:24 ` [U-Boot] [PATCH v3 03/48] Kconfig: Drop CONFIG_CMD_DS4510_MEM Simon Glass
2017-05-22 17:58 ` [U-Boot] [U-Boot,v3,03/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 04/48] Kconfig: Drop CONFIG_CMD_DS4510_RST Simon Glass
2017-05-22 17:59 ` [U-Boot] [U-Boot,v3,04/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 05/48] Kconfig: Drop CONFIG_CMD_DS4510 Simon Glass
2017-05-22 17:59 ` [U-Boot] [U-Boot,v3,05/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 06/48] Convert CONFIG_DS4510 to Kconfig Simon Glass
2017-05-22 17:59 ` [U-Boot] [U-Boot,v3,06/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 07/48] Kconfig: Drop CONFIG_SYS_I2C_DTT_ADDR Simon Glass
2017-05-22 17:59 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 08/48] Drop three-wire serial (TWS) support Simon Glass
2017-05-22 17:59 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 09/48] Drop digital thermometer and thermostat (DTT) drivers Simon Glass
2017-05-22 17:59 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 10/48] Kconfig: Drop CONFIG_SYS_I2C_DS1621_ADDR Simon Glass
2017-05-22 18:00 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 11/48] Kconfig: Drop CONFIG_SYS_I2C_DS4510_ADDR Simon Glass
2017-05-22 18:00 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 12/48] Convert CONFIG_CMD_ECCTEST to Kconfig Simon Glass
2017-05-22 18:00 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 13/48] Convert CONFIG_CMD_EECONFIG " Simon Glass
2017-05-22 18:00 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 14/48] Convert CONFIG_CMD_EEPROM et al " Simon Glass
2017-05-22 18:00 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 15/48] Convert CONFIG_CMD_ENTERRCM " Simon Glass
2017-05-22 18:00 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 16/48] Kconfig: Drop CONFIG_CMD_ENV Simon Glass
2017-05-22 18:01 ` [U-Boot] [U-Boot,v3,16/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 17/48] Convert CONFIG_CMD_ENV_CALLBACK to Kconfig Simon Glass
2017-05-22 18:01 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` Simon Glass [this message]
2017-05-22 18:01 ` [U-Boot] [U-Boot, v3, 18/48] Convert CONFIG_CMD_ENV_FLAGS " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 19/48] Convert CONFIG_CMD_ERRATA " Simon Glass
2017-05-22 18:01 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-22 18:01 ` Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 20/48] Convert CONFIG_CMD_ESBC_VALIDATE " Simon Glass
2017-05-22 18:01 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 21/48] Convert CONFIG_CMD_ETHSW " Simon Glass
2017-05-22 18:02 ` [U-Boot] [U-Boot,v3,21/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 22/48] Convert CONFIG_CMD_FDC " Simon Glass
2017-05-22 18:02 ` [U-Boot] [U-Boot,v3,22/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 23/48] Kconfig: Drop CONFIG_CMD_FDT_MAX_DUMP Simon Glass
2017-05-22 18:02 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 24/48] Convert CONFIG_CMD_FPGAD to Kconfig Simon Glass
2017-05-22 18:02 ` [U-Boot] [U-Boot,v3,24/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 25/48] Convert CONFIG_CMD_FPGA_LOADBP et al " Simon Glass
2017-05-22 18:03 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 26/48] Convert CONFIG_CMD_FUSE " Simon Glass
2017-05-22 18:03 ` [U-Boot] [U-Boot,v3,26/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 27/48] Convert CONFIG_CMD_GETTIME " Simon Glass
2017-05-22 18:03 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 28/48] Convert CONFIG_CMD_GSC " Simon Glass
2017-05-22 18:03 ` [U-Boot] [U-Boot,v3,28/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 29/48] Convert CONFIG_CMD_HASH " Simon Glass
2017-05-17 13:11 ` Tom Rini
2017-05-22 18:03 ` [U-Boot] [U-Boot,v3,29/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 30/48] Kconfig: Add CONFIG_HASH to enable hashing API Simon Glass
2017-05-17 13:13 ` Tom Rini
2017-05-17 15:07 ` Simon Glass
2017-05-17 9:25 ` [U-Boot] [PATCH v3 31/48] Convert CONFIG_CMD_HD44760 to Kconfig Simon Glass
2017-05-22 18:03 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 32/48] Convert CONFIG_CMD_HDMIDETECT " Simon Glass
2017-05-22 18:03 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 33/48] Convert CONFIG_CMD_IDE " Simon Glass
2017-05-22 18:04 ` [U-Boot] [U-Boot,v3,33/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 34/48] Kconfig: Add a CONFIG_IDE option Simon Glass
2017-05-22 18:04 ` [U-Boot] [U-Boot,v3,34/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 35/48] Convert CONFIG_CMD_IMMAP to Kconfig Simon Glass
2017-05-22 18:04 ` [U-Boot] [U-Boot,v3,35/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 36/48] Kconfig: Drop CONFIG_CMD_IMXOTP Simon Glass
2017-05-22 18:04 ` [U-Boot] [U-Boot,v3,36/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 37/48] Kconfig: Drop CONFIG_CMD_IMX_FUSE Simon Glass
2017-05-22 18:05 ` [U-Boot] [U-Boot,v3,37/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 38/48] Convert CONFIG_CMD_IO to Kconfig Simon Glass
2017-05-22 18:05 ` [U-Boot] [U-Boot,v3,38/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 39/48] Convert CONFIG_CMD_IOLOOP " Simon Glass
2017-05-22 18:05 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 40/48] Convert CONFIG_CMD_IOTRACE " Simon Glass
2017-05-22 18:05 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 41/48] Convert CONFIG_CMD_JFFS2 " Simon Glass
2017-05-22 18:06 ` [U-Boot] [U-Boot,v3,41/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 42/48] fs: Kconfig: Add a separate option for FS_JFFS2 Simon Glass
2017-05-22 18:06 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 43/48] Convert CONFIG_CMD_IRQ to Kconfig Simon Glass
2017-05-22 18:06 ` [U-Boot] [U-Boot,v3,43/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 44/48] Convert CONFIG_CMD_KGDB " Simon Glass
2017-05-22 18:06 ` [U-Boot] [U-Boot,v3,44/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 45/48] Kconfig: Drop CONFIG_CMD_LOADY Simon Glass
2017-05-22 18:06 ` [U-Boot] [U-Boot,v3,45/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 46/48] Convert CONFIG_LZMA to Kconfig Simon Glass
2017-05-22 18:06 ` [U-Boot] [U-Boot,v3,46/48] " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 47/48] Convert CONFIG_CMD_LZMADEC " Simon Glass
2017-05-22 18:07 ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17 9:25 ` [U-Boot] [PATCH v3 48/48] sandbox: Enable CMD_GETTIME Simon Glass
2017-05-22 18:07 ` [U-Boot] [U-Boot,v3,48/48] " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170517092544.19357-19-sjg@chromium.org \
--to=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.