From bd3e6a230f1f131e568a36d03f3768d0d6b28841 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 22 Apr 2023 17:48:32 +0200 Subject: [PATCH] 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 + * ``` + * + */