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.

Signed-off-by: Tom Rini <[email protected]>
---
 arch/arm/mach-omap2/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 767ca904b610..8a246f962d18 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -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
-- 
2.43.0

Reply via email to