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>
This commit is contained in:
Keith Packard 2023-02-10 11:11:29 -08:00 committed by Stephanos Ioannidis
parent 2d1efd5b41
commit 02262d7367
2 changed files with 12 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config SUPPORT_MINIMAL_LIBC
config MINIMAL_LIBC_SUPPORTED
bool
default n

View file

@ -10,9 +10,11 @@ config REQUIRES_FULL_LIBC
Select a C library implementation that provides a complete C library
implementation, rather than the subset provided by MINIMAL_LIBC.
config SUPPORT_MINIMAL_LIBC
config MINIMAL_LIBC_SUPPORTED
bool
default y
help
Selected when the target has support for the minimal C library
# Picolibc with C++ support in Zephyr SDK is handled by Zephyr SDK's own Kconfig.
config PICOLIBC_SUPPORTED
@ -25,6 +27,13 @@ config PICOLIBC_SUPPORTED
help
Selected when the target has support for picolibc.
config SUPPORT_MINIMAL_LIBC
bool
select MINIMAL_LIBC_SUPPORTED
select DEPRECATED
help
Legacy symbol that selects MINIMAL_LIBC_SUPPORTED
menu "C Library"
choice LIBC_IMPLEMENTATION
@ -37,7 +46,7 @@ config MINIMAL_LIBC
bool "Minimal C library"
depends on !NATIVE_APPLICATION
depends on !REQUIRES_FULL_LIBC
depends on SUPPORT_MINIMAL_LIBC
depends on MINIMAL_LIBC_SUPPORTED
imply COMPILER_FREESTANDING
help
Build with minimal C library.