summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorst Kronstorfer <hkronsto@frequentis.com>2011-12-10 02:25:19 +0000
committerWolfgang Denk <wd@denx.de>2011-12-12 08:25:38 +0100
commitd798a9b5d50527713adc6309206a8d9f287593fb (patch)
treef54b5cb80226d33e535455497a16ed638f06594c
parent5fb5da794514e5ea6d0062d4158b87e789ae39dc (diff)
downloadu-boot-imx-d798a9b5d50527713adc6309206a8d9f287593fb.zip
u-boot-imx-d798a9b5d50527713adc6309206a8d9f287593fb.tar.gz
u-boot-imx-d798a9b5d50527713adc6309206a8d9f287593fb.tar.bz2
common/cmd_nvedit.c: Add missing 'env save' preproc guard
Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
-rw-r--r--common/cmd_nvedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 5995354..baaa513 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -977,7 +977,9 @@ U_BOOT_CMD(
#if defined(CONFIG_CMD_RUN)
"env run var [...] - run commands in an environment variable\n"
#endif
+#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_ENV_IS_NOWHERE)
"env save - save environment\n"
+#endif
"env set [-f] name [arg ...]\n"
);