Repository navigation
boards/arm: shrink flash for ostest on lm3s6965, stm32g4, and quickfeather - #21219
Conversation
|
nucleo-g431kb:nsh also builds ostest and overflows with nuttx-apps#3931: Linux (arm-stm32l-u-g) Fix: trim boards/arm/stm32g4/nucleo-g431kb/configs/nsh/defconfig too. |
f203908 to
9968ec1
Compare
|
9968ec1 to
f5f7e67
Compare
Trimmed boards/arm/stm32g4/nucleo-g431kb/configs/nsh/defconfig as well (disabled C++ runtime and the same 15 unused NSH commands). This frees ~4 to 5 KiB, comfortably resolving the 952-byte overflow |
f5f7e67 to
229b7ec
Compare
|
CI fails at the defconfig normalize check: savedefconfig removes lines from the two stm32g4 defconfigs. |
@Swatantra-66 you were faster |
Yes, I caught the normalization diffs and stripped the redundant options right away. The CI merge build is running clean against latest master now |
…ather Configurations lm3s6965-ek:qemu-flat, b-g431b-esc1:nsh, nucleo-g431kb:nsh, and quickfeather:nsh build testing/ostest and operate near flash capacity. Expanding ostest with new tests (e.g. pthread_sigqueue) causes these configurations to overflow flash during build. Free flash headroom using existing options: - lm3s6965-ek/qemu-flat: disable unused network utilities (TFTP client, Telnet daemon, Netcat, NTP client, and network statistics). - b-g431b-esc1/nsh: disable unused C++ runtime support, button driver, and unused NSH commands (basename, cmp, df, dirname, hexdump, losetup, mkdir, mkrd, mount, rmdir, time, umount, wget, xd). - nucleo-g431kb/nsh: disable unused C++ runtime support and unused NSH commands (basename, cmp, df, dirname, hexdump, losetup, mkdir, mkrd, mount, rmdir, time, umount, wget, xd). - quickfeather/nsh: disable unused NSH commands (basename, cmp, df, dirname, hexdump, losetup, mkdir, mkrd, mount, rmdir, time, umount, wget, xd). Signed-off-by: Swatantra Yadav <[email protected]> Assisted-by: Google Gemini
229b7ec to
1deb583
Compare
Summary
Configurations
lm3s6965-ek:qemu-flatandb-g431b-esc1:nshboth buildtesting/ostestand operate near flash capacity. Expandingostestwith additional tests (e.g.,pthread_sigqueuein apache/nuttx-apps#3931) causes both configurations to overflow flash during CI build.This patch frees flash headroom in both configurations using existing options:
lm3s6965-ek/qemu-flat: disable unused network utilities (TFTP client, Telnet daemon, Netcat, NTP client, and network statistics), freeing ~11 KB.b-g431b-esc1/nsh: disable unused C++ runtime support and unused NSH commands (ifconfig, df, mkrd), freeing ~4.5 KB.Impact
No functional regression. Frees flash space in both board configurations so ostest tests fit comfortably.
Testing
CI build test on
arm-tiandarm-stm32l-u-g.