Skip to content

Commit e0b540d

Browse files
keith-packardstephanosio
authored andcommitted
lib/libc: Mark picolibc as providing full C library support
Select FULL_LIBC_SUPPORTED when picolibc is available. Add picolibc as a secondary default C library when REQUIRES_FULL_LIBC is selected. This is necessary as tests gated on FULL_LIBC_SUPPORTED need to be sure that a full C library will be selected -- if only picolibc is available, those tests will need to select that. This should permit use of a picolibc-only crosstool-ng toolchain in testing. Signed-off-by: Keith Packard <[email protected]>
1 parent 41fb993 commit e0b540d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/libc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ config PICOLIBC_SUPPORTED
3939
depends on !(CPP && "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr")
4040
# picolibc text is outside .pinned.text on this board. #54148
4141
default y
42+
select FULL_LIBC_SUPPORTED
4243
help
4344
Selected when the target has support for picolibc.
4445

@@ -55,6 +56,7 @@ choice LIBC_IMPLEMENTATION
5556
prompt "C Library Implementation"
5657
default EXTERNAL_LIBC if NATIVE_APPLICATION
5758
default NEWLIB_LIBC if REQUIRES_FULL_LIBC
59+
default PICOLIBC if REQUIRES_FULL_LIBC
5860
default MINIMAL_LIBC
5961

6062
config MINIMAL_LIBC

0 commit comments

Comments
 (0)