From 2c3c0653d2ccaeac31741c798fecb9e9ad490fa7 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Thu, 24 Oct 2024 09:55:52 +0200 Subject: [PATCH] change(newlib): support line endings modification only with VFS The configuration of newline endings for stdout and stdin is supported only by the VFS drivers. The write and read syscalls in newlib automatically convert LF to CRLF for stdout and CR to LF for stdin, ignoring the configured newline settings. Therefore, make the options for newline endings visible only when VFS is enabled. Signed-off-by: Frantisek Hrbata --- components/newlib/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/newlib/Kconfig b/components/newlib/Kconfig index 98e63e8c03..92573ca73d 100644 --- a/components/newlib/Kconfig +++ b/components/newlib/Kconfig @@ -3,6 +3,7 @@ menu "Newlib" choice NEWLIB_STDOUT_LINE_ENDING prompt "Line ending for UART output" default NEWLIB_STDOUT_LINE_ENDING_CRLF + depends on VFS_SUPPORT_IO help This option allows configuring the desired line endings sent to UART when a newline ('\n', LF) appears on stdout. @@ -27,6 +28,7 @@ menu "Newlib" choice NEWLIB_STDIN_LINE_ENDING prompt "Line ending for UART input" default NEWLIB_STDIN_LINE_ENDING_CR + depends on VFS_SUPPORT_IO help This option allows configuring which input sequence on UART produces a newline ('\n', LF) on stdin.