From bdff4289c8d10f287f6b2ca562730b17b295c8dc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 Jan 2021 22:02:54 +0100 Subject: add more cat targets and size output --- src/arch/esp8266/Makefile.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/arch/esp8266/Makefile.inc') diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc index 6a0e476..adc7a66 100644 --- a/src/arch/esp8266/Makefile.inc +++ b/src/arch/esp8266/Makefile.inc @@ -81,6 +81,7 @@ build/system.elf: build/system.ar -Wl,--gc-sections \ -Wl,--start-group -lc -lgcc -lhal -lpp -lphy -lnet80211 -llwip -lwpa \ -lmain $< -Wl,--end-group -o $@ + ${QUIET}${SIZE} build/system.elf | tail -n1 | awk '{ print " ROM: " ($$1+$$2) " (" int(($$1+$$2)*100/49152) "%) RAM: " ($$2 + $$3) " (" int(($$2+$$3)*100/4096) "%)" }' build/0x00000.bin: build/system.elf ${ESPTOOL} --chip esp8266 elf2image -o build/ $< @@ -97,6 +98,9 @@ arch_clean: monitor: screen ${SERIAL_PORT} 115200 +cat: + ${QUIET}script/cat.py ${SERIAL_PORT} 115200 80000000 0 + arch_help: @echo "esp8266 coding advice:" @echo " The ESP8266 SDK does not give full hardware control." @@ -117,4 +121,4 @@ arch_info: attributes: build/system.elf ${QUIET}script/size.py ${SIZE} text,irom0.text data,bss -.PHONY: arch_clean arch_help arch_info attributes monitor program +.PHONY: arch_clean arch_help arch_info attributes cat monitor program -- cgit v1.2.3