From 2ac1f5982ed0a1cc8ca4b3dca86db87ad03323b1 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 27 Apr 2023 10:59:45 +0200 Subject: [PATCH] configs: at91: sama5d2_icp_mmc: Enable CONFIG_LTO MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Adding just a tiny bit more code for sama5d2_icp_mmc leads to a SRAM image overflow. Fix this by enabling LTO for this board, so that such changes still can be made to the common U-Boot code. Signed-off-by: Stefan Roese Cc: Pali Rohár Tested-by: Mihai Sain [eugen.hristev@microchip.com: restrict patch just to CONFIG_LTO] Signed-off-by: Eugen Hristev --- configs/sama5d2_icp_mmc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama5d2_icp_mmc_defconfig b/configs/sama5d2_icp_mmc_defconfig index 185694d431..9456b9e1e1 100644 --- a/configs/sama5d2_icp_mmc_defconfig +++ b/configs/sama5d2_icp_mmc_defconfig @@ -27,6 +27,7 @@ CONFIG_SPL_FS_FAT=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_SYS_LOAD_ADDR=0x22000000 CONFIG_DEBUG_UART=y +CONFIG_LTO=y CONFIG_ENV_VARS_UBOOT_CONFIG=y CONFIG_FIT=y CONFIG_SD_BOOT=y -- 2.39.5