* [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* [U-Boot] [PATCH] Append board name to version identifier
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
0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Denk @ 2011-12-07 18:39 UTC (permalink / raw)
To: u-boot
Dear Ed Swarthout,
In message <1323278284-19643-1-git-send-email-Ed.Swarthout@freescale.com> you wrote:
> 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(-)
I don't think this is a good idea, especially as it afects the user
interface for all boards.
Please feel free to define local settings for boards that are
maintained by you (oops... there aren't any...), but I don't want to
change this globally.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Maintain an awareness for contribution -- to your schedule, your
project, our company." - A Group of Employees
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] Append board name to version identifier
2011-12-07 18:39 ` Wolfgang Denk
@ 2011-12-07 18:49 ` Igor Grinberg
2011-12-08 0:30 ` Mike Frysinger
1 sibling, 0 replies; 4+ messages in thread
From: Igor Grinberg @ 2011-12-07 18:49 UTC (permalink / raw)
To: u-boot
Hi Ed,
On 12/07/11 20:39, Wolfgang Denk wrote:
> Dear Ed Swarthout,
>
> In message <1323278284-19643-1-git-send-email-Ed.Swarthout@freescale.com> you wrote:
>> 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(-)
>
> I don't think this is a good idea, especially as it afects the user
> interface for all boards.
>
> Please feel free to define local settings for boards that are
> maintained by you (oops... there aren't any...), but I don't want to
> change this globally.
Instead, you can create the localversion-<something> file and the build
system will take care of the rest, for example:
------------cut----------
~/git-repo/u-boot $ cat localversion-cm-t3730
-cm-t3730-1
------------cut----------
and it gives me:
U-Boot 2011.09-cm-t3730-1 (Oct 11 2011 - 11:52:34)
--
Regards,
Igor.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] Append board name to version identifier
2011-12-07 18:39 ` Wolfgang Denk
2011-12-07 18:49 ` Igor Grinberg
@ 2011-12-08 0:30 ` Mike Frysinger
1 sibling, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2011-12-08 0:30 UTC (permalink / raw)
To: u-boot
On Wednesday 07 December 2011 13:39:06 Wolfgang Denk wrote:
> Ed Swarthout wrote:
> > 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
this `strings|head` is arbitrary and just happens to work for your setup
> I don't think this is a good idea, especially as it afects the user
> interface for all boards.
+1
> Please feel free to define local settings for boards that are
> maintained by you (oops... there aren't any...), but I don't want to
> change this globally.
isn't there though ? for Blackfin boards, i just use checkboard() to include
board info. but specifically for the version string, doesn't defining
CONFIG_IDENT_STRING in the board's config work ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111207/39b4003c/attachment.pgp>
^ permalink raw reply [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