summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/esp8266/Makefile.inc2
-rw-r--r--src/arch/stm32f446re-nucleo/Makefile.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index adc7a66..18877ee 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -81,7 +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) "%)" }'
+ ${QUIET}${SIZE} build/system.elf | tail -n1 | awk '{ print " ROM: " ($$1+$$2) " (" int(($$1+$$2)*100/4194304) "%) RAM: " ($$2 + $$3) " (" int(($$2+$$3)*100/81920) "%)" }'
build/0x00000.bin: build/system.elf
${ESPTOOL} --chip esp8266 elf2image -o build/ $<
diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc
index f5ca344..dd0de00 100644
--- a/src/arch/stm32f446re-nucleo/Makefile.inc
+++ b/src/arch/stm32f446re-nucleo/Makefile.inc
@@ -98,7 +98,7 @@ build/system.elf: ${OBJECTS} ext/libopencm3/lib/libopencm3_stm32f4.a
-T src/arch/stm32f446re-nucleo/stm32f446.ld \
${OBJECTS} -lopencm3_stm32f4 \
-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) "%)" }'
+ ${QUIET}${SIZE} build/system.elf | tail -n1 | awk '{ print " ROM: " ($$1+$$2) " (" int(($$1+$$2)*100/524288) "%) RAM: " ($$2 + $$3) " (" int(($$2+$$3)*100/131072) "%)" }'
program: build/system.elf
openocd -c 'source [find interface/stlink-v2-1.cfg]' \