[U-Boot] [PATCH] Add U_BOOT_TIMESTAMP definition

Matt Sealey matt at genesi-usa.com
Thu Aug 23 17:01:31 CEST 2012


On Thu, Aug 23, 2012 at 9:49 AM, Stefano Babic <sbabic at denx.de> wrote:
> On 23/08/2012 16:44, Matt Sealey wrote:
>> This gives us a string like "20120822150855" which encodes the build time.
>>
>> This allows automated version checking and flashing of U-Boot to be performed,
>> for example, in boot.scr files (or scripting in general).
>>
>> Signed-off-by: Matt Sealey <matt at genesi-usa.com>
>> Cc: Stefano Babic <sbabic at denx.de>
>> Cc: Marek Vasut <marex at denx.de>
>> ---
>
> Hi Matt,
>
>>  Makefile |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/Makefile b/Makefile
>> index 1df4c1d..c042206 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -664,6 +664,7 @@ $(TIMESTAMP_FILE):
>>               @mkdir -p $(dir $(TIMESTAMP_FILE))
>>               @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@.tmp
>>               @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@.tmp
>> +             @LC_ALL=C date +'#define U_BOOT_TIMESTAMP "%Y%m%d%H%M%S"' >> $@.tmp
>>               @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
>>
>
> This is not related to iMX only. I set CC to Wolfgang.

Noted, totally my fault.

-- 
Matt Sealey <matt at genesi-usa.com>
Product Development Analyst, Genesi USA, Inc.


More information about the U-Boot mailing list