Skip to contentSkip to conversation

arm64: imx: imx8mp-beacon: Enable LTO

PATCH New Adam Ford 2 participants 2 messages May 29, 2023 – Jul 13, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 arm64: imx: imx8mp-beacon: Enable LTO

With LTO enabled, SPL shrinks about 10K and U-Boot shrinks about 30K.

configs/imx8mp_beacon_defconfig +1 -0
index e8ddd537c0..86d0de3a30 100644
@@ -34,6 +34,7 @@ CONFIG_ARMV8_EA_EL3_FIRST=y
 CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000
 CONFIG_SYS_LOAD_ADDR=0x40480000
 CONFIG_SYS_MONITOR_LEN=524288
+CONFIG_LTO=y
 # CONFIG_ANDROID_BOOT_IMAGE is not set
 CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/1 arm64: imx: imx8mp-beacon: Enable LTO

Quoted 8 lines

With LTO enabled, SPL shrinks about 10K and U-Boot shrinks about 30K.

configs/imx8mp_beacon_defconfig +0 -0
index e8ddd537c0..86d0de3a30 100644

configs/imx8mp_beacon_defconfig CONFIG_ARMV8_EA_EL3_FIRST=y · line 40

Quoted 7 lines
configs/imx8mp_beacon_defconfig +1 -0
@@ -34,6 +34,7 @@ CONFIG_ARMV8_EA_EL3_FIRST=y
 CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000
 CONFIG_SYS_LOAD_ADDR=0x40480000
 CONFIG_SYS_MONITOR_LEN=524288
+CONFIG_LTO=y
 # CONFIG_ANDROID_BOOT_IMAGE is not set
 CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================