summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>2012-08-10 07:45:44 +0000
committerTom Rini <trini@ti.com>2012-09-18 12:01:51 -0700
commit4796bc4bbc895c4ee045e4299daa04beb096cbb6 (patch)
tree860a50d530ed97d9e915af23c5d7515460413e97 /common
parentb8496cced856ff411f1eb2e4eff20f5abe7080b0 (diff)
downloadu-boot-imx-4796bc4bbc895c4ee045e4299daa04beb096cbb6.zip
u-boot-imx-4796bc4bbc895c4ee045e4299daa04beb096cbb6.tar.gz
u-boot-imx-4796bc4bbc895c4ee045e4299daa04beb096cbb6.tar.bz2
env import/export: Remove from help if disabled
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nvedit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index fd05e72..0f320cc 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -954,11 +954,15 @@ U_BOOT_CMD(
#if defined(CONFIG_CMD_EDITENV)
"env edit name - edit environment variable\n"
#endif
+#if defined(CONFIG_CMD_EXPORTENV)
"env export [-t | -b | -c] [-s size] addr [var ...] - export environment\n"
+#endif
#if defined(CONFIG_CMD_GREPENV)
"env grep string [...] - search environment\n"
#endif
+#if defined(CONFIG_CMD_IMPORTENV)
"env import [-d] [-t | -b | -c] addr [size] - import environment\n"
+#endif
"env print [name ...] - print environment\n"
#if defined(CONFIG_CMD_RUN)
"env run var [...] - run commands in an environment variable\n"