cmake/toolchain: Add Kconfig setting for toolchains with newlib

Label espressif, gnuarmemd and xtools toolchains with newlib support using
the Kconfig variable rather than relying on the TOOLCHAIN_HAS_NEWLIB
value.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-02-11 00:06:57 -08:00 committed by Stephanos Ioannidis
parent 45733aa925
commit 28209a9069
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Copyright © 2023 Keith Packard
# SPDX-License-Identifier: Apache-2.0
config NEWLIB_LIBC_SUPPORTED
def_bool y
help
Espressif supports newlib for C and C++ development.

View file

@ -6,3 +6,4 @@
config TOOLCHAIN_GNUARMEMB
def_bool y
select HAS_NEWLIB_LIBC_NANO
select NEWLIB_LIBC_SUPPORTED

View file

@ -4,3 +4,8 @@
config TOOLCHAIN_XTOOLS_SUPPORTS_THREAD_LOCAL_STORAGE
def_bool y
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
config NEWLIB_LIBC_SUPPORTED
def_bool y
help
Crosstools is assumed to support newlib for C and C++ development.