mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
U-Boot version environment variable "ver" added (CONFIG_VERSION_VARIABLE).
This commit is contained in:
parent
0db5bca807
commit
0587597ca3
2 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue