U-Boot version environment variable "ver" added (CONFIG_VERSION_VARIABLE).

This commit is contained in:
stroese 2003-04-04 15:44:49 +00:00
parent 0db5bca807
commit 0587597ca3
2 changed files with 16 additions and 2 deletions

View file

@ -279,6 +279,16 @@ void main_loop (void)
}
#endif /* CONFIG_MODEM_SUPPORT */
#ifdef CONFIG_VERSION_VARIABLE
{
extern char version_string[];
char *str = getenv("ver");
if (!str)
setenv ("ver", version_string); /* set version variable */
}
#endif /* CONFIG_VERSION_VARIABLE */
#ifdef CFG_HUSH_PARSER
u_boot_hush_start ();
#endif