diff options
| author | Gabriel <gabriel@gaftech.fr> | 2012-07-01 13:04:39 +0200 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2012-07-06 15:52:42 +0530 |
| commit | 8d16c45b8d4c7cc93d45364bef353a3240a2eae4 (patch) | |
| tree | 7bba456f654334a47836d986c307005df4ea8c7d | |
| parent | 0068267feae8d004ca77e0228287d07b576df532 (diff) | |
modified 'make size' behaviour
| -rw-r--r-- | arduino-mk/Arduino.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index ffa91b4..9df8080 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -94,6 +94,7 @@ # # 0.9.2 06.vi.2012 Sudar # - Allow user to choose source files (LOCAL_*_SRCS flags) (https://github.com/Gaftech) +# - Modified 'make size' behaviour: using --mcu option and targeting .elf file instead of .hex file.(https://github.com/Gaftech) # ######################################################################## # @@ -518,6 +519,7 @@ CFLAGS = -std=gnu99 CXXFLAGS = -fno-exceptions ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp LDFLAGS = -mmcu=$(MCU) -Wl,--gc-sections -Os +SIZEFLAGS ?= --mcu=$(MCU) -C # Expand and pick the first port ARD_PORT = $(firstword $(wildcard $(ARDUINO_PORT))) @@ -705,8 +707,8 @@ clean: depends: $(DEPS) cat $(DEPS) > $(DEP_FILE) -size: $(OBJDIR) $(TARGET_HEX) - $(SIZE) $(TARGET_HEX) +size: $(OBJDIR) $(TARGET_ELF) + $(SIZE) $(SIZEFLAGS) $(TARGET_ELF) show_boards: $(PARSE_BOARD_CMD) --boards |
