Browse Source

Makefile: Better display of size (device memory usage)

Run avr-size with the --mcu=... -C option as well.  That reports how
much actual device program and data memory is used along with a
percentage fullness.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson 12 years ago
parent
commit
3f15b7c7b8
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/Makefile

+ 2
- 1
Marlin/Makefile View File

@@ -221,7 +221,8 @@ endif
221 221
 
222 222
 	# Display size of file.
223 223
 HEXSIZE = $(SIZE) --target=$(FORMAT) applet/$(TARGET).hex
224
-ELFSIZE = $(SIZE)  applet/$(TARGET).elf
224
+ELFSIZE = $(SIZE) --mcu=$(MCU) -C applet/$(TARGET).elf; \
225
+          $(SIZE)  applet/$(TARGET).elf
225 226
 sizebefore:
226 227
 	$P if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
227 228
 

Loading…
Cancel
Save