This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RedBoot: how to display correct build date/time?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]