Skip to content

Commit b3ba2ae

Browse files
committed
build: Allow bypassing the tf-m-tests version checks
Introduce the CMake variable TFM_TESTS_REVISION_CHECKS to allow not performing the revision checks in the tf-m-tests repo. This is needed for TF-M forks where the upstream tags are not found, which makes the build fail. Change-Id: I10371841925f9fb811f0d47a2e0dc2c9e8e7cfac Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no> (cherry picked from commit e8c39da8faf2c825a1cbe61ea9fb3b5789555d2b) Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 5934d8d commit b3ba2ae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config/config_base.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ set(INSTALL_PLATFORM_NS_DIR ${CMAKE_INSTALL_PREFIX}/platform)
3030
set(TFM_DEBUG_SYMBOLS ON CACHE BOOL "Add debug symbols. Note that setting CMAKE_BUILD_TYPE to Debug or RelWithDebInfo will also add debug symbols.")
3131
set(TFM_CODE_COVERAGE OFF CACHE BOOL "Whether to build the binary for lcov tools")
3232

33+
set(TFM_TESTS_REVISION_CHECKS ON CACHE BOOL "Whether to perform checks on the tf-m-tests repository revision.")
34+
3335
set(PROJECT_CONFIG_HEADER_FILE "" CACHE FILEPATH "User defined header file for TF-M config")
3436

3537
# External libraries source and version

config/spe_config.cmake.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ set(TFM_VERSION @TFM_VERSION@)
7676
set(TFM_NS_MANAGE_NSID @TFM_NS_MANAGE_NSID@)
7777

7878
set(RECOMMENDED_TFM_TESTS_VERSION @TFM_TESTS_VERSION@)
79+
set(CHECK_TFM_TESTS_VERSION @TFM_TESTS_REVISION_CHECKS@)

0 commit comments

Comments
 (0)