feat: add DPE coverage and clone QCBOR library
Enable DICE_PROTECTION_ENVIRONMENT on TC platform for coverage.
The QCBOR library is required for Dice Protection Environment (DPE)
support - the DPE commands are CBOR encoded.
Change-Id: Ic218e12b57cf687f765648b62c3ce9d7ac0d1b58
Signed-off-by: David Vincze <david.vincze@arm.com>
diff --git a/script/build_package.sh b/script/build_package.sh
index c79d29b..4e61723 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2019-2023 Arm Limited. All rights reserved.
+# Copyright (c) 2019-2024 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -534,6 +534,10 @@
not_upon "${TF_M_EXTRAS_PATH}"; then
emit_env "TF_M_EXTRAS_PATH" "$WORKSPACE/tf-m-extras"
fi
+ if [ "$(get_tf_opt DICE_PROTECTION_ENVIRONMENT)" = 1 ] &&
+ not_upon "${QCBOR_DIR}"; then
+ emit_env "QCBOR_DIR" "$WORKSPACE/qcbor"
+ fi
if [ -f "$env_file" ]; then
set -a
source "$env_file"