Hello All,
Thank you for your help.
I confirm that instead of copy paste from TFM to tf-m-test :
remote_library.cmake file
I changed
from
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../../cmake)
include(collect_args)
to
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../../cmake)
list(APPEND CMAKE_MODULE_PATH ${CONFIG_TFM_SOURCE_PATH}/cmake)
include(collect_args)
In : c:\TFM_L56\tf-m-tests\tests_psa_arch\spe\CMakeLists.txt
Also solve my build issue.
Are you waiting for me to do something more for this topic or it is now internal to ARM ?
Thank you
Ronan,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online:
www.st.com
From: Antonio De Angelis <Antonio.DeAngelis@arm.com>
Sent: Tuesday, January 6, 2026 7:53 PM
To: Chris.Brand@infineon.com; Nicola Mazzucato <Nicola.Mazzucato@arm.com>; Ronan GABOU <Ronan.GABOU@st.com>; tf-m@lists.trustedfirmware.org
Cc: Anton Komlev <Anton.Komlev@arm.com>; nd <nd@arm.com>
Subject: Re: [TF-M] Re: : PSA API test build issue on main branch TFM
You’re right passing any dependency path should be optional and if not passed explicitly it should be fetched through FetchRepo (and patched on the fly as usual with the .patch files we keep) so if
that doesn’t work it means we have a bug that has to be fixed.
Thanks,
Antonio
Sent from Outlook for Mac
From:
Chris.Brand--- via TF-M <tf-m@lists.trustedfirmware.org>
Date: Tuesday, 6 January 2026 at 17:15
To: Nicola Mazzucato <Nicola.Mazzucato@arm.com>,
Ronan.GABOU@st.com <Ronan.GABOU@st.com>,
tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Cc: Anton Komlev <Anton.Komlev@arm.com>
Subject: [TF-M] Re: : PSA API test build issue on main branch TFM
Looking at tests_psa_arch/fetch_repo/CMakeLists.txt, it seems that PSA_ARCH_TESTS_PATH should be optional. I suspect that tests_psa_arch/CMakeLists.txt needs to
append an additional path to CMAKE_MODULE_PATH, like tests_reg/CMakeLists.txt does…
Chris
From: Nicola Mazzucato via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Tuesday, January 6, 2026 8:30 AM
To: Ronan GABOU <Ronan.GABOU@st.com>;
tf-m@lists.trustedfirmware.org
Cc: Anton Komlev <Anton.Komlev@arm.com>
Subject: [TF-M] Re: : PSA API test build issue on main branch TFM
|
Caution:
This e-mail originated outside Infineon Technologies. Please be cautious when sharing information or opening attachments especially from unknown senders. Refer to
our intranet
guide to help you identify Phishing email. |
Hi Ronan,
I just tried the following with success:
:~tf-m-tests/tests_psa_arch$ cmake -G Ninja -S ///tf-m-tests/tests_psa_arch/spe -B build_stm -DTFM_PLATFORM=stm/stm32l562e_dk -DTFM_PSA_API=ON -DTEST_PSA_API=PROTECTED_STORAGE
-DCONFIG_TFM_SOURCE_PATH=///tfm -DPSA_ARCH_TESTS_PATH=///psa-arch-tests -DTFM_TOOLCHAIN_FILE=///tfm/toolchain_GNUARM.cmake
-- The C compiler identification is GNU 13.3.1
-- Configuring done
-- Generating done
-- Build files have been written to: ///tf-m-tests/tests_psa_arch/build_stm
:~/tf-m-tests/tests_psa_arch$ cmake --build build_stm -- install -j 1
If I omit -DPSA_ARCH_TESTS_PATH then I have the same errors as you reported:
CMake Error at ///tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:10 (include):
include could not find requested file:
remote_library
CMake Error at ///tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:15 (fetch_remote_library):
Unknown CMake command "fetch_remote_library".
Your commands seem to be missing the required DPSA_ARCH_TESTS_PATH.
Hope that helps
Best regards
Nick
From: Ronan GABOU <Ronan.GABOU@st.com>
Sent: 06 January 2026 10:46
To: Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Cc: Anton Komlev <Anton.Komlev@arm.com>
Subject: RE: [TF-M] Re: : PSA API test build issue on main branch TFM
Hello Nick,
For sure :
build_L56_psa_gnu_s()
{
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
cmake --build $L56_build_s -- install
}
build_L56_psa_gnu_ns()
{
cmake -S $TFM_work_dir_L56/tf-m-tests/tests_psa_arch -B $L56_build_ns -GNinja -DCONFIG_SPE_PATH=$L56_build_s/api_ns -DTFM_TOOLCHAIN_FILE=$L56_build_s/api_ns/cmake/toolchain_ns_GNUARM.cmake
cmake --build $L56_build_ns
}
With :

