arm: Kconfig: enable LTO for ARCH_K3
authorAnshul Dalal <anshuld@ti.com>
Mon, 16 Jun 2025 08:04:30 +0000 (13:34 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 19:48:43 +0000 (13:48 -0600)
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@ti.com>
arch/arm/Kconfig

index 8795eac..ec3e626 100644 (file)
@@ -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