This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit ff4d9b2ec675d8dce3c4d57e36bb2384ffbea487 Author: zhangyuan29 <[email protected]> AuthorDate: Fri Nov 20 10:03:42 2026 +0800 boards/stm32l0538-disco/nsh: free flash for ordinary changes The configuration already uses full LTO and uses 64760 of the 65536 bytes of flash, so ordinary changes in core components push it over the limit. Disable the NSH alias command and the per-thread copies of emulated TLS variables, which no code in this image uses. Also enable LIBC_ATOMIC_NOINLINE: the atomic operations then disable and restore the interrupts in one copy of each function instead of an inline sequence at every call. Together this frees 3288 bytes. Signed-off-by: zhangyuan29 <[email protected]> --- boards/arm/stm32l0/stm32l0538-disco/configs/nsh/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/arm/stm32l0/stm32l0538-disco/configs/nsh/defconfig b/boards/arm/stm32l0/stm32l0538-disco/configs/nsh/defconfig index 50900060d53..7d2a9af8077 100644 --- a/boards/arm/stm32l0/stm32l0538-disco/configs/nsh/defconfig +++ b/boards/arm/stm32l0/stm32l0538-disco/configs/nsh/defconfig @@ -5,7 +5,9 @@ # You can then do "make savedefconfig" to generate a new defconfig file that includes your # modifications. # +# CONFIG_NSH_ALIAS is not set # CONFIG_SYSTEM_DD is not set +# CONFIG_TLS_EMUTLS is not set CONFIG_ARCH="arm" CONFIG_ARCH_BOARD="stm32l0538-disco" CONFIG_ARCH_BOARD_STM32L0538_DISCO=y @@ -29,6 +31,7 @@ CONFIG_EXAMPLES_HELLO=y CONFIG_EXPERIMENTAL=y CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INTELHEX_BINARY=y +CONFIG_LIBC_ATOMIC_NOINLINE=y CONFIG_LTO_FULL=y CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6 CONFIG_NSH_BUILTIN_APPS=y
