lib/libc: newlib use depends upon newlib being supported

Before allowing newlib to be selected as the C library, ensure that it is
available for the target.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-02-08 13:52:40 -08:00 committed by Stephanos Ioannidis
parent 28209a9069
commit 3ffde85895

View file

@ -72,6 +72,7 @@ config PICOLIBC
config NEWLIB_LIBC
bool "Newlib C library"
depends on !NATIVE_APPLICATION
depends on NEWLIB_LIBC_SUPPORTED
help
Build with newlib library. The newlib library is expected to be
part of the SDK in this case.