File tree Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ config PICOLIBC_SUPPORTED
19
19
bool
20
20
depends on ARC || ARM || ARM64 || MIPS || RISCV
21
21
depends on "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "arcmwdt"
22
- depends on !CPLUSPLUS || !PICOLIBC_MODULE
22
+ # Picolibc with C++ support in Zephyr SDK is handled by Zephyr SDK's own Kconfig.
23
+ depends on !(CPLUSPLUS && "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr")
23
24
default y
24
25
help
25
26
Selected when the target has support for picolibc.
@@ -43,6 +44,7 @@ config PICOLIBC
43
44
select THREAD_LOCAL_STORAGE if ARCH_HAS_THREAD_LOCAL_STORAGE && TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
44
45
select LIBC_ERRNO if THREAD_LOCAL_STORAGE
45
46
depends on !NATIVE_APPLICATION
47
+ depends on PICOLIBC_SUPPORTED
46
48
help
47
49
Build with picolibc library. The picolibc library is built as
48
50
a module if PICOLIBC_MODULE is set, otherwise picolibc is
@@ -69,12 +71,6 @@ config EXTERNAL_LIBC
69
71
70
72
endchoice # LIBC_IMPLEMENTATION
71
73
72
- config PICOLIBC_MODULE
73
- bool "Use picolibc module"
74
- default y if !CPLUSPLUS
75
- help
76
- Use picolibc module instead of picolibc included with toolchain
77
-
78
74
config HAS_NEWLIB_LIBC_NANO
79
75
bool
80
76
Original file line number Diff line number Diff line change 3
3
4
4
if PICOLIBC
5
5
6
+ config PICOLIBC_USE_MODULE
7
+ bool "Picolibc as module"
8
+ default y
9
+ depends on ZEPHYR_PICOLIBC_MODULE
10
+ depends on !CPLUSPLUS
11
+ help
12
+ Use picolibc module instead of picolibc included with toolchain
13
+
6
14
config PICOLIBC_HEAP_SIZE
7
15
int "Picolibc heap size (bytes)"
8
16
default 16384 if MMU
@@ -33,14 +41,7 @@ config PICOLIBC_IO_FLOAT
33
41
help
34
42
Include floating point support in printf/scanf functions.
35
43
36
- if PICOLIBC_MODULE
37
-
38
- config PICOLIBC_USE_MODULE
39
- bool
40
- default y
41
- help
42
- Hidden option that tells the picolibc module
43
- whether to build picolibc or to skip it.
44
+ if PICOLIBC_USE_MODULE
44
45
45
46
choice PICOLIBC_OPTIMIZATIONS
46
47
prompt "Optimization level"
You can’t perform that action at this time.
0 commit comments