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.swarth...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot