lib/libc: Add NEWLIB_LIBC_SUPPORTED

This reflects whether newlib is available in the environment. This
symbol should be used in place of TOOLCHAIN_HAS_NEWLIB.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-02-10 14:59:26 -08:00 committed by Stephanos Ioannidis
parent 02262d7367
commit 45733aa925

View File

@ -16,6 +16,13 @@ config MINIMAL_LIBC_SUPPORTED
help
Selected when the target has support for the minimal C library
config NEWLIB_LIBC_SUPPORTED
bool
default y
depends on "$(TOOLCHAIN_HAS_NEWLIB)" = "y"
help
Selected when the target has support for the newlib C library
# Picolibc with C++ support in Zephyr SDK is handled by Zephyr SDK's own Kconfig.
config PICOLIBC_SUPPORTED
bool