modified 'make size' behaviour
This commit is contained in:
parent
0068267fea
commit
8d16c45b8d
1 changed files with 4 additions and 2 deletions
|
@ -94,6 +94,7 @@
|
||||||
#
|
#
|
||||||
# 0.9.2 06.vi.2012 Sudar
|
# 0.9.2 06.vi.2012 Sudar
|
||||||
# - Allow user to choose source files (LOCAL_*_SRCS flags) (https://github.com/Gaftech)
|
# - 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
|
CXXFLAGS = -fno-exceptions
|
||||||
ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp
|
ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp
|
||||||
LDFLAGS = -mmcu=$(MCU) -Wl,--gc-sections -Os
|
LDFLAGS = -mmcu=$(MCU) -Wl,--gc-sections -Os
|
||||||
|
SIZEFLAGS ?= --mcu=$(MCU) -C
|
||||||
|
|
||||||
# Expand and pick the first port
|
# Expand and pick the first port
|
||||||
ARD_PORT = $(firstword $(wildcard $(ARDUINO_PORT)))
|
ARD_PORT = $(firstword $(wildcard $(ARDUINO_PORT)))
|
||||||
|
@ -705,8 +707,8 @@ clean:
|
||||||
depends: $(DEPS)
|
depends: $(DEPS)
|
||||||
cat $(DEPS) > $(DEP_FILE)
|
cat $(DEPS) > $(DEP_FILE)
|
||||||
|
|
||||||
size: $(OBJDIR) $(TARGET_HEX)
|
size: $(OBJDIR) $(TARGET_ELF)
|
||||||
$(SIZE) $(TARGET_HEX)
|
$(SIZE) $(SIZEFLAGS) $(TARGET_ELF)
|
||||||
|
|
||||||
show_boards:
|
show_boards:
|
||||||
$(PARSE_BOARD_CMD) --boards
|
$(PARSE_BOARD_CMD) --boards
|
||||||
|
|
Loading…
Reference in a new issue