Skip to content

Commit 7188111

Browse files
committed
extmod/extmod.mk: Set default mbedtls config file in extmod Makefile.
1 parent eefd946 commit 7188111

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

extmod/extmod.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_DIR)/,\
131131
)
132132
else ifeq ($(MICROPY_SSL_MBEDTLS),1)
133133
MBEDTLS_DIR = lib/mbedtls
134+
MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config.h\"
134135
GIT_SUBMODULES += $(MBEDTLS_DIR)
136+
CFLAGS_EXTMOD += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE)
135137
CFLAGS_EXTMOD += -DMICROPY_SSL_MBEDTLS=1 -I$(TOP)/$(MBEDTLS_DIR)/include
136138
SRC_THIRDPARTY_C += lib/mbedtls_errors/mp_mbedtls_errors.c
137139
SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR)/library/,\

ports/mimxrt/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ endif
345345
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
346346
ifeq ($(MICROPY_PY_LWIP),1)
347347
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
350349
endif
351350

352351
CFLAGS += $(CFLAGS_EXTRA)

ports/stm32/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,6 @@ USBDEV_SRC_C += $(addprefix $(USBDEV_DIR)/,\
474474
)
475475

476476
ifeq ($(MICROPY_SSL_MBEDTLS),1)
477-
MBEDTLS_CONFIG_FILE ?= '"mbedtls/mbedtls_config.h"'
478-
CFLAGS += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE)
479477
LIB_SRC_C += mbedtls/mbedtls_port.c
480478
endif
481479

ports/unix/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ endif
134134
ifeq ($(MICROPY_PY_USSL),1)
135135
ifeq ($(MICROPY_SSL_AXTLS),1)
136136

137-
endif
138-
ifeq ($(MICROPY_SSL_MBEDTLS),1)
139-
CFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"'
140137
endif
141138
endif
142139

0 commit comments

Comments
 (0)