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

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


The following commit(s) were added to refs/heads/master by this push:
     new de5bfd40404 !boards/nucleo-g431rb: Use small defaults for NSH.
de5bfd40404 is described below

commit de5bfd40404953f6c75cf4401ef4ed0a892c2677
Author: Xiang Xiao <[email protected]>
AuthorDate: Tue Nov 17 14:32:08 2026 +0800

    !boards/nucleo-g431rb: Use small defaults for NSH.
    
    Select DEFAULT_SMALL to keep the NSH configuration within the 128 KiB
    flash limit as the OS grows. Keep pthread support and FILE streams
    enabled for OSTEST, and refresh the defconfig.
    
    BREAKING CHANGE: Small defaults disable optional OS APIs and many NSH
    commands. Remove CONFIG_DEFAULT_SMALL=y and regenerate the configuration
    to restore the previous defaults, subject to the flash capacity limit.
    
    Assisted-by: Copilot-SDK:gpt-6.1-sol
    Co-authored-by: Copilot <[email protected]>
    Signed-off-by: Xiang Xiao <[email protected]>
---
 boards/arm/stm32g4/nucleo-g431rb/configs/nsh/defconfig | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/boards/arm/stm32g4/nucleo-g431rb/configs/nsh/defconfig 
b/boards/arm/stm32g4/nucleo-g431rb/configs/nsh/defconfig
index 4f5e601644d..85cde60a7df 100644
--- a/boards/arm/stm32g4/nucleo-g431rb/configs/nsh/defconfig
+++ b/boards/arm/stm32g4/nucleo-g431rb/configs/nsh/defconfig
@@ -6,11 +6,9 @@
 # modifications.
 #
 # CONFIG_ARCH_FPU is not set
-# CONFIG_NSH_ARGCAT is not set
-# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+# CONFIG_DISABLE_PTHREAD is not set
 # CONFIG_NSH_DISABLE_IFCONFIG is not set
 # CONFIG_NSH_DISABLE_PS is not set
-# CONFIG_SYSTEM_DD is not set
 # CONFIG_TLS_EMUTLS is not set
 CONFIG_ARCH="arm"
 CONFIG_ARCH_BOARD="nucleo-g431rb"
@@ -25,18 +23,14 @@ CONFIG_ARCH_INTERRUPTSTACK=2048
 CONFIG_ARCH_STACKDUMP=y
 CONFIG_BOARD_LOOPSPERMSEC=8499
 CONFIG_BUILTIN=y
+CONFIG_DEFAULT_SMALL=y
+CONFIG_FILE_STREAM=y
 CONFIG_HAVE_CXX=y
 CONFIG_HAVE_CXXINITIALIZE=y
 CONFIG_INIT_ENTRYPOINT="nsh_main"
 CONFIG_INTELHEX_BINARY=y
-CONFIG_LINE_MAX=64
 CONFIG_LTO_FULL=y
 CONFIG_NSH_BUILTIN_APPS=y
-CONFIG_NSH_DISABLE_DU=y
-CONFIG_NSH_DISABLE_UPTIME=y
-CONFIG_NSH_FILEIOSIZE=512
-CONFIG_NSH_READLINE=y
-CONFIG_PREALLOC_TIMERS=4
 CONFIG_RAM_SIZE=22528
 CONFIG_RAM_START=0x20000000
 CONFIG_RAW_BINARY=y

Reply via email to