[U-Boot] [PATCH] Append board name to version identifier
Ed Swarthout
Ed.Swarthout at freescale.com
Wed Dec 7 18:18:04 CET 2011
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 at 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
More information about the U-Boot
mailing list