diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt index aaf93ba38d..87b9a1b5a7 100644 --- a/programs/CMakeLists.txt +++ b/programs/CMakeLists.txt @@ -8,7 +8,7 @@ if (NOT WIN32) endif() add_subdirectory(hash) add_subdirectory(pkey) -add_subdirectory(psa) +add_subdirectory(../tf-psa-crypto/programs/psa ../tf-psa-crypto/programs/psa) add_subdirectory(random) add_subdirectory(ssl) add_subdirectory(test) diff --git a/tf-psa-crypto/programs/psa/CMakeLists.txt b/tf-psa-crypto/programs/psa/CMakeLists.txt index 3c20a70993..3e5daca973 100644 --- a/tf-psa-crypto/programs/psa/CMakeLists.txt +++ b/tf-psa-crypto/programs/psa/CMakeLists.txt @@ -14,14 +14,14 @@ if(GEN_FILES) ${CMAKE_CURRENT_BINARY_DIR}/psa_constant_names_generated.c COMMAND ${MBEDTLS_PYTHON_EXECUTABLE} - ${CMAKE_CURRENT_SOURCE_DIR}/../../scripts/generate_psa_constants.py + ${CMAKE_CURRENT_SOURCE_DIR}/../../../scripts/generate_psa_constants.py ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY - ${CMAKE_CURRENT_SOURCE_DIR}/../.. + ${CMAKE_CURRENT_SOURCE_DIR}/../../.. DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/../../scripts/generate_psa_constants.py - ${CMAKE_CURRENT_SOURCE_DIR}/../../tf-psa-crypto/include/psa/crypto_values.h - ${CMAKE_CURRENT_SOURCE_DIR}/../../tf-psa-crypto/include/psa/crypto_extra.h + ${CMAKE_CURRENT_SOURCE_DIR}/../../../scripts/generate_psa_constants.py + ${CMAKE_CURRENT_SOURCE_DIR}/../../../tf-psa-crypto/include/psa/crypto_values.h + ${CMAKE_CURRENT_SOURCE_DIR}/../../../tf-psa-crypto/include/psa/crypto_extra.h ) else() link_to_source(psa_constant_names_generated.c)