diff options
author | Joao Paulo Goncalves <joao.goncalves@toradex.com> | 2023-09-04 15:13:24 -0300 |
---|---|---|
committer | Joao Paulo Goncalves <joao.goncalves@toradex.com> | 2023-09-04 16:54:56 -0300 |
commit | 4c53a37ef6ec3de1d7115f39e57ac3af7e587a24 (patch) | |
tree | 52b34caa37013dd6402eb1d16137e7ef3d521aec | |
parent | c3f7734af6ff0b855c2a9df3627f4610aaf77777 (diff) |
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 <joao.goncalves@toradex.com>
-rw-r--r-- | configs/verdin-imx8mm_defconfig | 1 |
1 files changed, 1 insertions, 0 deletions
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 |