]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
udoo_neo: Select LTO
authorFabio Estevam <festevam@gmail.com>
Fri, 19 Jul 2024 20:33:09 +0000 (17:33 -0300)
committerFabio Estevam <festevam@gmail.com>
Mon, 22 Jul 2024 20:55:35 +0000 (17:55 -0300)
u-boot.img has grown in such a way that it overwrites the
environment region.

Select CONFIG_LTO to help reducing the U-Boot binary size
and add a build-time size check to avoid U-Boot to overlap
the environment region.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
configs/udoo_neo_defconfig

index 9f9ad0ad5ec799d98de064d4feebffe7407ae3dc..97e3b379835fd4057f3d27f18e75b19a3eee0aad 100644 (file)
@@ -19,6 +19,9 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_CMD_BMODE is not set
+CONFIG_LTO=y
+CONFIG_HAS_BOARD_SIZE_LIMIT=y
+CONFIG_BOARD_SIZE_LIMIT=523264
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTCOMMAND="run findfdt; run distro_bootcmd"
 CONFIG_SYS_PBSIZE=532