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
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 558dbe3..bf3228d 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -517,6 +517,10 @@
endif()
endif()
+if (NOT DEFINED ATTEST_CLAIM_VALUE_CHECK)
+ set(ATTEST_CLAIM_VALUE_CHECK OFF)
+endif()
+
##Set mbedTLS compiler flags for BL2 bootloader
set(MBEDCRYPTO_C_FLAGS_BL2 "${CMSE_FLAGS} -D__thumb2__ ${COMMON_COMPILE_FLAGS_STR} -DMBEDTLS_CONFIG_FILE=\\\\\\\"config-rsa.h\\\\\\\" -I${CMAKE_CURRENT_LIST_DIR}/bl2/ext/mcuboot/include")
if (MCUBOOT_SIGNATURE_TYPE STREQUAL "RSA-3072")