summaryrefslogtreecommitdiff
path: root/src/arch/esp8266
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/esp8266
parentdd4cb31da6c7768dea7a62057057d5cd0f2bf8e2 (diff)
add machine-readable binary size output ("make attributes")
Diffstat (limited to 'src/arch/esp8266')
-rw-r--r--src/arch/esp8266/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index ecb5a7d..89c244a 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -11,6 +11,7 @@ AR = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-ar
LD = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-gcc
OBJCOPY = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-objcopy
OBJDUMP = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-objdump
+SIZE = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-size
ifeq (${aspectc}, 1)
CXX = ag++ -r build/repo.acp -v 0 --c_compiler ${TOOLCHAIN_BASE}/xtensa-lx106-elf-g++ -p . --Xcompiler
@@ -110,4 +111,7 @@ arch_info:
@echo "Counter Overflow: 4294967296/0"
@echo "Monitor: ${SERIAL_PORT} 115200"
-.PHONY: arch_clean arch_help arch_info monitor program
+attributes: build/system.elf
+ ${QUIET}script/size.py ${SIZE} text,irom0.text data,bss
+
+.PHONY: arch_clean arch_help arch_info attributes monitor program