fix(esp_libc/kconfig): exclude IDF_TARGET_LINUX from LibC menu

On the Linux target the host's C library is used directly; none of the
LibC menu options apply. Mark the entire "LibC" menu as `depends on
!IDF_TARGET_LINUX` so its symbols (LIBC_NEWLIB, LIBC_PICOLIBC, …) stay
undefined on Linux builds.

Also gate the picolibc-specific include in components/console/linenoise/
linenoise.c under `!CONFIG_IDF_TARGET_LINUX` so the file does not try to
pull <stdio-bufio.h> on the host even if CONFIG_LIBC_PICOLIBC is set by
some other build path.
This commit is contained in:
Sudeep Mohanty
2026-05-21 10:05:47 +02:00
parent f1d84e671f
commit 8f202ad7e8
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
menu "LibC"
depends on !IDF_TARGET_LINUX
choice LIBC
prompt "LibC to build application with"