Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: tfm: moving CMake execution of tfm_cmake to a custom command
Fixes: zephyrproject-rtos#36101 The move of CMake invocation to a dedicated custom target, see zephyrproject-rtos#34868 results in tfm_cmake to always be considered out-of-date, causing CMake to be reinvoked in the TF-M Binary dir, which again results in the build command to rebuild. This commit moves the invocation to a custom command with the CMakeCache.txt as output. The custom target tfm_cmake is updated to depend on CMakeCache.txt. This mean that CMake for TF-M will only be invoked inside the Zephyr build command if that file is missing. If the CMakeCache.txt file is updated or TF-M CMake or source code is modified, then the build command inside the TF-M build folder will ensure correct re-run of CMake from within the TF-M build folder. This ensures that TF-M will still rebuild if TF-M code is modified, while at the same time avoid unnecessary rebuilds of TF-M code. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
- Loading branch information