mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
feat(dice): add QCBOR library as a dependency of DPE
DPE commands are CBOR encoded. QCBOR library is used in TF-A for CBOR encoding. Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: Ifd01e1e6e1477cf991e765b97c446684fc6ef9b9
This commit is contained in:
parent
584052c7f8
commit
c19977be0c
2 changed files with 28 additions and 1 deletions
|
@ -79,6 +79,10 @@ support:
|
|||
|
||||
- mbed TLS == 3.4.1 (tag: ``mbedtls-3.4.1``)
|
||||
|
||||
The following libraries are required for DICE Protection Environment support:
|
||||
|
||||
- QCBOR == 1.2 (tag: ``v1.2``)
|
||||
|
||||
These tools are optional:
|
||||
|
||||
- Device Tree Compiler (DTC) >= 1.4.7
|
||||
|
@ -184,7 +188,7 @@ documentation, available `here <https://git-scm.com/docs/githooks>`_.
|
|||
|
||||
--------------
|
||||
|
||||
*Copyright (c) 2021-2023, Arm Limited. All rights reserved.*
|
||||
*Copyright (c) 2021-2024, Arm Limited. All rights reserved.*
|
||||
|
||||
.. _Arm Developer website: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads
|
||||
.. _Gerrit Code Review: https://www.gerritcodereview.com/
|
||||
|
|
23
drivers/measured_boot/rss/qcbor.mk
Normal file
23
drivers/measured_boot/rss/qcbor.mk
Normal file
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# Copyright (c) 2024, Arm Limited. All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
# TF-A was tested with v1.2 version of QCBOR
|
||||
|
||||
ifeq (${QCBOR_DIR},)
|
||||
$(error Error: QCBOR_DIR not set)
|
||||
endif
|
||||
|
||||
QCBOR_SOURCES += ${QCBOR_DIR}/src/qcbor_encode.c \
|
||||
${QCBOR_DIR}/src/qcbor_decode.c \
|
||||
${QCBOR_DIR}/src/UsefulBuf.c
|
||||
|
||||
QCBOR_INCLUDES += ${QCBOR_DIR}/inc
|
||||
|
||||
# Floating point numbers are not used, so disable the support.
|
||||
# This reduces the library size as well.
|
||||
$(eval $(call add_define,QCBOR_DISABLE_FLOAT_HW_USE))
|
||||
$(eval $(call add_define,USEFULBUF_DISABLE_ALL_FLOAT))
|
||||
$(eval $(call add_define,QCBOR_DISABLE_PREFERRED_FLOAT))
|
Loading…
Add table
Reference in a new issue