public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] arm64: imx: imx8mp-beacon:  Enable LTO
@ 2023-05-29 18:08 Adam Ford
  2023-07-13  9:59 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2023-05-29 18:08 UTC (permalink / raw)
  To: u-boot; +Cc: sbabic, aford, Adam Ford

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
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] arm64: imx: imx8mp-beacon:  Enable LTO
  2023-05-29 18:08 [PATCH] arm64: imx: imx8mp-beacon: Enable LTO Adam Ford
@ 2023-07-13  9:59 ` sbabic
  0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2023-07-13  9:59 UTC (permalink / raw)
  To: Adam Ford, u-boot

> 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

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-13  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-29 18:08 [PATCH] arm64: imx: imx8mp-beacon: Enable LTO Adam Ford
2023-07-13  9:59 ` sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox