commit | d49a3e4c8b7b91a63616c509b33b507b736c31a5 | [log] [tgz] |
---|---|---|
author | Sebastian Bøe <sebastian.boe@nordicsemi.no> | Mon Jul 17 12:46:15 2023 +0200 |
committer | David Hu <david.hu@arm.com> | Wed Sep 06 04:30:18 2023 +0200 |
tree | 71a63ed7dd7815947b2676eb76c1401f36ac6aa3 | |
parent | c3e3810c763d1242b455ccf0298e29ddb08cdfbe [diff] |
platform: nordic_nrf: Move ITS defines to common CMake The TFM_ITS_ENCRYPTED define (and friends) are the same for all nrf platforms so put the CMake code in the common CMakeLists.txt file. This improves portability. Change-Id: Ifedb4eb6119aa9a50dd5444a07fb0d4ee3ab4303 Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
diff --git a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt index 9052885..3d062f1 100644 --- a/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/core/CMakeLists.txt
@@ -130,6 +130,7 @@ PUBLIC $<$<BOOL:${TEST_PSA_API}>:PSA_API_TEST_ENABLED> $<$<BOOL:${NULL_POINTER_EXCEPTION_DETECTION}>:NULL_POINTER_EXCEPTION_DETECTION> + $<$<BOOL:${TFM_ITS_ENCRYPTED}>:TFM_ITS_ENCRYPTED> ) #========================= Platform Non-Secure ================================#
diff --git a/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt index 810cfd5..d6155a9 100644 --- a/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf5340/CMakeLists.txt
@@ -48,7 +48,6 @@ target_compile_definitions(platform_s PUBLIC NRF_SKIP_FICR_NS_COPY_TO_RAM - $<$<BOOL:${ITS_ENCRYPTION}>:ITS_ENCRYPTION> ) #========================= Platform Non-Secure ================================#
diff --git a/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt b/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt index 15ef870..5455ab1 100644 --- a/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/common/nrf91/CMakeLists.txt
@@ -48,7 +48,6 @@ target_compile_definitions(platform_s PUBLIC NRF_SKIP_FICR_NS_COPY_TO_RAM - $<$<BOOL:${ITS_ENCRYPTION}>:ITS_ENCRYPTION> ) #========================= Platform Non-Secure ================================#