summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-05-21 18:33:53 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-05-21 18:34:27 +0200
commit6424beabacbbf4baa3c961d56d3ed462de1270f2 (patch)
treed0642180a4fb201bdbe3cff7a619236d72402040 /src
parent493424721011bbb0c292f106266bd2ce330ac78c (diff)
esp8266: build system.elf by default
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/ $<