summaryrefslogtreecommitdiff
path: root/board/trab/trab.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@atlas.denx.de>2006-06-19 01:37:03 +0200
committerWolfgang Denk <wd@atlas.denx.de>2006-06-19 01:37:03 +0200
commita650cfa286e8933144a776693d56dfd858922aa4 (patch)
tree1848c6ba3c8115b516d6711cad787d1e6a9d2fb5 /board/trab/trab.c
parentdf02bd1b3f2eecca04bfecb62eae7c2ff698506a (diff)
parent0c32d96ddd7309b86ff92dfc1f3694908f174cf6 (diff)
downloadu-boot-imx-a650cfa286e8933144a776693d56dfd858922aa4.zip
u-boot-imx-a650cfa286e8933144a776693d56dfd858922aa4.tar.gz
u-boot-imx-a650cfa286e8933144a776693d56dfd858922aa4.tar.bz2
Merge with ssh://fifi/home/wd/git/u-boot/master
Diffstat (limited to 'board/trab/trab.c')
-rw-r--r--board/trab/trab.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/trab/trab.c b/board/trab/trab.c
index 868a899..346406e 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 */