diff options
author | Balint Matyi <Balint.Matyi@arm.com> | 2020-05-22 08:52:32 +0100 |
---|---|---|
committer | Tamas Ban <tamas.ban@arm.com> | 2020-06-04 12:42:26 +0000 |
commit | 95f58eb16648c2122d853e584d52f048f0275a30 (patch) | |
tree | d85c60f043c57f48d7cf3318f58f8638445a61f3 /platform | |
parent | 15b3130cd27a6644409c6f22a41b70945a7af690 (diff) | |
download | trusted-firmware-m-95f58eb16648c2122d853e584d52f048f0275a30.tar.gz |
Test: Add attestation claim value check switch
Control checking for hard-coded claim values in the attestation suite
by introducing the 'ATTEST_CLAIM_VALUE_CHECK' flag. When set to 'ON',
the test will check if the claim values match the constant values found
in 'platform/ext/common/template/attest_hal.c'.
Signed-off-by: Balint Matyi <Balint.Matyi@arm.com>
Change-Id: I22ab1471609d6b931deaf97f31cb3a0dcd83fda0
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ext/Mps2AN519.cmake | 3 | ||||
-rw-r--r-- | platform/ext/Mps2AN521.cmake | 3 | ||||
-rw-r--r-- | platform/ext/Mps2AN539.cmake | 3 | ||||
-rw-r--r-- | platform/ext/Mps3AN524.cmake | 3 | ||||
-rw-r--r-- | platform/ext/SSE-200_AWS.cmake | 3 | ||||
-rw-r--r-- | platform/ext/lpc55s69.cmake | 3 | ||||
-rw-r--r-- | platform/ext/musca_a.cmake | 3 | ||||
-rw-r--r-- | platform/ext/musca_b1.cmake | 3 | ||||
-rw-r--r-- | platform/ext/musca_s1.cmake | 3 | ||||
-rw-r--r-- | platform/ext/psoc64.cmake | 3 |
10 files changed, 30 insertions, 0 deletions
diff --git a/platform/ext/Mps2AN519.cmake b/platform/ext/Mps2AN519.cmake index ba9e2e89ed..cffb137455 100644 --- a/platform/ext/Mps2AN519.cmake +++ b/platform/ext/Mps2AN519.cmake @@ -133,6 +133,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/Mps2AN521.cmake b/platform/ext/Mps2AN521.cmake index 0156637b42..b37f1f3318 100644 --- a/platform/ext/Mps2AN521.cmake +++ b/platform/ext/Mps2AN521.cmake @@ -134,6 +134,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/Mps2AN539.cmake b/platform/ext/Mps2AN539.cmake index 249a274453..084f4417ea 100644 --- a/platform/ext/Mps2AN539.cmake +++ b/platform/ext/Mps2AN539.cmake @@ -130,6 +130,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/Mps3AN524.cmake b/platform/ext/Mps3AN524.cmake index 7c3c584b1d..6e7cac0622 100644 --- a/platform/ext/Mps3AN524.cmake +++ b/platform/ext/Mps3AN524.cmake @@ -142,6 +142,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/SSE-200_AWS.cmake b/platform/ext/SSE-200_AWS.cmake index 4f32c17665..a7e6b53a9c 100644 --- a/platform/ext/SSE-200_AWS.cmake +++ b/platform/ext/SSE-200_AWS.cmake @@ -136,6 +136,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/lpc55s69.cmake b/platform/ext/lpc55s69.cmake index 49c00c0d41..52282c1f83 100644 --- a/platform/ext/lpc55s69.cmake +++ b/platform/ext/lpc55s69.cmake @@ -160,6 +160,9 @@ elseif (BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/musca_a.cmake b/platform/ext/musca_a.cmake index ad7c42321a..50c756a19b 100644 --- a/platform/ext/musca_a.cmake +++ b/platform/ext/musca_a.cmake @@ -128,6 +128,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) diff --git a/platform/ext/musca_b1.cmake b/platform/ext/musca_b1.cmake index 51401e917f..30592403d1 100644 --- a/platform/ext/musca_b1.cmake +++ b/platform/ext/musca_b1.cmake @@ -134,6 +134,9 @@ elseif (BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif (BUILD_TARGET_CFG) diff --git a/platform/ext/musca_s1.cmake b/platform/ext/musca_s1.cmake index 9e73604ed9..b795ffc9da 100644 --- a/platform/ext/musca_s1.cmake +++ b/platform/ext/musca_s1.cmake @@ -126,6 +126,9 @@ elseif (BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif (BUILD_TARGET_CFG) diff --git a/platform/ext/psoc64.cmake b/platform/ext/psoc64.cmake index d3490798be..b9850019b1 100644 --- a/platform/ext/psoc64.cmake +++ b/platform/ext/psoc64.cmake @@ -190,6 +190,9 @@ elseif(BUILD_STARTUP) endif() endif() +#Enable the checks of attestation claims against hard-coded values. +set(ATTEST_CLAIM_VALUE_CHECK ON) + if (NOT DEFINED BUILD_TARGET_CFG) message(FATAL_ERROR "Configuration variable BUILD_TARGET_CFG (true|false) is undefined!") elseif(BUILD_TARGET_CFG) |