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-07-01 19:59:05 +08:00
committed by BOT
parent ea4cef735a
commit a0a3882897
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"