summaryrefslogtreecommitdiff
path: root/nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake
diff options
context:
space:
mode:
authorMichal Hanus <mikehanus@protonmail.com>2025-04-14 22:04:32 +0200
committerMichal Hanus <mikehanus@protonmail.com>2025-04-14 22:04:32 +0200
commit2e13c372f1419f08dab7797b244681f889dd9bcf (patch)
tree995a31c40f13068c4135c213e938e0a2a9ed05a3 /nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake
parent620dfd94019f3c7e3022fa5a5fb9c9b51491062d (diff)
nrfdemo
Diffstat (limited to 'nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake')
-rw-r--r--nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake b/nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake
new file mode 100644
index 0000000..9af11fc
--- /dev/null
+++ b/nrfdemo/builddk/tfm/api_ns/platform/common/nrf9120/cpuarch.cmake
@@ -0,0 +1,20 @@
+#
+# Copyright (c) 2023, Nordic Semiconductor ASA.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# preload.cmake is used to set things that related to the platform that are both
+# immutable and global, which is to say they should apply to any kind of project
+# that uses this platform. In practise this is normally compiler definitions and
+# variables related to hardware.
+
+# Set architecture and CPU
+set(TFM_SYSTEM_PROCESSOR cortex-m33)
+set(TFM_SYSTEM_ARCHITECTURE armv8-m.main)
+set(CONFIG_TFM_FP_ARCH "fpv5-sp-d16")
+
+add_compile_definitions(
+ NRF9120_XXAA
+ NRF91_SERIES
+)