From d2c284682065feb857a6e7b0921ede686d0b8a98 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 8 Nov 2022 09:02:05 +0100 Subject: [PATCH] stm32/Makefile: Allow overriding the default MBEDTLS_CONFIG_FILE. --- ports/stm32/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index e99d386e49..141aadcf38 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -474,7 +474,8 @@ USBDEV_SRC_C += $(addprefix $(USBDEV_DIR)/,\ ) ifeq ($(MICROPY_SSL_MBEDTLS),1) -CFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"' +MBEDTLS_CONFIG_FILE ?= '"mbedtls/mbedtls_config.h"' +CFLAGS += -DMBEDTLS_CONFIG_FILE=$(MBEDTLS_CONFIG_FILE) LIB_SRC_C += mbedtls/mbedtls_port.c endif