Add a helper to calculate the size of every function in the firmware

pull/34/head
Jesse Vincent 8 years ago
parent 00a21663bc
commit 8c7c1fe286

@ -37,6 +37,7 @@ ARDUINO_BUILDER_PATH=$(ARDUINO_PATH)/arduino-builder
AVRDUDE_PATH=$(ARDUINO_TOOLS_PATH)/avr/bin/avrdude
AVRDUDE_CONF_PATH=$(ARDUINO_TOOLS_PATH)/avr/etc/avrdude.conf
AVR_SIZE_PATH=$(ARDUINO_TOOLS_PATH)/avr/bin/avr-size
AVR_NM_PATH=$(ARDUINO_TOOLS_PATH)/avr/bin/avr-nm
@ -111,6 +112,9 @@ compile: dirs
size: compile
$(AVR_SIZE_PATH) -C --mcu=$(MCU) $(ELF_FILE_PATH)
size-map: compile
$(AVR_NM_PATH) --size-sort -C -r $(ELF_FILE_PATH)
hex-with-bootloader: compile
@cat $(HEX_FILE_PATH) | awk '/^:00000001FF/ == 0' > $(HEX_FILE_WITH_BOOTLOADER_PATH)

Loading…
Cancel
Save