diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2022-11-09 18:35:40 +0100 |
|---|---|---|
| committer | iabdalkader <i.abdalkader@gmail.com> | 2022-11-09 18:43:13 +0100 |
| commit | 71881116e6442274a7c12967f02dea00eeb7568c (patch) | |
| tree | 33a0c14f1c6d6cb983f8e0dc8b6a7526ae8e713e | |
| parent | eefd946e60aba3ac61c7bfbd0272d07be289e3f3 (diff) | |
extmod/extmod.mk: Set default mbedtls config file in extmod Makefile.
| -rw-r--r-- | extmod/extmod.mk | 2 | ||||
| -rw-r--r-- | ports/mimxrt/Makefile | 3 | ||||
| -rw-r--r-- | ports/stm32/Makefile | 2 | ||||
| -rw-r--r-- | ports/unix/Makefile | 3 |
4 files changed, 3 insertions, 7 deletions
diff --git a/extmod/extmod.mk b/extmod/extmod.mk index c087e13cb..08138ead5 100644 --- a/extmod/extmod.mk +++ b/extmod/extmod.mk @@ -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/,\ diff --git a/ports/mimxrt/Makefile b/ports/mimxrt/Makefile index ae8cf16f1..c65e2a433 100644 --- a/ports/mimxrt/Makefile +++ b/ports/mimxrt/Makefile @@ -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) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 141aadcf3..07d366bfe 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -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 diff --git a/ports/unix/Makefile b/ports/unix/Makefile index 360cdd6f8..cd18a6ed1 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -135,9 +135,6 @@ 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 # If the variant enables it, enable modbluetooth. |