export L56_tfm_src="$TFM_work_dir_L56/trusted-firmware-m"
export L56_build_s="$TFM_work_dir_L56/build_s"
export L56_build_ns="$TFM_work_dir_L56/build_ns"
Thank you for your help
Ronan

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online:
www.st.com
From: Nicola Mazzucato <Nicola.Mazzucato@arm.com>
Sent: Tuesday, January 6, 2026 11:25 AM
To: Ronan GABOU <Ronan.GABOU@st.com>;
tf-m@lists.trustedfirmware.org
Cc: Anton Komlev <Anton.Komlev@arm.com>
Subject: Re: [TF-M] Re: : PSA API test build issue on main branch TFM
Hi Ronan,
Can you please share your entire build command so we can try replicate it on our side?
Thanks
Best regards,
Nick
From: Ronan GABOU <Ronan.GABOU@st.com>
Sent: 06 January 2026 10:19
To: Anton Komlev <Anton.Komlev@arm.com>;
Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: RE: [TF-M] Re: : PSA API test build issue on main branch TFM
Hello Anton,
Thank you for your answer.
I use trusted FW main cloned yesterday (13fca17c64af961b36fad741e9b042d43ff29129) and tf-m-tests indicated into trusted firmware
(7314943) and mcuboot tagged “tfm”
To be able to build PSA API tests I had to copy paste the .cmake file.
If not the first cmake command failed immediately with this message:
-- The C compiler identification is GNU 15.2.0
CMake Error at C:/TFM_L55/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_L55/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.
Ronan,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online:
www.st.com
From: Anton Komlev <Anton.Komlev@arm.com>
Sent: Monday, January 5, 2026 5:48 PM
To: Ronan GABOU <Ronan.GABOU@st.com>;
Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org
Subject: RE: [TF-M] Re: : PSA API test build issue on main branch TFM
Hi Ronan,
remote_library.cmake is installed from
trusted-firmware-m during the secure image build. There were some changes to this logic not that long ago, so you may need to update both repositories and rebase your changes. Could you give that a try?
Hope that helps,
Anton
From: Ronan GABOU via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Monday, January 5, 2026 2:53 PM
To: Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org
Subject: [TF-M] Re: : PSA API test build issue on main branch TFM
Hi Nick,
Thank you for your answer.
I didn’t succeed
☹
However to solve my issue and run correctly the PSA API tests on my STM32L5 DK board I had to copy paste remote_library.cmake
file
From \trusted-firmware-m\cmake\
To \tf-m-tests\cmake\
My problem is to be sure it is the correct way to proceed …
Ronan,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online:
www.st.com
From: Nicola Mazzucato <Nicola.Mazzucato@arm.com>
Sent: Monday, December 22, 2025 4:34 PM
To: tf-m@lists.trustedfirmware.org;
Ronan GABOU <Ronan.GABOU@st.com>
Subject: Re: [TF-M] : PSA API test build issue on main branch TFM
Hi Ronan,
I think you may need to add -DPSA_ARCH_TESTS_PATH=<absolute-path-to-psa-arch-tests> to your build command.
Hope that helps,
Best regards,
Nick
From: Ronan GABOU via TF-M
<tf-m@lists.trustedfirmware.org>
Sent: 22 December 2025 15:19
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] : PSA API test build issue on main branch TFM
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,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online:
www.st.com