extmod/extmod.mk: Set default mbedtls config file in extmod Makefile.

This commit is contained in:
iabdalkader 2022-11-09 18:35:40 +01:00
parent eefd946e60
commit 71881116e6
4 changed files with 3 additions and 7 deletions

View File

@ -131,7 +131,9 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_DIR)/,\
)
else ifeq ($(MICROPY_SSL_MBEDTLS),1)
MBEDTLS_DIR = lib/mbedtls
MBEDTLS_CONFIG_FILE ?= \"mbedtls/mbedtls_config.h\"
GIT_SUBMODULES += $(MBEDTLS_DIR)
CFLAGS_EXTMOD += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE)
CFLAGS_EXTMOD += -DMICROPY_SSL_MBEDTLS=1 -I$(TOP)/$(MBEDTLS_DIR)/include
SRC_THIRDPARTY_C += lib/mbedtls_errors/mp_mbedtls_errors.c
SRC_THIRDPARTY_C += $(addprefix $(MBEDTLS_DIR)/library/,\

View File

@ -345,8 +345,7 @@ endif
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
ifeq ($(MICROPY_PY_LWIP),1)
CFLAGS += \
-DFSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE=1 \
-DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"'
-DFSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE=1
endif
CFLAGS += $(CFLAGS_EXTRA)

View File

@ -474,8 +474,6 @@ USBDEV_SRC_C += $(addprefix $(USBDEV_DIR)/,\
)
ifeq ($(MICROPY_SSL_MBEDTLS),1)
MBEDTLS_CONFIG_FILE ?= '"mbedtls/mbedtls_config.h"'
CFLAGS += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE)
LIB_SRC_C += mbedtls/mbedtls_port.c
endif

View File

@ -134,9 +134,6 @@ endif
ifeq ($(MICROPY_PY_USSL),1)
ifeq ($(MICROPY_SSL_AXTLS),1)
endif
ifeq ($(MICROPY_SSL_MBEDTLS),1)
CFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"'
endif
endif