summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/esp8266/Makefile.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index 7bbc2f1..b796bc4 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -72,10 +72,6 @@ endif
${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c}
${QUIET}${OBJCOPY} --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $@
-build/system.ar: ${OBJECTS}
- ${QUIET}mkdir -p build
- ${QUIET}${AR} cru $@ ${OBJECTS}
-
build/system.elf: build/system.ar
${QUIET}${CC} -L${SDK_BASE}/lib -T${SDK_BASE}/lib/eagle.app.v6-derf.ld ${LDFLAGS} \
-Wl,--gc-sections \
@@ -83,6 +79,10 @@ build/system.elf: build/system.ar
-lmain $< -Wl,--end-group -o $@
${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/system.ar: ${OBJECTS}
+ ${QUIET}mkdir -p build
+ ${QUIET}${AR} cru $@ ${OBJECTS}
+
build/0x00000.bin: build/system.elf
${ESPTOOL} --chip esp8266 elf2image -o build/ $<