Hi,
We're aware of this issue. Currently working on fixing the review comments. Expect a clean fix next week due to some other commitments. You can find the temp fix here: https://review.trustedfirmware.org/q/topic:%22cs1k-buildfix%22+(status:open%...) (this needs to be rebased, but it should work)
Sorry, for the inconvenience.
Thanks, Emek ________________________________ From: Antonio De Angelis Antonio.DeAngelis@arm.com Sent: Thursday, June 8, 2023 11:34 AM To: tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Cc: 박진국 sky2free1975@gmail.com; nd nd@arm.com; Emekcan Aras Emekcan.Aras@arm.com Subject: Re: [TF-M] TFM Corstone1000 Cmake Error
Hi,
it looks like you're hitting a known issue which is currently in the process of being fixed:
topic:"cs1k-buildfix" (status:open OR status:merged) · Gerrit Code Review (trustedfirmware.org)https://review.trustedfirmware.org/q/topic:%22cs1k-buildfix%22+(status:open%20OR%20status:merged)
@Emekcan Arasmailto:Emekcan.Aras@arm.com would have more details on the timeline for this to get merged.
Thanks, Antonio ________________________________ From: 박진국 via TF-M tf-m@lists.trustedfirmware.org Sent: Thursday, June 8, 2023 11:07 To: tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Subject: [TF-M] TFM Corstone1000 Cmake Error
Hi all.
I am trying to port TFM using the corstone1000 platform.
Previously, I was using the 1.7.0 version.
TFM version was recently updated and I am trying to use the 1.8.0 version by downloading it from the site below.
https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
As instructed by the site below
(https://tf-m-user-guide.trustedfirmware.org/platform/arm/corstone1000/readme...)
I executed the command below.
cmake -B build/ -S . -DCMAKE_BUILD_TYPE=Debug -DTFM_TOOLCHAIN_FILE=<tf-m-root>/toolchain_GNUARM. cmake -DTFM_PLATFORM=arm/corstone1000 -DTEST_NS=OFF -DTEST_S=ON -DTEST_S_PS=OFF -DTEST_S_PLATFORM=OFF -DEXTRA_S_TEST_SUITE_PATH=platform/ext/target/arm/corstone1000/ci_regression_tests/
However, I got a cmake error as shown below.
- Build type: Debug
-- Host: Linux/x86_64
-- Target: Generic/arm
-- Machine: template
-- Host: Linux/x86_64
-- Target: Generic/arm
-- Machine: template
-- C_FLAGS : -mcpu=cortex-m0plus -Wall -Wextra
CMake Error at platform/ext/target/arm/corstone1000/CMakeLists.txt:144 (target_sources):
Cannot specify sources for target "platform_bl1" which is not built by this
project.
CMake Error at platform/ext/target/arm/corstone1000/CMakeLists.txt:168 (target_compile_definitions):
Cannot specify compile definitions for target "platform_bl1" which is not
built by this project.
CMake Error at platform/ext/target/arm/corstone1000/CMakeLists.txt:175 (target_include_directories):
Cannot specify include directories for target "platform_bl1_interface"
which is not built by this project.
I think this is caused by the target for platform_bl1 not being specified, but I don't know how to fix it.
I executed cmake using the same configuration as set in corstone1000's config.cmake.
Can anyone tell me why I am getting the above error?
Any advice would be very helpful.
thanks you.