Skip to content

Commit

Permalink
lib/libc: Mark picolibc as providing full C library support
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
keith-packard committed Apr 18, 2023
1 parent 04ed4e5 commit a7a5269
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ config PICOLIBC_SUPPORTED
depends on !(CPP && "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr")
# picolibc text is outside .pinned.text on this board. #54148
default y
select FULL_LIBC_SUPPORTED
help
Selected when the target has support for picolibc.

Expand All @@ -55,6 +56,7 @@ choice LIBC_IMPLEMENTATION
prompt "C Library Implementation"
default EXTERNAL_LIBC if NATIVE_APPLICATION
default NEWLIB_LIBC if REQUIRES_FULL_LIBC
default PICOLIBC if REQUIRES_FULL_LIBC
default MINIMAL_LIBC

config MINIMAL_LIBC
Expand Down

0 comments on commit a7a5269

Please sign in to comment.