Skip to content

Commit ca1cb05

Browse files
nvlsianpuAnas Nashif
authored and
Anas Nashif
committed
ext: lib: tinycbor: fix Zephyr specific settings
This path make logic for enabling float and half-float support positive driven and fix NEWLIB_LIBC selections for these features. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent 8fc44f2 commit ca1cb05

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ext/lib/encoding/tinycbor/Kconfig

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ config CBOR_PARSER_NO_STRICT_CHECKS
6161
help
6262
This option enables the strict parser checks.
6363

64-
config CBOR_NO_FLOATING_POINT
64+
config CBOR_FLOATING_POINT
6565
bool
6666
select NEWLIB_LIBC
67-
prompt "No Floating point support"
68-
default y
67+
prompt "Floating point support"
68+
default n
6969
help
7070
This option enables floating point support.
7171

72-
config CBOR_NO_HALF_FLOAT_TYPE
72+
config CBOR_HALF_FLOAT_TYPE
7373
bool
7474
select NEWLIB_LIBC
75-
prompt "No Half float type support"
76-
default y
75+
prompt "Half float type support"
76+
default n
7777
help
7878
This option enables half float type support.
7979

ext/lib/encoding/tinycbor/src/config.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
#endif
4747

4848
/** This option enables floating point support **/
49-
#ifdef CONFIG_CBOR_NO_FLOATING_POINT
50-
#define CBOR_NO_FLOATING_POINT CONFIG_CBOR_NO_FLOATING_POINT
49+
#ifndef CONFIG_CBOR_FLOATING_POINT
50+
#define CBOR_NO_FLOATING_POINT 1
5151
#endif
5252

5353
/** This option enables half float type support **/
54-
#ifdef CONFIG_CBOR_NO_HALF_FLOAT_TYPE
55-
#define CBOR_NO_HALF_FLOAT_TYPE CONFIG_CBOR_NO_HALF_FLOAT_TYPE
54+
#ifndef CONFIG_CBOR_HALF_FLOAT_TYPE
55+
#define CBOR_NO_HALF_FLOAT_TYPE 1
5656
#endif
5757

5858
/** This option enables open memstream support **/

0 commit comments

Comments
 (0)