Skip to content

Commit 28209a9

Browse files
keith-packardstephanosio
authored andcommitted
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>
1 parent 45733aa commit 28209a9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

cmake/toolchain/espressif/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright © 2023 Keith Packard
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config NEWLIB_LIBC_SUPPORTED
5+
def_bool y
6+
help
7+
Espressif supports newlib for C and C++ development.

cmake/toolchain/gnuarmemb/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
config TOOLCHAIN_GNUARMEMB
77
def_bool y
88
select HAS_NEWLIB_LIBC_NANO
9+
select NEWLIB_LIBC_SUPPORTED

cmake/toolchain/xtools/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
config TOOLCHAIN_XTOOLS_SUPPORTS_THREAD_LOCAL_STORAGE
55
def_bool y
66
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
7+
8+
config NEWLIB_LIBC_SUPPORTED
9+
def_bool y
10+
help
11+
Crosstools is assumed to support newlib for C and C++ development.

0 commit comments

Comments
 (0)