[ECOS] RedBoot: how to display correct build date/time?
Grant Edwards
grante@visi.com
Mon Feb 26 09:45:00 GMT 2001
Hi all,
I'm trying to figure out how to get RedBoot to display the
build date/time. It currently displays the date/time that
main.c was compiled. If I'm not making changes to main.c, then
the date/time in main.c is not really "current".
For my other eCos apps, I set up my application makefile so
it does something like:
application: $(OBJS) $(ECOS)/lib/libtarget.a $(ECOS)/lib/libextras.a
echo "char linkTimeStamp[] = \"`date`\";" >linkTimeStamp.c
$(XCC) -c linkTimeStamp.c
$(LD) -Wl,-Map,$@.map $(LDFLAGS) -o $@ $(OBJS) linkTimeStamp.o $(LIBS)
But, since the Makefile for RedBoot is generated auto-magically
by ecosconfig, I'm not sure what would be the best method for
getting a build timestamp into RedBoot...
--
Grant Edwards
grante@visi.com
More information about the Ecos-discuss
mailing list