8000 py/py.mk: Add support for building modussl_mbedtls. · sparkfun/circuitpython@9cc8ec8 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9cc8ec8

Browse files
committed
py/py.mk: Add support for building modussl_mbedtls.
1 parent 6d310a5 commit 9cc8ec8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

py/py.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ CFLAGS_MOD += -DMICROPY_PY_USSL=1
2424
ifeq ($(MICROPY_SSL_AXTLS),1)
2525
CFLAGS_MOD += -DMICROPY_SSL_AXTLS=1 -I../lib/axtls/ssl -I../lib/axtls/crypto -I../lib/axtls/config
2626
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
2732
endif
2833
endif
2934

@@ -212,6 +217,7 @@ PY_O_BASENAME = \
212217
../extmod/machine_i2c.o \
213218
../extmod/machine_spi.o \
214219
../extmod/modussl_axtls.o \
220+
../extmod/modussl_mbedtls.o \
215221
../extmod/modurandom.o \
216222
../extmod/modwebsocket.o \
217223
../extmod/modwebrepl.o \

unix/mpconfigport.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ MICROPY_PY_FFI = 1
2929
# ussl module requires axtls
3030
MICROPY_PY_USSL = 1
3131
MICROPY_SSL_AXTLS = 1
32+
MICROPY_SSL_MBEDTLS = 0
3233

3334
# jni module requires JVM/JNI
3435
MICROPY_PY_JNI = 0

0 commit comments

Comments
 (0)
0