From 560fd88074327c52739beb389cd339c78f009adf Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 9 Aug 2012 19:03:12 +0100 Subject: [PATCH] Makefile: Better size printing 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 --- Marlin/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/Makefile b/Marlin/Makefile index a85111d..940bb16 100644 --- a/Marlin/Makefile +++ b/Marlin/Makefile @@ -221,7 +221,8 @@ endif # Display size of file. HEXSIZE = $(SIZE) --target=$(FORMAT) applet/$(TARGET).hex -ELFSIZE = $(SIZE) applet/$(TARGET).elf +ELFSIZE = $(SIZE) --mcu=$(MCU) -C applet/$(TARGET).elf; \ + $(SIZE) applet/$(TARGET).elf sizebefore: $P if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi -- 2.30.2