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
The following commit(s) were added to refs/heads/master by this push:
new 6a708fcab03 boards/same70-qmtech: enable LTO in the mcuboot-loader
configuration
6a708fcab03 is described below
commit 6a708fcab0372a9ff5de2217e2832f26259e608f
Author: Daniel P. Carvalho <[email protected]>
AuthorDate: Thu Oct 22 19:36:14 2026 -0300
boards/same70-qmtech: enable LTO in the mcuboot-loader configuration
The same70-qmtech:mcuboot-loader target fills its 128 KB flash to near
capacity (99.7%, about 440 bytes free), so any growth of the image breaks
the CI build. Updating MCUboot (apache/nuttx-apps#3894) adds about 370
bytes and fails with:
arm-none-eabi-ld: nuttx section `.ramfunc' will not fit in region `flash'
arm-none-eabi-ld: region `flash' overflowed by 120 bytes
Following the precedent in commit 8f3060ed52 for
same70-xplained:mcuboot-loader
and commit ef87bdfd25 for the stm32g4 cansock configurations, enable
CONFIG_LTO_FULL=y. This drops flash usage to about 85-87% (about 17 KB of
headroom) without dropping any application or feature.
Only the build was checked, the board is not available to run the loader.
Assisted-by: Claude Code:claude-sonnet-5-5
Signed-off-by: Daniel P. Carvalho <[email protected]>
---
boards/arm/samv7/same70-qmtech/configs/mcuboot-loader/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/boards/arm/samv7/same70-qmtech/configs/mcuboot-loader/defconfig
b/boards/arm/samv7/same70-qmtech/configs/mcuboot-loader/defconfig
index f0717bd9b00..69a43ad9291 100644
--- a/boards/arm/samv7/same70-qmtech/configs/mcuboot-loader/defconfig
+++ b/boards/arm/samv7/same70-qmtech/configs/mcuboot-loader/defconfig
@@ -37,6 +37,7 @@ CONFIG_FS_PROCFS=y
CONFIG_INIT_ENTRYPOINT="mcuboot_loader_main"
CONFIG_LIBM_NONE=y
CONFIG_LINE_MAX=64
+CONFIG_LTO_FULL=y
CONFIG_MCUBOOT_BOOTLOADER=y
CONFIG_MCUBOOT_ENABLE_LOGGING=y
CONFIG_MMCSD_MULTIBLOCK_LIMIT=1