diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-06-26 10:02:52 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-06-26 10:02:52 +0200 |
commit | f0e3d2b42268a9ed8d28c50c662eeba08379ceab (patch) | |
tree | ac713d8a69dee7e80af82ff3b3d5b6b3062c5ee7 /board/trab/trab.c | |
parent | 386eda022473394ad8f36b86f2bdc9b4cb816291 (diff) | |
parent | f73e73ba0e422e6f79030d77286dd57becaee16f (diff) |
Merge with /home/wd/git/u-boot/master
Diffstat (limited to 'board/trab/trab.c')
-rw-r--r-- | board/trab/trab.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/trab/trab.c b/board/trab/trab.c index 868a899ee9..346406eaad 100644 --- a/board/trab/trab.c +++ b/board/trab/trab.c @@ -161,6 +161,19 @@ int misc_init_r (void) uchar *str; int i; +#ifdef CONFIG_VERSION_VARIABLE + { + /* Set version variable. Please note, that this variable is + * also set in main_loop() later in the boot process. The + * version variable has to be set this early, because so it + * could be used in script files on an usb stick, which + * might be called during do_auto_update() */ + extern char version_string[]; + + setenv ("ver", version_string); + } +#endif /* CONFIG_VERSION_VARIABLE */ + #ifdef CONFIG_AUTO_UPDATE extern int do_auto_update(void); /* this has priority over all else */ |