summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-16 04:53:33 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-16 04:56:23 +0300
commit6aa7c805cc2812dafb396afcd909bbc99505c99b (patch)
tree24423727f478829c9bbfd443f1bede5d4deaf9b3 /esp8266
parentbcd0e9a7fa9ca9fa86a5c9ffc1855b74f5cbc6c7 (diff)
downloadmicropython-6aa7c805cc2812dafb396afcd909bbc99505c99b.tar.gz
micropython-6aa7c805cc2812dafb396afcd909bbc99505c99b.zip
esp8266: Cache Xtensa-built libaxtls.a in local build dir.
Allows to build the library variant for other archs in parallel.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 6ad7117f13..35a609b3d2 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -154,7 +154,7 @@ SRC_QSTR += $(SRC_C) $(STM_SRC_C) $(EXTMOD_SRC_C) $(DRIVERS_SRC_C)
# Append any auto-generated sources that are needed by sources listed in SRC_QSTR
SRC_QSTR_AUTO_DEPS +=
-all: $(BUILD)/firmware-combined.bin
+all: $(BUILD)/libaxtls.a $(BUILD)/firmware-combined.bin
CONFVARS_FILE = $(BUILD)/confvars
@@ -230,8 +230,11 @@ $(BUILD)/firmware.elf: $(OBJ)
include ../py/mkrules.mk
-axtls:
+axtls: $(BUILD)/libaxtls.a
+
+$(BUILD)/libaxtls.a:
cd ../lib/axtls; cp config/upyconfig config/.config
cd ../lib/axtls; make oldconfig -B
cd ../lib/axtls; make clean
cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)" AR="$(AR)" CFLAGS_EXTRA="$(CFLAGS_XTENSA) -Dabort=abort_ -DRT_MAX_PLAIN_LENGTH=1024 -DRT_EXTRA=3072"
+ cp ../lib/axtls/_stage/libaxtls.a $@