extmod/extmod.mk: Set default mbedtls config file in extmod Makefile.
This commit is contained in:
parent
eefd946e60
commit
71881116e6
|
@ -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/,\
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue