From 470964ffdd274667431dfb4ec21eed67bcf45d12 Mon Sep 17 00:00:00 2001 From: Ashish Sharma Date: Mon, 2 Feb 2026 12:30:14 +0800 Subject: [PATCH] fix: make the PSA compile definitions public --- components/mbedtls/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index 1e692820554..c7b6ee10e37 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -225,7 +225,7 @@ if(NOT ${IDF_TARGET} STREQUAL "linux") ) target_link_libraries(tfpsacrypto PRIVATE "$<$:idf::nvs_flash>") # Define compile definition to indicate ESP-IDF PSA ITS implementation is available - target_compile_definitions(tfpsacrypto PRIVATE "$<$:ESP_PSA_ITS_AVAILABLE>") + target_compile_definitions(tfpsacrypto PUBLIC "$<$:ESP_PSA_ITS_AVAILABLE>") else() # For v1: check if component is in build before adding source and linking idf_build_get_property(build_components BUILD_COMPONENTS) @@ -233,7 +233,7 @@ if(NOT ${IDF_TARGET} STREQUAL "linux") target_sources(tfpsacrypto PRIVATE "${COMPONENT_DIR}/port/psa_crypto_storage/esp_psa_its.c") idf_component_get_property(nvs_flash_lib nvs_flash COMPONENT_LIB) target_link_libraries(tfpsacrypto PRIVATE ${nvs_flash_lib}) - target_compile_definitions(tfpsacrypto PRIVATE ESP_PSA_ITS_AVAILABLE) + target_compile_definitions(tfpsacrypto PUBLIC ESP_PSA_ITS_AVAILABLE) endif() endif() endif()