aboutsummaryrefslogtreecommitdiff
path: root/CommonConfig.cmake
diff options
context:
space:
mode:
authorDavid Vincze <david.vincze@arm.com>2019-10-14 11:35:09 +0200
committerTamas Ban <tamas.ban@arm.com>2019-10-17 10:29:19 +0000
commit219a175396f3d50ca99fea1e736e9a68a641fd16 (patch)
tree66cff4f6b8cbe3a0916dfcda70de9a68dd8dc7c7 /CommonConfig.cmake
parent4b84de59de0b883b5e8c3e97b9ed3f7f33618322 (diff)
downloadtrusted-firmware-m-219a175396f3d50ca99fea1e736e9a68a641fd16.tar.gz
Boot: Add measured boot record TLV to shared area
This patch provides an alternative implementation of the boot_save_boot_status() function which can read the already CBOR encoded measured boot record from the image manifest and writes it to the shared data area (between the bootloader and runtime SW) instead of copying the individual (not encoded) claims separately. Add new ATTEST_BOOT_INTERFACE variable to the build system to be able to switch between the two behaviours. Change-Id: I9ee66a5174cb5b851a79262decd35192cae7cc27 Signed-off-by: David Vincze <david.vincze@arm.com>
Diffstat (limited to 'CommonConfig.cmake')
-rw-r--r--CommonConfig.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 75572938f4..3e03aec358 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -370,6 +370,10 @@ else()
set(ATTEST_INCLUDE_TEST_CODE_AND_KEY_ID OFF)
endif()
+set(ATTEST_BOOT_INTERFACE "INDIVIDUAL_CLAIMS" CACHE STRING "Set the format in which to pass the claims to the initial-attestation service.")
+set_property(CACHE ATTEST_BOOT_INTERFACE PROPERTY STRINGS "INDIVIDUAL_CLAIMS;CBOR_ENCODED_CLAIMS")
+validate_cache_value(ATTEST_BOOT_INTERFACE)
+
##Set mbedTLS compiler flags for BL2 bootloader
set(MBEDTLS_C_FLAGS_BL2 "-D__ARM_FEATURE_CMSE=${ARM_FEATURE_CMSE} -D__thumb2__ ${COMMON_COMPILE_FLAGS_STR} -DMBEDTLS_CONFIG_FILE=\\\\\\\"config-boot.h\\\\\\\" -I${CMAKE_CURRENT_LIST_DIR}/bl2/ext/mcuboot/include")
if (MCUBOOT_SIGNATURE_TYPE STREQUAL "RSA-3072")