qcbor.mk 646 B

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