extmod/extmod.cmake: Allow overriding the default MBEDTLS_CONFIG_FILE.
This commit is contained in:
parent
ebb1a4ecb0
commit
ecd4d54391
|
@ -187,8 +187,12 @@ if(MICROPY_SSL_MBEDTLS)
|
||||||
${MICROPY_LIB_MBEDTLS_DIR}/library/xtea.c
|
${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
|
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
|
list(APPEND MICROPY_INC_CORE
|
||||||
|
|
Loading…
Reference in New Issue