public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Append board name to version identifier
@ 2011-12-07 17:18 Ed Swarthout
  2011-12-07 18:39 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Ed Swarthout @ 2011-12-07 17:18 UTC (permalink / raw)
  To: u-boot

so it is printed as part of the version command and visible when
displaying the image in the various flash banks.

This allows "strings u-boot.bin | head -1" to identify target:

VU-Boot 2011.09-01427-g6ee5cf2 (Dec 07 2011 - 11:11:55) P4080DS

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
---
 include/version.h |    2 +-
 mkconfig          |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/version.h b/include/version.h
index c908bd3..58f42e1 100644
--- a/include/version.h
+++ b/include/version.h
@@ -35,7 +35,7 @@
 #endif
 
 #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
-	U_BOOT_TIME ")" CONFIG_IDENT_STRING
+	U_BOOT_TIME ") " BOARD_NAME CONFIG_IDENT_STRING
 
 #ifndef __ASSEMBLY__
 extern const char version_string[];
diff --git a/mkconfig b/mkconfig
index 438530b..50bd731 100755
--- a/mkconfig
+++ b/mkconfig
@@ -155,6 +155,7 @@ else
 	> config.h		# Create new config file
 fi
 echo "/* Automatically generated - do not edit */" >>config.h
+echo "#define BOARD_NAME \"${BOARD_NAME}\"" >>config.h
 
 for i in ${TARGETS} ; do
 	i="`echo ${i} | sed '/=/ {s/=/	/;q; } ; { s/$/	1/; }'`"
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-08  0:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07 17:18 [U-Boot] [PATCH] Append board name to version identifier Ed Swarthout
2011-12-07 18:39 ` Wolfgang Denk
2011-12-07 18:49   ` Igor Grinberg
2011-12-08  0:30   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox