diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2022-11-08 09:28:52 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-11-08 23:50:17 +1100 |
| commit | ecd4d54391b908a55f7ac53fd0196972c96a04c9 (patch) | |
| tree | 761b9a77cfa4604c7df992d3c9d8f59365a9d053 /extmod/extmod.cmake | |
| parent | ebb1a4ecb05ccf8347b40dee5c79940d574fe2b7 (diff) | |
extmod/extmod.cmake: Allow overriding the default MBEDTLS_CONFIG_FILE.
Diffstat (limited to 'extmod/extmod.cmake')
| -rw-r--r-- | extmod/extmod.cmake | 6 |
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 |
