From 45733aa925be45e4d1870a459e3593aa83ecfd29 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 10 Feb 2023 14:59:26 -0800 Subject: [PATCH] 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 --- lib/libc/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/libc/Kconfig b/lib/libc/Kconfig index 24697d6f9ba..f57bdddbc68 100644 --- a/lib/libc/Kconfig +++ b/lib/libc/Kconfig @@ -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