1#
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))
24