From 315f0744b249cf483b9ce9a318066d2a54e21c25 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Sep 2020 10:42:43 +0200 Subject: add machine-readable binary size output ("make attributes") --- src/arch/esp8266/Makefile.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/arch/esp8266') 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 -- cgit v1.2.3