[PATCH 1/1] socfpga: vining: Enable LTO

Tom Rini trini at konsulko.com
Thu Apr 30 03:09:18 CEST 2026


This platform is often close to the binary size limit and minor changes
lead to exceeding image size. Enable LTO for this platform.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
Cc: Marek Vasut <marex at nabladev.com>
Cc: Tien Fong Chee <tien.fong.chee at altera.com>
---
 configs/socfpga_vining_fpga_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/socfpga_vining_fpga_defconfig b/configs/socfpga_vining_fpga_defconfig
index f698b86e59fa..a280869e2085 100644
--- a/configs/socfpga_vining_fpga_defconfig
+++ b/configs/socfpga_vining_fpga_defconfig
@@ -16,6 +16,7 @@ CONFIG_SPL_TEXT_BASE=0xFFFF0000
 CONFIG_SYS_BOOTM_LEN=0x2000000
 CONFIG_TARGET_SOCFPGA_SOFTING_VINING_FPGA=y
 CONFIG_ENV_OFFSET_REDUND=0x110000
+CONFIG_LTO=y
 CONFIG_TIMESTAMP=y
 CONFIG_FIT=y
 CONFIG_DISTRO_DEFAULTS=y
-- 
2.43.0



More information about the U-Boot mailing list