From patchwork Sat Dec 10 12:25:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horst Kronstorfer X-Patchwork-Id: 130522 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id DCB41B6F7E for ; Sat, 10 Dec 2011 23:56:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A64428187; Sat, 10 Dec 2011 13:56:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g1AUYStyifBT; Sat, 10 Dec 2011 13:56:39 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98EF82818E; Sat, 10 Dec 2011 13:56:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 341812818E for ; Sat, 10 Dec 2011 13:56:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Te14SzmKnWB3 for ; Sat, 10 Dec 2011 13:56:32 +0100 (CET) X-Greylist: delayed 1870 seconds by postgrey-1.27 at theia; Sat, 10 Dec 2011 13:56:31 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from m3f4.kronos.net (194-166-32-105.adsl.highway.telekom.at [194.166.32.105]) by theia.denx.de (Postfix) with ESMTPS id 9A5A028187 for ; Sat, 10 Dec 2011 13:56:30 +0100 (CET) Received: from m3f4.kronos.net (m3f4.kronos.net [127.0.0.1]) by m3f4.kronos.net (8.14.5/8.14.5) with ESMTP id pBACPKjX007358; Sat, 10 Dec 2011 13:25:20 +0100 Received: (from mabuze@localhost) by m3f4.kronos.net (8.14.5/8.14.5/Submit) id pBACPKvc007357; Sat, 10 Dec 2011 13:25:20 +0100 From: Horst Kronstorfer To: u-boot@lists.denx.de Date: Sat, 10 Dec 2011 13:25:19 +0100 Message-Id: <1323519919-7320-1-git-send-email-hkronsto@frequentis.com> X-Mailer: git-send-email 1.7.7.3 Subject: [U-Boot] [PATCH] common/cmd_nvedit.c: Add missing 'env save' preproc guard X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Horst Kronstorfer --- common/cmd_nvedit.c | 2 ++ 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" );