arm64: imx: imx8mp-beacon: Enable LTO
authorAdam Ford <aford173@gmail.com>
Mon, 29 May 2023 18:08:34 +0000 (13:08 -0500)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:58:18 +0000 (11:58 +0200)
With LTO enabled, SPL shrinks about 10K and U-Boot shrinks
about 30K.

Signed-off-by: Adam Ford <aford173@gmail.com>
configs/imx8mp_beacon_defconfig

index 99c4043..77a10b9 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_SYS_HAS_ARMV8_SECURE_BASE=y
 CONFIG_TARGET_IMX8MP_BEACON=y
 CONFIG_SYS_PROMPT="u-boot=> "
 CONFIG_SYS_MONITOR_LEN=524288
+CONFIG_LTO=y
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y