Hello All,
I wanted to run regression and PSA API tests before Upstreaming ST patches to community.
However I had issue with PSA API tests.
Note, that I can build Regression tests without any problem.
I use the main branch and latest SHA1 I 've the following error: $ build_L56_psa_gnu_s -- The C compiler identification is GNU 15.2.0 CMake Error at C:/TFM_L56/tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:10 (include): include could not find requested file:
remote_library
CMake Error at C:/TFM_L56/tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:15 (fetch_remote_library): Unknown CMake command "fetch_remote_library".
-- Configuring incomplete, errors occurred! ninja: error: loading 'build.ninja': The system cannot find the file specified.
The cmake command is : cmake -S $TFM_work_dir_L56/tf-m-tests/tests_psa_arch/spe -B $L56_build_s -GNinja -DTFM_PLATFORM=stm/stm32l562e_dk -DTFM_TOOLCHAIN_FILE=$L56_tfm_src/toolchain_GNUARM.cmake -DCONFIG_TFM_SOURCE_PATH=$L56_tfm_src -DTFM_PSA_API=ON -DTEST_PSA_API=PROTECTED_STORAGE;
c:\TFM_L56\tf-m-tests\tests_psa_arch\fetch_repo\CMakeLists.txt content is :
include(remote_library)
set(PSA_ARCH_TESTS_PATH "DOWNLOAD" CACHE PATH "Path to PSA arch test repository used for SPE build") set(PSA_ARCH_TESTS_VERSION "v24.03_API1.6_CRYPTO_1.1.0" CACHE STRING "The version of PSA arch tests to use")
fetch_remote_library( LIB_NAME psa_arch_tests LIB_SOURCE_PATH_VAR PSA_ARCH_TESTS_PATH LIB_BASE_DIR ${CMAKE_BINARY_DIR}/fetch_repo LIB_PATCH_DIR ${CMAKE_CURRENT_LIST_DIR} LIB_FORCE_PATCH PSA_ARCH_TESTS_FORCE_PATCH FETCH_CONTENT_ARGS GIT_REPOSITORY https://github.com/ARM-software/psa-arch-tests.git GIT_TAG ${PSA_ARCH_TESTS_VERSION} GIT_SHALLOW TRUE GIT_PROGRESS TRUE )
Note In case I use v2.1.3 TFM tag with associated tf-m-tests and mcuboot SHA1 I can build the PSA API binaries without this error.
Does someone can provide me ideas / tracks to solve my problem?
Thank you for your time, Ronan,
[Shape, rectangle Description automatically generated]
Ronan GABOU | Tel: +33 1 58 07 80 19 MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
[cid:image002.png@01DC735C.C928EC00]https://www.facebook.com/STMicroelectronics.NV/ [cid:image003.png@01DC735C.C928EC00] https://twitter.com/st_world [cid:image004.png@01DC735C.C928EC00] https://www.linkedin.com/company/stmicroelectronics/ [cid:image005.png@01DC735C.C928EC00] https://www.instagram.com/stmicroelectronics.nv/ [cid:image006.png@01DC735C.C928EC00] https://www.youtube.com/user/STonlineMedia ST online: www.st.com online: www.st.com