diff -rup u-boot-1.2.0.orig/common/main.c u-boot-1.2.0/common/main.c
--- u-boot-1.2.0.orig/common/main.c	2008-09-09 14:54:29.149976099 +0100
+++ u-boot-1.2.0/common/main.c	2008-09-09 15:00:32.711239678 +0100
@@ -30,6 +30,7 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
+#include <version.h>
 #ifdef CONFIG_MODEM_SUPPORT
 #include <malloc.h>		/* for free() prototype */
 #endif
@@ -363,6 +364,7 @@ void main_loop (void)
 		setenv ("ver", version_string);  /* set version variable */
 	}
 #endif /* CONFIG_VERSION_VARIABLE */
+	setenv("extraver", U_BOOT_EXTRAVERSION);
 
 #ifdef CFG_HUSH_PARSER
 	u_boot_hush_start ();
Only in u-boot-1.2.0/common: main.c~
diff -rup u-boot-1.2.0.orig/Makefile u-boot-1.2.0/Makefile
--- u-boot-1.2.0.orig/Makefile	2008-09-09 14:54:29.057965651 +0100
+++ u-boot-1.2.0/Makefile	2008-09-09 14:58:50.835680537 +0100
@@ -296,7 +296,8 @@ version:
 		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
 		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
 			 $(TOPDIR)) >> $(VERSION_FILE); \
-		echo "\"" >> $(VERSION_FILE)
+		echo "\"" >> $(VERSION_FILE); \
+		echo "#define U_BOOT_EXTRAVERSION \"$(patsubst .%,%,$(EXTRAVERSION))\"" >> $(VERSION_FILE)
 
 gdbtools:
 		$(MAKE) -C tools/gdb all || exit 1
Only in u-boot-1.2.0: Makefile~
