File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_DIR)/,\
131
131
)
132
132
else ifeq ($(MICROPY_SSL_MBEDTLS),1)
133
133
MBEDTLS_DIR = lib/mbedtls
134
+ MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config.h\"
134
135
GIT_SUBMODULES += $(MBEDTLS_DIR )
136
+ CFLAGS_EXTMOD += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE )
135
137
CFLAGS_EXTMOD += -DMICROPY_SSL_MBEDTLS=1 -I$(TOP ) /$(MBEDTLS_DIR ) /include
136
138
SRC_THIRDPARTY_C += lib/mbedtls_errors/mp_mbedtls_errors.c
137
139
SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR ) /library/,\
Original file line number Diff line number Diff line change @@ -345,8 +345,7 @@ endif
345
345
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
346
346
ifeq ($(MICROPY_PY_LWIP ) ,1)
347
347
CFLAGS += \
348
- -DFSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE=1 \
349
- -DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"'
348
+ -DFSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE=1
350
349
endif
351
350
352
351
CFLAGS += $(CFLAGS_EXTRA )
Original file line number Diff line number Diff line change @@ -474,8 +474,6 @@ USBDEV_SRC_C += $(addprefix $(USBDEV_DIR)/,\
474
474
)
475
475
476
476
ifeq ($(MICROPY_SSL_MBEDTLS ) ,1)
477
- MBEDTLS_CONFIG_FILE ?= '"mbedtls/mbedtls_config.h"'
478
- CFLAGS += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE )
479
477
LIB_SRC_C += mbedtls/mbedtls_port.c
480
478
endif
481
479
Original file line number Diff line number Diff line change @@ -134,9 +134,6 @@ endif
134
134
ifeq ($(MICROPY_PY_USSL ) ,1)
135
135
ifeq ($(MICROPY_SSL_AXTLS ) ,1)
136
136
137
- endif
138
- ifeq ($(MICROPY_SSL_MBEDTLS ) ,1)
139
- CFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"'
140
137
endif
141
138
endif
142
139
You can’t perform that action at this time.
0 commit comments