Build: Add error when bad options are given
When either of the two required input paramters (CMAKE_TOOLCHAIN_FILE
and TFM_PLATFORM) are given, validate that they are sane values and
output a reasonable error message if they are not.
Change-Id: Ie3a93ffed331e5ed66483f0b22c7875db469700c
Signed-off-by: Raef Coles <raef.coles@arm.com>
diff --git a/toolchain_IARARM.cmake b/toolchain_IARARM.cmake
index cbe8260..1d58f0f 100644
--- a/toolchain_IARARM.cmake
+++ b/toolchain_IARARM.cmake
@@ -8,6 +8,8 @@
cmake_minimum_required(VERSION 3.14)
+set(TFM_CMAKE_TOOLCHAIN_FILE_LOADED YES)
+
SET(CMAKE_SYSTEM_NAME Generic)
# This setting is overridden in ${TFM_PLATFORM}/preload.cmake. It can be set to
# any value here.