From 4c53a37ef6ec3de1d7115f39e57ac3af7e587a24 Mon Sep 17 00:00:00 2001 From: Joao Paulo Goncalves Date: Mon, 4 Sep 2023 15:13:24 -0300 Subject: toradex: verdin-imx8mm: Enable LTO optimization Enable LTO to help reducing SPL binary size to avoid problems with DDR training firmware appended to it by nxp mkimage tool. When SPL binary grows too much there is a chance of corrupting this DDR firmware or DDR controller accessing memory beyond 256KB TCM RAM limit making SPL crash. Upstream-Status: Inappropriate [other] LTO was already enabled on upstream for verdin-imx8mm by commit 546dd667aab0 ("verdin-imx8mm: various config additions and improvements") Signed-off-by: Joao Paulo Goncalves --- configs/verdin-imx8mm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig index a1eabf14fd..cadfa43258 100644 --- a/configs/verdin-imx8mm_defconfig +++ b/configs/verdin-imx8mm_defconfig @@ -18,6 +18,7 @@ CONFIG_SPL_SERIAL=y CONFIG_SPL_DRIVERS_MISC=y CONFIG_SPL=y CONFIG_IMX_BOOTAUX=y +CONFIG_LTO=y CONFIG_DISTRO_DEFAULTS=y CONFIG_SYS_LOAD_ADDR=0x48200000 CONFIG_FIT=y -- cgit v1.2.3