aboutsummaryrefslogtreecommitdiff
path: root/toolchain_GNUARM.cmake
diff options
context:
space:
mode:
authorRaef Coles <raef.coles@arm.com>2020-09-28 10:44:06 +0100
committerTamas Ban <tamas.ban@arm.com>2020-10-07 14:58:20 +0000
commit6e8f83d0381a7561c38deb7bb4ef868d86ac10ea (patch)
treedca4a1989240472c823cf9bcba07508247d48385 /toolchain_GNUARM.cmake
parentd9d63e1ba9b2db291306c0dca7e87d138c0808fc (diff)
downloadtrusted-firmware-m-6e8f83d0381a7561c38deb7bb4ef868d86ac10ea.tar.gz
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>
Diffstat (limited to 'toolchain_GNUARM.cmake')
-rw-r--r--toolchain_GNUARM.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain_GNUARM.cmake b/toolchain_GNUARM.cmake
index bb1728c785..d1b4e1f423 100644
--- a/toolchain_GNUARM.cmake
+++ b/toolchain_GNUARM.cmake
@@ -5,6 +5,8 @@
#
#-------------------------------------------------------------------------------
+set(TFM_CMAKE_TOOLCHAIN_FILE_LOADED YES)
+
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR arm)