File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ if(CONFIG_OPENTHREAD_SOURCES)
2323 set (OPENTHREAD_UTILS_DST_DIR "${NRFXLIB_DIR} /openthread/include/utils" )
2424 set (OPENTHREAD_SYSTEM_H "${ZEPHYR_OPENTHREAD_MODULE_DIR} /examples/platforms/openthread-system.h" )
2525 set (OPENTHREAD_UART_H "${ZEPHYR_OPENTHREAD_MODULE_DIR} /examples/platforms/utils/uart.h" )
26- set (NRF_SECURITY_MBEDTLS_CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR} /../../../nrf/subsys/nrf_security/src/include /generated /${CONFIG_MBEDTLS_CFG_FILE} )
26+
27+ if (CONFIG_BUILD_WITH_TFM)
28+ set (NRF_SECURITY_MBEDTLS_CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR} /../../../../generated /interface_nrf_security_psa/${CONFIG_MBEDTLS_CFG_FILE} )
29+ else ()
30+ set (NRF_SECURITY_MBEDTLS_CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR} /../../../../generated /library_nrf_security_psa/${CONFIG_MBEDTLS_CFG_FILE} )
31+ endif ()
2732
2833 if (CONFIG_OPENTHREAD_BUILD_OUTPUT_STRIPPED)
2934 foreach (target IN LISTS OPENTHREAD_LIBRARIES)
Original file line number Diff line number Diff line change @@ -103,7 +103,11 @@ function(get_active_mbedtls_configs_from_file fileName returnMatch1List)
103103endfunction ()
104104
105105function (check_openthread_dependencies ot_lib_nrf_security_mbedtls_config_file)
106- set (nrf_security_mbedtls_config_file "${CMAKE_CURRENT_BINARY_DIR} /../../../nrf/subsys/nrf_security/src/include/generated/${CONFIG_MBEDTLS_CFG_FILE} " )
106+ if (CONFIG_BUILD_WITH_TFM)
107+ set (nrf_security_mbedtls_config_file ${CMAKE_CURRENT_BINARY_DIR} /../../../../generated /interface_nrf_security_psa/${CONFIG_MBEDTLS_CFG_FILE} )
108+ else ()
109+ set (nrf_security_mbedtls_config_file ${CMAKE_CURRENT_BINARY_DIR} /../../../../generated /library_nrf_security_psa/${CONFIG_MBEDTLS_CFG_FILE} )
110+ endif ()
107111 get_active_mbedtls_configs_from_file(${nrf_security_mbedtls_config_file} mbedtls_conf_list)
108112 get_active_mbedtls_configs_from_file(${ot_lib_nrf_security_mbedtls_config_file} ot_mbedtls_conf_list)
109113
You can’t perform that action at this time.
0 commit comments