Skip to contentSkip to conversation

arm: am33xx: Default to enabling LTO

PATCH In review Tom Rini 1 participant 2 messages Sep 4 – Sep 11

Subsystems (3)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: am33xx: Default to enabling LTO

These platforms now sometimes trip up the size limits on SPL, when adding bug fixes or similar to the code. Enabling LTO gives us more size back without sacrificing functionality. Run-time tested on a Beaglebone Black.

---
 arch/arm/mach-omap2/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-omap2/Kconfig +1 -0
index 767ca904b610..8a246f962d18 100644
@@ -101,6 +101,7 @@ config AM33XX
 	select ARM_CORTEX_A8_CVE_2017_5715
 	select DM_EVENT
 	select SPECIFY_CONSOLE_INDEX
+	imply LTO
 	imply NAND_OMAP_ELM
 	imply NAND_OMAP_GPMC
 	imply SKIP_LOWLEVEL_INIT
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

These platforms now sometimes trip up the size limits on SPL, when adding bug fixes or similar to the code. Enabling LTO gives us more size back without sacrificing functionality. Run-time tested on a Beaglebone Black.

Applied to u-boot/next, thanks!

[1/1] arm: am33xx: Default to enabling LTO

      commit: 69af8117d21e1d8e52792cd08b2d895194af9d18
Signature · 1 line
Tom