File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ SRC_QSTR += $(SRC_C) $(STM_SRC_C) $(EXTMOD_SRC_C) $(DRIVERS_SRC_C)
154154# Append any auto-generated sources that are needed by sources listed in SRC_QSTR
155155SRC_QSTR_AUTO_DEPS +=
156156
157- all : $(BUILD ) /firmware-combined.bin
157+ all : $(BUILD ) /libaxtls.a $( BUILD ) / firmware-combined.bin
158158
159159CONFVARS_FILE = $(BUILD ) /confvars
160160
@@ -230,8 +230,11 @@ $(BUILD)/firmware.elf: $(OBJ)
230230
231231include ../py/mkrules.mk
232232
233- axtls :
233+ axtls : $(BUILD ) /libaxtls.a
234+
235+ $(BUILD ) /libaxtls.a :
234236 cd ../lib/axtls; cp config/upyconfig config/.config
235237 cd ../lib/axtls; make oldconfig -B
236238 cd ../lib/axtls; make clean
237239 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"
240+ cp ../lib/axtls/_stage/libaxtls.a $@
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ifeq ($(MICROPY_PY_USSL),1)
2323CFLAGS_MOD += -DMICROPY_PY_USSL=1
2424ifeq ($(MICROPY_SSL_AXTLS ) ,1)
2525CFLAGS_MOD += -DMICROPY_SSL_AXTLS=1 -I../lib/axtls/ssl -I../lib/axtls/crypto -I../lib/axtls/config
26- LDFLAGS_MOD += -L../lib/axtls/_stage -laxtls
26+ LDFLAGS_MOD += -Lbuild -laxtls
2727endif
2828endif
2929
You can’t perform that action at this time.
0 commit comments