diff mbox series

arm64: imx: imx8mp-beacon: Enable LTO

Message ID 20230529180834.350299-1-aford173@gmail.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series arm64: imx: imx8mp-beacon: Enable LTO | expand

Commit Message

Adam Ford May 29, 2023, 6:08 p.m. UTC
With LTO enabled, SPL shrinks about 10K and U-Boot shrinks
about 30K.

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

Comments

Stefano Babic July 13, 2023, 9:59 a.m. UTC | #1
> With LTO enabled, SPL shrinks about 10K and U-Boot shrinks
> about 30K.
> Signed-off-by: Adam Ford <aford173@gmail.com>
> diff --git a/configs/imx8mp_beacon_defconfig b/configs/imx8mp_beacon_defconfig
> index e8ddd537c0..86d0de3a30 100644
> --- a/configs/imx8mp_beacon_defconfig
> +++ b/configs/imx8mp_beacon_defconfig
> @@ -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
diff mbox series

Patch

diff --git a/configs/imx8mp_beacon_defconfig b/configs/imx8mp_beacon_defconfig
index e8ddd537c0..86d0de3a30 100644
--- a/configs/imx8mp_beacon_defconfig
+++ b/configs/imx8mp_beacon_defconfig
@@ -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