aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hu <david.hu@arm.com>2020-01-21 15:44:21 +0800
committerDavid Hu <david.hu@arm.com>2020-06-22 02:33:00 +0000
commit724a12d1627b74527508fb3812302e77630bf424 (patch)
tree8c7e3904bbc1006e853362dd13f2487092d34edc
parent946d62e940a750ca9e3f4d5c3f3d774847929978 (diff)
downloadtrusted-firmware-m-724a12d1627b74527508fb3812302e77630bf424.tar.gz
Build: Enable symmetric initial attestation in Profile S Default config
Setup SYMMETRIC_INITIAL_ATTESTATION in CommonConfig.cmake. Enable Initial Attestation service and symmetric key algorithm based Initial Attestation in TF-M Profile Small Default config. Change-Id: I728d968108eb3e7050ca2e2522191f005ac489b4 Signed-off-by: David Hu <david.hu@arm.com>
-rw-r--r--CommonConfig.cmake8
-rw-r--r--configs/ConfigDefaultProfileS.cmake6
2 files changed, 12 insertions, 2 deletions
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index d5b589edaf..62a6dc1d1c 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -341,6 +341,14 @@ endif()
if (TFM_PARTITION_INITIAL_ATTESTATION)
add_definitions(-DTFM_PARTITION_INITIAL_ATTESTATION)
+
+ if (NOT DEFINED SYMMETRIC_INITIAL_ATTESTATION)
+ set(SYMMETRIC_INITIAL_ATTESTATION OFF)
+ endif()
+
+ if (SYMMETRIC_INITIAL_ATTESTATION)
+ add_definitions(-DSYMMETRIC_INITIAL_ATTESTATION)
+ endif()
endif()
if (TFM_PARTITION_TEST_CORE)
diff --git a/configs/ConfigDefaultProfileS.cmake b/configs/ConfigDefaultProfileS.cmake
index aa54ead862..82740442d8 100644
--- a/configs/ConfigDefaultProfileS.cmake
+++ b/configs/ConfigDefaultProfileS.cmake
@@ -63,8 +63,10 @@ set(TFM_PARTITION_PLATFORM OFF)
# Disable Protected Storage service
set(TFM_PARTITION_PROTECTED_STORAGE OFF)
-# Disable Initial Attestation service temporarily
-set(TFM_PARTITION_INITIAL_ATTESTATION OFF)
+# Enable Initial Attestation service
+set(TFM_PARTITION_INITIAL_ATTESTATION ON)
+# Enable Initial Attestation based on symmetric key algorithm
+set(SYMMETRIC_INITIAL_ATTESTATION ON)
# Disable all the test cases
set(REGRESSION False)