File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ CFLAGS_MOD += -DMICROPY_PY_USSL=1
24
24
ifeq ($(MICROPY_SSL_AXTLS ) ,1)
25
25
CFLAGS_MOD += -DMICROPY_SSL_AXTLS=1 -I../lib/axtls/ssl -I../lib/axtls/crypto -I../lib/axtls/config
26
26
LDFLAGS_MOD += -Lbuild -laxtls
27
+ else ifeq ($(MICROPY_SSL_MBEDTLS),1)
28
+ # Can be overriden by ports which have "builtin" mbedTLS
29
+ MICROPY_SSL_MBEDTLS_INCLUDE ?= ../lib/mbedtls/include
30
+ CFLAGS_MOD += -DMICROPY_SSL_MBEDTLS=1 -I$(MICROPY_SSL_MBEDTLS_INCLUDE )
31
+ LDFLAGS_MOD += -L../lib/mbedtls/library -lmbedx509 -lmbedtls -lmbedcrypto
27
32
endif
28
33
endif
29
34
@@ -212,6 +217,7 @@ PY_O_BASENAME = \
212
217
../extmod/machine_i2c.o \
213
218
../extmod/machine_spi.o \
214
219
../extmod/modussl_axtls.o \
220
+ ../extmod/modussl_mbedtls.o \
215
221
../extmod/modurandom.o \
216
222
../extmod/modwebsocket.o \
217
223
../extmod/modwebrepl.o \
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ MICROPY_PY_FFI = 1
29
29
# ussl module requires axtls
30
30
MICROPY_PY_USSL = 1
31
31
MICROPY_SSL_AXTLS = 1
32
+ MICROPY_SSL_MBEDTLS = 0
32
33
33
34
# jni module requires JVM/JNI
34
35
MICROPY_PY_JNI = 0
You can’t perform that action at this time.
0 commit comments