[PATCH v1] arm: Kconfig: enable LTO for ARCH_K3

Anshul Dalal anshuld at ti.com
Mon Jun 16 10:04:30 CEST 2025


CONFIG_LTO enables Link Time Optimizations that helps in reducing binary
size. The config has been validated on all K3 platforms so can be safely
enabled.

Signed-off-by: Anshul Dalal <anshuld at ti.com>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 6ff3f2750ea..ab7ed0b8e77 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -820,6 +820,7 @@ config ARCH_K3
 	select FIT
 	select REGEX
 	select FIT_SIGNATURE if ARM64
+	select LTO
 	imply TI_SECURE_DEVICE
 
 config ARCH_OMAP2PLUS
-- 
2.49.0



More information about the U-Boot mailing list