Skip to content

Commit 02262d7

Browse files
keith-packardstephanosio
authored andcommitted
lib/libc: Replace SUPPORT_MINIMAL_LIBC with MINIMAL_LIBC_SUPPORTED
Clean up libc-related symbols to use a common pattern. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 2d1efd5 commit 02262d7

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) 2021 Nordic Semiconductor ASA
22
# SPDX-License-Identifier: Apache-2.0
33

4-
config SUPPORT_MINIMAL_LIBC
4+
config MINIMAL_LIBC_SUPPORTED
55
bool
66
default n

lib/libc/Kconfig

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ config REQUIRES_FULL_LIBC
1010
Select a C library implementation that provides a complete C library
1111
implementation, rather than the subset provided by MINIMAL_LIBC.
1212

13-
config SUPPORT_MINIMAL_LIBC
13+
config MINIMAL_LIBC_SUPPORTED
1414
bool
1515
default y
16+
help
17+
Selected when the target has support for the minimal C library
1618

1719
# Picolibc with C++ support in Zephyr SDK is handled by Zephyr SDK's own Kconfig.
1820
config PICOLIBC_SUPPORTED
@@ -25,6 +27,13 @@ config PICOLIBC_SUPPORTED
2527
help
2628
Selected when the target has support for picolibc.
2729

30+
config SUPPORT_MINIMAL_LIBC
31+
bool
32+
select MINIMAL_LIBC_SUPPORTED
33+
select DEPRECATED
34+
help
35+
Legacy symbol that selects MINIMAL_LIBC_SUPPORTED
36+
2837
menu "C Library"
2938

3039
choice LIBC_IMPLEMENTATION
@@ -37,7 +46,7 @@ config MINIMAL_LIBC
3746
bool "Minimal C library"
3847
depends on !NATIVE_APPLICATION
3948
depends on !REQUIRES_FULL_LIBC
40-
depends on SUPPORT_MINIMAL_LIBC
49+
depends on MINIMAL_LIBC_SUPPORTED
4150
imply COMPILER_FREESTANDING
4251
help
4352
Build with minimal C library.

0 commit comments

Comments
 (0)