aboutsummaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorFrank Wunderlich <frank-w@public-files.de>2019-06-29 11:36:19 +0200
committerTom Rini <trini@konsulko.com>2019-07-18 11:31:25 -0400
commitcd121bdb6df3fe8dfe45ff1e34f46f86b8f060c0 (patch)
tree32dd275494f021a9ea3b8f9ddcc1ed5855b6c900 /cmd/Kconfig
parent4225f830c56d6a8f6e459bce8cec310a58a9df28 (diff)
downloadu-boot-cd121bdb6df3fe8dfe45ff1e34f46f86b8f060c0.zip
u-boot-cd121bdb6df3fe8dfe45ff1e34f46f86b8f060c0.tar.gz
u-boot-cd121bdb6df3fe8dfe45ff1e34f46f86b8f060c0.tar.bz2
env: register erase command
this patch adds basic changes for adding a erase-subcommand to env with this command the environment stored on non-volatile storage written by saveenv can be cleared. Signed-off-by: Frank Wunderlich <frank-w@public-files.de> squashed fixes - start message with "Erasing" - mark erase-function as optional - env: separate eraseenv from saveenv Suggested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 67284d8..ec746fe 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -408,6 +408,14 @@ config CMD_SAVEENV
Save all environment variables into the compiled-in persistent
storage.
+config CMD_ERASEENV
+ bool "eraseenv"
+ default n
+ depends on CMD_SAVEENV
+ help
+ Erase environment variables from the compiled-in persistent
+ storage.
+
config CMD_ENV_EXISTS
bool "env exists"
default y