Skip to content

Commit fc695cb

Browse files
Vge0rgerlubos
authored andcommitted
[nrf fromlist] modules: tf-m: Add syscall header dependency for TF-M
Zephyr generates the system call headers using CMake custom targets and various scripts. Some platforms, like the Nordic onces, reuse some files located in Zephyr inside the TF-M build as well. Because of this the generated Zephyr headers needs to exist before TF-M starts the build process in order to succeed. This adds a dependency to make sure TF-M starts building after the Zephyr custom command which generates the system call headers is executed. Upstream PR #: 100367 Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent ed09d97 commit fc695cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ if (CONFIG_BUILD_WITH_TFM)
420420
${TFM_INTERFACE_LIB_DIR}/s_veneers.o
421421
)
422422

423+
# Ensure that the generated syscall include headers of Zephyr are available to TF-M
424+
# because some platforms might use the same source files for both builds.
425+
add_dependencies(tfm ${SYSCALL_LIST_H_TARGET})
426+
423427
# To ensure that generated include files are created before they are used.
424428
add_dependencies(zephyr_interface tfm)
425429

0 commit comments

Comments
 (0)