Add attestation report creation
Adds components to create a cbor encoded attestion report using
claims gathered from registered claim sources. Tests added
that check the decoded cbor is as expected.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I8faddd6c5bea120745f85d70846725c5c51665b6
diff --git a/components/service/attestation/claims/sources/preloaded/component.cmake b/components/service/attestation/claims/sources/preloaded/component.cmake
new file mode 100644
index 0000000..5a289f2
--- /dev/null
+++ b/components/service/attestation/claims/sources/preloaded/component.cmake
@@ -0,0 +1,13 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+ message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+target_sources(${TGT} PRIVATE
+ "${CMAKE_CURRENT_LIST_DIR}/preloaded_claim_source.c"
+ )