summaryrefslogtreecommitdiff
path: root/src/arch/stm32f446re-nucleo
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-09-07 10:42:43 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-09-07 10:42:43 +0200
commit315f0744b249cf483b9ce9a318066d2a54e21c25 (patch)
treeaf4efd2ca27e9545de4678f9abf021c0a6bfbdc9 /src/arch/stm32f446re-nucleo
parentdd4cb31da6c7768dea7a62057057d5cd0f2bf8e2 (diff)
add machine-readable binary size output ("make attributes")
Diffstat (limited to 'src/arch/stm32f446re-nucleo')
-rw-r--r--src/arch/stm32f446re-nucleo/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc
index e5f4641..70384b5 100644
--- a/src/arch/stm32f446re-nucleo/Makefile.inc
+++ b/src/arch/stm32f446re-nucleo/Makefile.inc
@@ -14,6 +14,7 @@ CC = arm-none-eabi-gcc
CXX = arm-none-eabi-g++
OBJCOPY = arm-none-eabi-objcopy
OBJDUMP = arm-none-eabi-objdump
+SIZE = arm-none-eabi-size
CXX_TARGETS += src/arch/stm32f446re-nucleo/arch.cc
@@ -125,4 +126,7 @@ arch_info:
@echo "Counter Overflow: 65536/255"
@echo "Monitor: /dev/${SERIAL_PORT} 115200"
-.PHONY: arch_clean arch_help arch_info monitor program
+attributes: build/system.elf
+ ${QUIET}script/size.py ${SIZE} text,data data,bss
+
+.PHONY: arch_clean arch_help arch_info attributes monitor program