mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
U-Boot version environment variable "ver" added (CONFIG_VERSION_VARIABLE).
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user