Skip to content

Commit f8096be

Browse files
committed
lib: libc: Kconfig: Correct dependencies for MINIMAL_LIBC_SUPPORTED
The MINIMAL_LIBC_SUPPORTED option is supposed to indicate that the minimal C library implementation can be chosen and many tests use this option as a filter for scenarios where the MINIMAL_LIBC option is enabled. On the other hand, the REQUIRES_FULL_LIBC option tells that the minimal C library is insufficient and it prevents the MINIMAL_LIBC option from being enabled. But it should also cause that MINIMAL_LIBC_SUPPORTED is no longer enabled, otherwise for targets requiring a complete C library implementation, tests using the filtering mentioned above will not be actually performed with the minimal C library. This commit removes the above discrepancy by moving the dependency on !REQUIRES_FULL_LIBC from MINIMAL_LIBC to MINIMAL_LIBC_SUPPORTED. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent c0a0e6a commit f8096be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ config FULL_LIBC_SUPPORTED
2828
config MINIMAL_LIBC_SUPPORTED
2929
bool
3030
depends on !NATIVE_APPLICATION
31+
depends on !REQUIRES_FULL_LIBC
3132
default y
3233
help
3334
Selected when the target has support for the minimal C library
@@ -68,7 +69,6 @@ choice LIBC_IMPLEMENTATION
6869

6970
config MINIMAL_LIBC
7071
bool "Minimal C library"
71-
depends on !REQUIRES_FULL_LIBC
7272
depends on MINIMAL_LIBC_SUPPORTED
7373
imply COMPILER_FREESTANDING
7474
select COMMON_LIBC_ABORT

0 commit comments

Comments
 (0)