[PATCH 3/3] ARM: renesas: Enable LTO on R-Car

Marek Vasut marek.vasut+renesas at mailbox.org
Sun Feb 11 18:34:30 CET 2024


Enable LTO globally on Renesas R-Car platforms. This has been enabled
on a subset of boards already, but at this point it is safe to enable
it globally. This saves units or tens of kiB from the resulting build.

Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Niklas Söderlund <niklas.soderlund+renesas at ragnatech.se>
Cc: Paul Barker <paul.barker.ct at bp.renesas.com>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 6b072be2463..fde85dc0d53 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1076,6 +1076,7 @@ config ARCH_RMOBILE
 	select DM
 	select DM_SERIAL
 	select GPIO_EXTRA_HEADER
+	select LTO
 	imply BOARD_EARLY_INIT_F
 	imply CMD_DM
 	imply FAT_WRITE
-- 
2.43.0



More information about the U-Boot mailing list