MCUXpresso_MIMXRT1052xxxxB/rtos/freertos/corepkcs11/middleware_freertos_corepkcs11_template.cmake
Yilin Sun 6baf4427ce
Updated to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-18 23:15:10 +08:00

25 lines
767 B
CMake

# Add set(CONFIG_USE_middleware_freertos_corepkcs11_template true) in config.cmake to use this component
include_guard(GLOBAL)
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
if(CONFIG_USE_middleware_freertos-kernel)
add_config_file(${CMAKE_CURRENT_LIST_DIR}/template/core_pkcs11_config.h ${CMAKE_CURRENT_LIST_DIR}/template middleware_freertos_corepkcs11_template)
if(CONFIG_USE_COMPONENT_CONFIGURATION)
message("===>Import configuration from ${CMAKE_CURRENT_LIST_FILE}")
target_compile_definitions(${MCUX_SDK_PROJECT_NAME} PUBLIC
-DMBEDTLS_THREADING_ALT
-DMBEDTLS_THREADING_C
)
endif()
else()
message(SEND_ERROR "middleware_freertos_corepkcs11_template dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
endif()