Browse Source

common/cmd_nvedit.c: Add missing 'env save' preproc guard

Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
Horst Kronstorfer 13 years ago
parent
commit
d798a9b5d5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      common/cmd_nvedit.c

+ 2 - 0
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"
 );