aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRaef Coles <raef.coles@arm.com>2020-11-10 09:49:17 +0000
committerAnton Komlev <Anton.Komlev@arm.com>2020-11-10 18:47:39 +0000
commita31a4b69646be6952ebf20764c72c3aee27b80e9 (patch)
tree8cb0962624c32d8b96e01a3096b43891698e7a2b /CMakeLists.txt
parentc32710c7fc8514dd0d072a01549e23a94278ee17 (diff)
downloadtrusted-firmware-m-a31a4b69646be6952ebf20764c72c3aee27b80e9.tar.gz
Build: Move config check to after compiler setup
To allow invalid configs to depend on the compiler version. Also, add the option for a platform check_config.cmake for platforms to specify invalid configs. Change-Id: If9081067e2804b329415193fa260702b0055e23e Signed-off-by: Raef Coles <raef.coles@arm.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 681ac89ff..40882c2d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,14 @@ set(CMAKE_PROJECT_INCLUDE_BEFORE ${CMAKE_SOURCE_DIR}/cmake/disable_compiler_dete
project("Trusted Firmware M" VERSION ${TFM_VERSION} LANGUAGES C ASM)
tfm_toolchain_reload_compiler()
+############################ Config Check ######################################
+
+include(${CMAKE_SOURCE_DIR}/config/check_config.cmake)
+
+if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/check_config.cmake)
+ include(platform/ext/target/${TFM_PLATFORM}/check_config.cmake)
+endif()
+
################################################################################
add_subdirectory(lib/ext)