This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RedBoot: how to display correct build date/time?
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] RedBoot: how to display correct build date/time?
- From: Grant Edwards <grante at visi dot com>
- Date: Mon, 26 Feb 2001 11:50:09 -0600
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