From 6321e2bcfdbb603ae906cdf633c3ac3c7e7bda14 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 8 Feb 2023 17:27:46 -0800 Subject: [PATCH] kconfig: Signal newlib support in Kconfig too This lets Kconfig stanzas detect newlib support in the toolchain Signed-off-by: Keith Packard --- cmake/zephyr/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/zephyr/Kconfig b/cmake/zephyr/Kconfig index 0a8b79dd..abe8a4ff 100644 --- a/cmake/zephyr/Kconfig +++ b/cmake/zephyr/Kconfig @@ -7,3 +7,9 @@ config TOOLCHAIN_ZEPHYR_0_16 config TOOLCHAIN_ZEPHYR_SUPPORTS_THREAD_LOCAL_STORAGE def_bool y select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE + +config NEWLIB_SUPPORTED + def_bool y + depends on "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr" + help + Zephyr always supports newlib for C and C++ development.