]> git.baikalelectronics.ru Git - uboot.git/commit
env: register erase command
authorFrank Wunderlich <frank-w@public-files.de>
Sat, 29 Jun 2019 09:36:19 +0000 (11:36 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:25 +0000 (11:31 -0400)
commit500e5466e36839b9f34e5bcc41de7fa458858fae
tree32dd275494f021a9ea3b8f9ddcc1ed5855b6c900
parent5304e1f84851f1d819b2b60b18ea586d5b74d63f
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>
cmd/Kconfig
cmd/nvedit.c
env/env.c
include/environment.h