This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 09436396ca7f0441da844d4b5d91bb85f73674b2
Author: zhangyuan29 <[email protected]>
AuthorDate: Tue Sep 1 15:58:29 2026 +0800

    libc/stdio: Default STDIO_DISABLE_BUFFERING to DEFAULT_SMALL.
    
    Tiny (DEFAULT_SMALL) systems are size-sensitive and rarely use
    buffered stdio on hot output paths. Default the option to
    DEFAULT_SMALL so small systems drop the associated static stdio
    code automatically; non-small systems keep buffering on.
    
    This changes the in-tree configurations that select DEFAULT_SMALL and
    FILE_STREAM without setting STDIO_DISABLE_BUFFERING (53 of them, for
    example olimexino-stm32:nsh, stm32f103-minimum:* and rv-virt:smp): they
    now build without stdio buffering, and a STDIO_BUFFER_SIZE they set, as
    nucleo-f302r8:can does, no longer applies.
    
    Refresh the defconfigs that the new default makes non-canonical: those
    that set STDIO_DISABLE_BUFFERING, which is now the default for them, or
    STDIO_BUFFER_SIZE, which is now hidden.
    
    Signed-off-by: zhangyuan29 <[email protected]>
    Signed-off-by: ganjing <[email protected]>
---
 boards/arm/phy62xx/phy6222/configs/nsh/defconfig            | 1 -
 boards/arm/phy62xx/phy6222/configs/phy_sbp/defconfig        | 1 -
 boards/arm/stm32f3/nucleo-f302r8/configs/can/defconfig      | 1 -
 boards/arm/stm32l1/stm32ldiscovery/configs/chrono/defconfig | 1 -
 boards/avr/avrdx/breadxavr/configs/ws2812/defconfig         | 1 -
 libs/libc/stdio/Kconfig                                     | 2 +-
 6 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/boards/arm/phy62xx/phy6222/configs/nsh/defconfig 
b/boards/arm/phy62xx/phy6222/configs/nsh/defconfig
index e93a1c14377..7161c4da16a 100644
--- a/boards/arm/phy62xx/phy6222/configs/nsh/defconfig
+++ b/boards/arm/phy62xx/phy6222/configs/nsh/defconfig
@@ -41,6 +41,5 @@ CONFIG_SCHED_WAITPID=y
 CONFIG_START_DAY=19
 CONFIG_START_MONTH=5
 CONFIG_START_YEAR=2013
-CONFIG_STDIO_DISABLE_BUFFERING=y
 CONFIG_SYSTEM_NSH=y
 CONFIG_TASK_NAME_SIZE=0
diff --git a/boards/arm/phy62xx/phy6222/configs/phy_sbp/defconfig 
b/boards/arm/phy62xx/phy6222/configs/phy_sbp/defconfig
index 9ed2ec800f3..ec8240e6726 100644
--- a/boards/arm/phy62xx/phy6222/configs/phy_sbp/defconfig
+++ b/boards/arm/phy62xx/phy6222/configs/phy_sbp/defconfig
@@ -70,6 +70,5 @@ CONFIG_SCHED_WAITPID=y
 CONFIG_START_DAY=19
 CONFIG_START_MONTH=5
 CONFIG_START_YEAR=2013
-CONFIG_STDIO_DISABLE_BUFFERING=y
 CONFIG_SYSTEM_NSH=y
 CONFIG_TASK_NAME_SIZE=0
diff --git a/boards/arm/stm32f3/nucleo-f302r8/configs/can/defconfig 
b/boards/arm/stm32f3/nucleo-f302r8/configs/can/defconfig
index 5cdace069d7..fdd07a98fc1 100644
--- a/boards/arm/stm32f3/nucleo-f302r8/configs/can/defconfig
+++ b/boards/arm/stm32f3/nucleo-f302r8/configs/can/defconfig
@@ -44,7 +44,6 @@ CONFIG_SCHED_WAITPID=y
 CONFIG_START_DAY=6
 CONFIG_START_MONTH=12
 CONFIG_START_YEAR=2011
-CONFIG_STDIO_BUFFER_SIZE=255
 CONFIG_STM32_CAN1=y
 CONFIG_STM32_CAN_TSEG1=15
 CONFIG_STM32_CAN_TSEG2=2
diff --git a/boards/arm/stm32l1/stm32ldiscovery/configs/chrono/defconfig 
b/boards/arm/stm32l1/stm32ldiscovery/configs/chrono/defconfig
index c2c696a3330..9c820183bdb 100644
--- a/boards/arm/stm32l1/stm32ldiscovery/configs/chrono/defconfig
+++ b/boards/arm/stm32l1/stm32ldiscovery/configs/chrono/defconfig
@@ -55,7 +55,6 @@ CONFIG_SLCD=y
 CONFIG_START_DAY=19
 CONFIG_START_MONTH=5
 CONFIG_START_YEAR=2013
-CONFIG_STDIO_DISABLE_BUFFERING=y
 CONFIG_STM32_JTAG_SW_ENABLE=y
 CONFIG_STM32_LCD=y
 CONFIG_STM32_PWR=y
diff --git a/boards/avr/avrdx/breadxavr/configs/ws2812/defconfig 
b/boards/avr/avrdx/breadxavr/configs/ws2812/defconfig
index 7f95ca3fd7e..088ca1c007d 100644
--- a/boards/avr/avrdx/breadxavr/configs/ws2812/defconfig
+++ b/boards/avr/avrdx/breadxavr/configs/ws2812/defconfig
@@ -47,7 +47,6 @@ CONFIG_SCHED_TICKLESS_ALARM=y
 CONFIG_START_DAY=16
 CONFIG_START_MONTH=6
 CONFIG_START_YEAR=2011
-CONFIG_STDIO_BUFFER_SIZE=0
 CONFIG_SYSLOG_CONSOLE=y
 CONFIG_SYSTEM_NSH=y
 CONFIG_TASK_NAME_SIZE=0
diff --git a/libs/libc/stdio/Kconfig b/libs/libc/stdio/Kconfig
index 68fdbafd255..8af81443630 100644
--- a/libs/libc/stdio/Kconfig
+++ b/libs/libc/stdio/Kconfig
@@ -29,7 +29,7 @@ menu "Standard C I/O"
 config STDIO_DISABLE_BUFFERING
        bool "Disable STDIO Buffering"
        depends on FILE_STREAM
-       default n
+       default DEFAULT_SMALL
        ---help---
                Tiny systems may need to disable all support for I/O buffering 
in
                order to minimize the memory footprint.

Reply via email to