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
+2
View File
@@ -124,9 +124,11 @@
#include <sys/param.h>
#include <assert.h>
#include "linenoise.h"
#if !CONFIG_IDF_TARGET_LINUX
#if CONFIG_LIBC_PICOLIBC
#include <stdio-bufio.h>
#endif
#endif // !CONFIG_IDF_TARGET_LINUX
#if CONFIG_LIBC_PICOLIBC && !CONFIG_LIBC_PICOLIBC_NEWLIB_COMPATIBILITY
__thread FILE *linenoise_stdin;