Page 1 of 1

[rules.mk] size summary when compiled with VERBOSE = yes

Posted: Wed Nov 26, 2014 9:15 pm
by ncoage
Hi,

I'm writing application based on the demo for f0discovery kit.
When I set the VERBOSE flag (in Makefile) to "yes", the information about size of the bin file are not shown after compilation. Why is it that? Is there a special reason for that? I think this is very convenient to have that information not only when compiled with VERBOSE=no.

I've modified the file:
$(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC//rules.mk

Before:

Code: Select all

%.dmp: %.elf $(LDSCRIPT)
ifeq ($(USE_VERBOSE_COMPILE),yes)
   $(OD) $(ODFLAGS) $< > $@
else
   @echo Creating $@
   @$(OD) $(ODFLAGS) $< > $@
   @echo
   @$(SZ) $<
   @echo
   @echo Done
endif


After (line 4):

Code: Select all

%.dmp: %.elf $(LDSCRIPT)
ifeq ($(USE_VERBOSE_COMPILE),yes)
   $(OD) $(ODFLAGS) $< > $@
   $(SZ) $<
else
   @echo Creating $@
   @$(OD) $(ODFLAGS) $< > $@
   @echo
   @$(SZ) $<
   @echo
   @echo Done
endif


Maybe that kind of modification should be incorporated into the code? I would appreciate that :)

Best ragards
ncoage

Re: [rules.mk] size summary when compiled with VERBOSE = yes

Posted: Wed Nov 26, 2014 9:26 pm
by Giovanni
Hi,

Sure, no particular reason for not doing that.

Giovanni

Re: [rules.mk] size summary when compiled with VERBOSE = yes

Posted: Fri Nov 28, 2014 10:08 am
by Giovanni
Change committed.

Giovanni

Re: [rules.mk] size summary when compiled with VERBOSE = yes

Posted: Sun Nov 30, 2014 7:23 pm
by ncoage
Thanks!

BTW: I've been using repository https://github.com/ChibiOS/ChibiOS-RT.git as a git submodule in my project. Now it seems like the repo disapeared and I will have to switch to ChibiOS-gitmain repo...

Anyway thanks for doing that great project.

Best regards