File tree Expand file tree Collapse file tree 4 files changed +60
-6
lines changed
Expand file tree Collapse file tree 4 files changed +60
-6
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,34 @@ rsource "frac/Kconfig"
3030rsource "hashes/Kconfig"
3131rsource "iolist/Kconfig"
3232rsource "isrpipe/Kconfig"
33+
34+ menu "Libc"
35+
36+ choice LIBC_IMPLEMENTATION
37+ bool "Libc implementation"
38+ depends on TEST_KCONFIG
39+
40+ config MODULE_NEWLIB
41+ bool "NewLib"
42+ depends on HAS_NEWLIB
43+
44+ config MODULE_PICOLIBC
45+ bool "Picolibc"
46+ depends on HAS_PICOLIBC
47+
48+ endchoice
49+
50+ rsource "Kconfig.newlib"
51+ rsource "Kconfig.picolibc"
52+
53+ endmenu # Libc
54+
3355rsource "luid/Kconfig"
3456rsource "malloc_thread_safe/Kconfig"
3557rsource "matstat/Kconfig"
3658rsource "memarray/Kconfig"
3759rsource "mineplex/Kconfig"
3860rsource "net/Kconfig"
39- rsource "Kconfig.newlib"
4061rsource "Kconfig.stdio"
4162rsource "od/Kconfig"
4263rsource "posix/Kconfig"
Original file line number Diff line number Diff line change 55# directory for more details.
66#
77
8- menuconfig MODULE_NEWLIB
9- bool "NewLib"
10- depends on TEST_KCONFIG
11-
128if MODULE_NEWLIB
139
1410config MODULE_NEWLIB_NANO
@@ -18,9 +14,11 @@ config MODULE_NEWLIB_GNU_SOURCE
1814 bool "NewLib GNU source"
1915
2016config MODULE_NEWLIB_SYSCALLS_DEFAULT
21- bool "NewLib Syscalls default implementation"
17+ bool
2218 default y
2319 depends on !HAVE_CUSTOM_NEWLIB_SYSCALLS
20+ help
21+ Default implementation of newlib system calls.
2422
2523endif # MODULE_NEWLIB
2624
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2021 HAW Hamburg
2+ #
3+ # This file is subject to the terms and conditions of the GNU Lesser
4+ # General Public License v2.1. See the file LICENSE in the top level
5+ # directory for more details.
6+ #
7+
8+ if MODULE_PICOLIBC
9+
10+ config PICOLIBC_STDOUT_BUFFERED
11+ bool "Buffered standard output"
12+ default USE_STDOUT_BUFFERED
13+ help
14+ Say y to use buffering in the standard output, usually good for modules that benefit from
15+ sending out buffers in larger chunks.
16+
17+ config MODULE_PICOLIBC_SYSCALLS_DEFAULT
18+ bool
19+ default y
20+ depends on !HAVE_CUSTOM_PICOLIBC_SYSCALLS
21+ help
22+ Default implementation of picolibc system calls.
23+
24+ endif # MODULE_PICOLIBC
25+
26+ config HAVE_CUSTOM_PICOLIB_SYSCALLS
27+ bool
28+ help
29+ Indicates that a custom picolibc syscalls implementation is present.
Original file line number Diff line number Diff line change 1818config MODULE_SLIPDEV_STDIO
1919 bool "SLIP network device"
2020 depends on MODULE_SLIPDEV
21+ select USE_STDOUT_BUFFERED
2122 select MODULE_ISRPIPE
2223
2324config MODULE_STDIO_NULL
@@ -50,4 +51,9 @@ config MODULE_STDIO_UART_RX
5051config MODULE_PRINTF_FLOAT
5152 bool "Float support in printf"
5253
54+ config USE_STDOUT_BUFFERED
55+ bool
56+ help
57+ Select this to prefer buffered standard output if provided by the implementation.
58+
5359endmenu # Standard Input/Output (STDIO)
You can’t perform that action at this time.
0 commit comments