summaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2022-11-08 09:28:52 +0100
committerDamien George <damien@micropython.org>2022-11-08 23:50:17 +1100
commitecd4d54391b908a55f7ac53fd0196972c96a04c9 (patch)
tree761b9a77cfa4604c7df992d3c9d8f59365a9d053 /extmod
parentebb1a4ecb05ccf8347b40dee5c79940d574fe2b7 (diff)
extmod/extmod.cmake: Allow overriding the default MBEDTLS_CONFIG_FILE.
Diffstat (limited to 'extmod')
-rw-r--r--extmod/extmod.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/extmod/extmod.cmake b/extmod/extmod.cmake
index 954bfc7e9..2207a951a 100644
--- a/extmod/extmod.cmake
+++ b/extmod/extmod.cmake
@@ -187,8 +187,12 @@ if(MICROPY_SSL_MBEDTLS)
${MICROPY_LIB_MBEDTLS_DIR}/library/xtea.c
)
+ if(NOT MBEDTLS_CONFIG_FILE)
+ set(MBEDTLS_CONFIG_FILE "${MICROPY_PORT_DIR}/mbedtls/mbedtls_config.h")
+ endif()
+
target_compile_definitions(micropy_lib_mbedtls INTERFACE
- MBEDTLS_CONFIG_FILE="${MICROPY_PORT_DIR}/mbedtls/mbedtls_config.h"
+ MBEDTLS_CONFIG_FILE="${MBEDTLS_CONFIG_FILE}"
)
list(APPEND MICROPY_INC_CORE