Skip to contentSkip to conversation

arm: Kconfig: enable LTO for ARCH_K3

PATCH In review Anshul Dalal 2 participants 2 messages Jun 16, 2025 – Jun 26, 2025 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Kconfig: enable LTO for ARCH_K3

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.

---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index 6ff3f2750ea..ab7ed0b8e77 100644
@@ -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
Signature · 1 line
2.49.0
#1 lore raw
Quoted 5 lines · Anshul Dalal

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.

Applied to u-boot/next, thanks!

[1/1] arm: Kconfig: enable LTO for ARCH_K3

      commit: 5609f200d062a25c1b3baac94a78e3eef0a3cd75
Signature · 1 line
Tom