From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerlando Falauto Date: Mon, 12 Dec 2011 10:33:11 +0100 Subject: [U-Boot] [PATCH v2 3/3] env: make "env default" selective, check and apply In-Reply-To: References: <1321634955-5561-1-git-send-email-gerlando.falauto@keymile.com><1323264605-13541-4-git-send-email-gerlando.falauto@keymile.com> Message-ID: <4EE5CA57.6070807@keymile.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/07/2011 11:02 PM, Simon Glass wrote: > Hi Gerlando, [...] >> diff --git a/include/environment.h b/include/environment.h >> index 3a3e6b8..8f0d4db 100644 >> --- a/include/environment.h >> +++ b/include/environment.h >> @@ -190,6 +190,11 @@ void env_crc_update(void); >> /* [re]set to the default environment */ >> void set_default_env(const char *s); >> >> +#ifdef CONFIG_CMD_DEFAULTENV_VARS >> +/* [re]set individual variables to their value in the default environment */ >> +int env_default_vars(int nvars, char * const vars[]); > > How about env_set_vars_to_default? Hmm... sounds too long to me. But if you insist... Best, Gerlando