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)
commitcd121bdb6df3fe8dfe45ff1e34f46f86b8f060c0
tree32dd275494f021a9ea3b8f9ddcc1ed5855b6c900
parent4225f830c56d6a8f6e459bce8cec310a58a9df28
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