[AVR] Target "firmware-size" added

This commit is contained in:
Bertrand Songis
2016-04-10 12:44:53 +02:00
parent b7939dc742
commit 66bd674ccf
+6
View File
@@ -1045,6 +1045,12 @@ else()
DEPENDS firmware
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
add_custom_target(firmware-size
COMMAND avr-size --format=avr --mcu=${MCU} firmware.elf
DEPENDS firmware
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
endif()
if(CPU_FAMILY STREQUAL STM32)