aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Oldfield <m@mjo.tc>2012-09-17 16:14:40 +0100
committerMartin Oldfield <m@mjo.tc>2012-09-17 16:25:08 +0100
commitb15aa4e88f25c48badfe2545835a148bb8f67243 (patch)
tree70176f45f09b11af302d133d5e3a60f81120c644
parentc6fef7c499a21ec1443f540957ae2f4ae3544841 (diff)
Made the size target look at the ELF file, not the hex, as per Jared Szechy's patch. Craig Leres made a similar comment
-rw-r--r--arduino-mk/Arduino.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index 5261afa..38d8217 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -679,8 +679,8 @@ clean:
depends: $(DEPS)
cat $(DEPS) > $(DEP_FILE)
-size: $(OBJDIR) $(TARGET_HEX)
- $(SIZE) $(TARGET_HEX)
+size: $(OBJDIR) $(TARGET_ELF)
+ $(SIZE) -C --mcu=$(MCU) $(TARGET_ELF)
show_boards:
$(PARSE_BOARD_CMD) --boards