blob: 2146e5d2ecd4dc0bdf4923aa51475c86f4de6d4d [file] [log] [blame]
Tamas Ban9e4a4f82023-06-06 13:58:21 +02001#
2# Copyright (c) 2024, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# TF-A was tested with v1.2 version of QCBOR
8
9ifeq (${QCBOR_DIR},)
10 $(error Error: QCBOR_DIR not set)
11endif
12
13QCBOR_SOURCES += ${QCBOR_DIR}/src/qcbor_encode.c \
14 ${QCBOR_DIR}/src/qcbor_decode.c \
15 ${QCBOR_DIR}/src/UsefulBuf.c
16
17QCBOR_INCLUDES += ${QCBOR_DIR}/inc
18
19# Floating point numbers are not used, so disable the support.
20# This reduces the library size as well.
21$(eval $(call add_define,QCBOR_DISABLE_FLOAT_HW_USE))
22$(eval $(call add_define,USEFULBUF_DISABLE_ALL_FLOAT))
23$(eval $(call add_define,QCBOR_DISABLE_PREFERRED_FLOAT))