]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: at91: sama5d2_icp_mmc: Enable CONFIG_LTO
authorStefan Roese <sr@denx.de>
Thu, 27 Apr 2023 08:59:45 +0000 (10:59 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Mon, 24 Jul 2023 11:18:03 +0000 (14:18 +0300)
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 <sr@denx.de>
Cc: Pali Rohár <pali@kernel.org>
Tested-by: Mihai Sain <mihai.sain@microchip.com>
[eugen.hristev@microchip.com: restrict patch just to CONFIG_LTO]
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
configs/sama5d2_icp_mmc_defconfig

index 185694d43196c109b287c6ed7482087a45eae3ba..9456b9e1e13446bd589551cdf9f9693234d4f426 100644 (file)
@@ -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