From 8c5bff88771be29dae5fb2d8d1856b169756728c Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 22 Apr 2023 17:48:14 +0200 Subject: [PATCH 1/2] pkg/qcbor: bump to v1.2 --- pkg/qcbor/Makefile | 4 ++-- pkg/qcbor/Makefile.include | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/qcbor/Makefile b/pkg/qcbor/Makefile index 8d36810c209a..29bb57f0bc85 100644 --- a/pkg/qcbor/Makefile +++ b/pkg/qcbor/Makefile @@ -1,7 +1,7 @@ PKG_NAME = qcbor PKG_URL = https://github.com/laurencelundblade/QCBOR -# Commit on Mar 9, 2020 -PKG_VERSION = 7e8effa94174c33e4acaf737adf6aef16c092c49 +# v1.2 +PKG_VERSION = 92d3f89030baff4af7be8396c563e6c8ef263622 PKG_LICENSE = BSD-3-Clause include $(RIOTBASE)/pkg/pkg.mk diff --git a/pkg/qcbor/Makefile.include b/pkg/qcbor/Makefile.include index b5f3f397ea3d..9c8306da6c19 100644 --- a/pkg/qcbor/Makefile.include +++ b/pkg/qcbor/Makefile.include @@ -1 +1,2 @@ INCLUDES += -I$(PKGDIRBASE)/qcbor/inc +INCLUDES += -I$(PKGDIRBASE)/qcbor/inc/qcbor From bd3e6a230f1f131e568a36d03f3768d0d6b28841 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 22 Apr 2023 17:48:32 +0200 Subject: [PATCH 2/2] pkg/qcbor: document how to disable features using CFLAGS --- pkg/qcbor/doc.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkg/qcbor/doc.txt b/pkg/qcbor/doc.txt index 9f192a0a4171..6e309c3b28d0 100644 --- a/pkg/qcbor/doc.txt +++ b/pkg/qcbor/doc.txt @@ -13,4 +13,16 @@ * USEPKG += qcbor * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * - */ \ No newline at end of file + * Disabling features + * ------------------ + * + * As explained in the [README](https://github.com/laurencelundblade/QCBOR#disabling-features), qcbor + * provides options to disable some features and reduce code size. + * Just add them to `CFLAGS` in the application `Makefile` or directly to the command line. + * For example, in the command line: + * + * ``` + * CFLAGS="-DQCBOR_DISABLE_INDEFINITE_LENGTH_STRINGS" BOARD=samr21-xpro make -C tests/pkg_qcbor + * ``` + * + */