From 8ff533beb37eeef1f288c467acd7c50b542464eb Mon Sep 17 00:00:00 2001 From: vrmay23 Date: Sun, 25 May 2025 17:41:10 +0200 Subject: [PATCH] examples/posix_stdio: Fix Kconfig to define default stack size Fix the Kconfig file for the posix_stdio example by adding the STACKSIZE symbol and setting it to DEFAULT_TASK_STACKSIZE. This change ensures that the example builds properly and respects system-wide stack size configuration. Signed-off-by: Vinicius May --- examples/posix_stdio/Kconfig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/posix_stdio/Kconfig b/examples/posix_stdio/Kconfig index 3c41e975f..8980223a1 100644 --- a/examples/posix_stdio/Kconfig +++ b/examples/posix_stdio/Kconfig @@ -7,7 +7,8 @@ config EXAMPLES_POSIX_STDIO bool "Posix stdio example" default n ---help--- - Enable POSIX stdio example that shows how to use open(), write() and close() via /dev/console. + Enable POSIX stdio example that shows how to use open(), write() and + close() via /dev/console. config EXAMPLES_POSIX_STDIO_PROGNAME string "Program name" @@ -15,6 +16,11 @@ config EXAMPLES_POSIX_STDIO_PROGNAME depends on EXAMPLES_POSIX_STDIO config EXAMPLES_POSIX_STDIO_PRIORITY - int "POSIX_STDIO test priority" + int "POSIX_STDIO priority" default 100 depends on EXAMPLES_POSIX_STDIO + +config EXAMPLES_POSIX_STDIO_STACKSIZE + int "POSIX_STDIO stack size" + default DEFAULT_TASK_STACKSIZE + depends on EXAMPLES_POSIX_STDIO