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

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
ncoage
Posts: 3
Joined: Wed Nov 26, 2014 8:53 pm

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

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post by Giovanni »

Hi,

Sure, no particular reason for not doing that.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post by Giovanni »

Change committed.

Giovanni
ncoage
Posts: 3
Joined: Wed Nov 26, 2014 8:53 pm

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

Post 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
Post Reply