File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,11 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_DIR)/,\
242242 crypto/sha1.c \
243243 )
244244else ifeq ($(MICROPY_SSL_MBEDTLS),1)
245+ ifeq (${MBEDTLS_PREBUILT},1) # Use prebuilt mbedtls
246+ MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config_port.h\"
247+ CFLAGS_EXTMOD += -DMICROPY_SSL_MBEDTLS=1
248+ CFLAGS_EXTMOD += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE )
249+ else # Use mbedtls submodule
245250MBEDTLS_DIR = lib/mbedtls
246251MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config_port.h\"
247252GIT_SUBMODULES += $(MBEDTLS_DIR )
@@ -329,6 +334,7 @@ SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR)/library/,\
329334 )
330335endif
331336endif
337+ endif
332338
333339# ###############################################################################
334340# lwip
You can’t perform that action at this time.
0 commit comments