]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common/cmd_nvedit.c: Add missing 'env save' preproc guard
authorHorst Kronstorfer <hkronsto@frequentis.com>
Sat, 10 Dec 2011 02:25:19 +0000 (02:25 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 12 Dec 2011 07:25:38 +0000 (08:25 +0100)
Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
common/cmd_nvedit.c

index 599535449ebf49066f0c5e5dd084e9fd760bd814..baaa513f6b2856ddc5d41d8735b9afc429b4d79c 100644 (file)
@@ -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"
 );