From 8f3060ed522bcd143bb987a44ebd6ffd4da9a85c Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Tue, 15 Oct 2024 12:52:26 +0800 Subject: [PATCH] boards: Enable LTO option for same70-xplained/mcuboot-loader Avoid compilation errors due to insufficient flash in CI Configuration/Tool: same70-xplained/mcuboot-loader,CONFIG_ARM_TOOLCHAIN_GNU_EABI 2024-10-14 16:17:34 arm-none-eabi-ld: /github/workspace/sources/nuttx/nuttx section `.ramfunc' will not fit in region `flash' arm-none-eabi-ld: region `flash' overflowed by 52 bytes arm-none-eabi-ld: warning: /github/workspace/sources/nuttx/nuttx has a LOAD segment with RWX permissions make[1]: *** [Makefile:212: nuttx] Error 1 make: *** [tools/Unix.mk:551: nuttx] Error 2 make: Target 'all' not remade because of errors. Signed-off-by: yinshengkai --- .../arm/samv7/same70-xplained/configs/mcuboot-loader/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/arm/samv7/same70-xplained/configs/mcuboot-loader/defconfig b/boards/arm/samv7/same70-xplained/configs/mcuboot-loader/defconfig index 40cf453f869ac..afae0b32709cf 100644 --- a/boards/arm/samv7/same70-xplained/configs/mcuboot-loader/defconfig +++ b/boards/arm/samv7/same70-xplained/configs/mcuboot-loader/defconfig @@ -42,6 +42,7 @@ CONFIG_FAT_LFN=y CONFIG_FS_FAT=y CONFIG_FS_PROCFS=y CONFIG_INIT_ENTRYPOINT="mcuboot_loader_main" +CONFIG_LTO_FULL=y CONFIG_MCUBOOT_BOOTLOADER=y CONFIG_MCUBOOT_ENABLE_LOGGING=y CONFIG_MMCSD_MULTIBLOCK_LIMIT=1