[PATCH 1/2] board: tbs2910: Enable Link Time Optimizations in defconfig

Soeren Moch smoch at web.de
Mon Mar 14 09:26:25 CET 2022


This saves about 12 kBytes image size and helps to stay within the
size limit.

Suggested-by: Tom Rini <trini at konsulko.com>
Signed-off-by: Soeren Moch <smoch at web.de>
---
Cc: Stefano Babic <sbabic at denx.de>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: u-boot at lists.denx.de

Unfortunately we already are at the size limit for U-Boot v2022.04-rc3.
Maybe Tom can pick up this patch directly, otherwise it's also fine for
me to take this through the imx tree.
---
 configs/tbs2910_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
index e1278f2e70..8a33160564 100644
--- a/configs/tbs2910_defconfig
+++ b/configs/tbs2910_defconfig
@@ -14,6 +14,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6q-tbs2910"
 CONFIG_PRE_CON_BUF_ADDR=0x7c000000
 CONFIG_CMD_HDMIDETECT=y
 CONFIG_AHCI=y
+CONFIG_LTO=y
 CONFIG_SUPPORT_RAW_INITRD=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
--
2.25.1



More information about the U-Boot mailing list