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

jerpelea 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 43baf816bdb boards/arm/stm32l4: shrink flash for nucleo-l432kc:wgen
43baf816bdb is described below

commit 43baf816bdb209f5ef4ea513a87f87d1c2920767
Author: Swatantra Yadav <[email protected]>
AuthorDate: Mon Nov 2 17:21:56 2026 +0530

    boards/arm/stm32l4: shrink flash for nucleo-l432kc:wgen
    
    The nucleo-l432kc:wgen configuration builds both DAC waveform generator
    drivers and testing/ostest, and operates near flash capacity (256 KiB).
    Expanding ostest with new tests (e.g. pthread_sigqueue) causes this
    configuration to overflow flash by 408 bytes during CI builds
    (Linux arm-stm32l-u-g).
    
    Free flash headroom using existing options:
    - Disable unused C++ runtime support (CONFIG_HAVE_CXX,
      CONFIG_HAVE_CXXINITIALIZE).
    - Disable unused NSH commands (basename, cmp, df, dirname, hexdump,
      losetup, mkdir, mkrd, mount, rmdir, time, umount, wget, xd).
    
    This frees over 5 KiB of flash space, providing ample headroom for
    future testing and libc expansion.
    
    Signed-off-by: Swatantra Yadav <[email protected]>
    Assisted-by: Google Gemini
---
 boards/arm/stm32l4/nucleo-l432kc/configs/wgen/defconfig | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/boards/arm/stm32l4/nucleo-l432kc/configs/wgen/defconfig 
b/boards/arm/stm32l4/nucleo-l432kc/configs/wgen/defconfig
index 182919157e5..7c57162adf8 100644
--- a/boards/arm/stm32l4/nucleo-l432kc/configs/wgen/defconfig
+++ b/boards/arm/stm32l4/nucleo-l432kc/configs/wgen/defconfig
@@ -7,7 +7,6 @@
 #
 # CONFIG_ARCH_FPU is not set
 # CONFIG_NSH_ARGCAT is not set
-# CONFIG_NSH_CMDOPT_HEXDUMP is not set
 # CONFIG_NSH_DISABLE_IFCONFIG is not set
 # CONFIG_NSH_DISABLE_PS is not set
 CONFIG_ANALOG=y
@@ -27,13 +26,25 @@ CONFIG_DAC=y
 CONFIG_DEBUG_SYMBOLS=y
 CONFIG_EXAMPLES_ALARM=y
 CONFIG_EXAMPLES_RANDOM=y
-CONFIG_HAVE_CXX=y
-CONFIG_HAVE_CXXINITIALIZE=y
 CONFIG_INIT_ENTRYPOINT="dac_wgen_main"
 CONFIG_INTELHEX_BINARY=y
 CONFIG_LINE_MAX=64
 CONFIG_MM_REGIONS=2
 CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_DISABLE_BASENAME=y
+CONFIG_NSH_DISABLE_CMP=y
+CONFIG_NSH_DISABLE_DF=y
+CONFIG_NSH_DISABLE_DIRNAME=y
+CONFIG_NSH_DISABLE_HEXDUMP=y
+CONFIG_NSH_DISABLE_LOSETUP=y
+CONFIG_NSH_DISABLE_MKDIR=y
+CONFIG_NSH_DISABLE_MKRD=y
+CONFIG_NSH_DISABLE_MOUNT=y
+CONFIG_NSH_DISABLE_RMDIR=y
+CONFIG_NSH_DISABLE_TIME=y
+CONFIG_NSH_DISABLE_UMOUNT=y
+CONFIG_NSH_DISABLE_WGET=y
+CONFIG_NSH_DISABLE_XD=y
 CONFIG_NSH_FILEIOSIZE=512
 CONFIG_NSH_READLINE=y
 CONFIG_NUCLEOL432KC_DAC_WGEN=y

Reply via email to