On Fri, Jan 12, 2024 at 3:00 PM Fabio Estevam <feste...@gmail.com> wrote: > > Hi Ye Li, > > On Fri, Jan 12, 2024 at 4:07 AM Ye Li <ye...@nxp.com> wrote: > > > > To work with commit 2f3c920(imx8m: workaround ROM serror), > > we need to enable the SError exception and install vector in SPL. > > > > Signed-off-by: Ye Li <ye...@nxp.com> > > Reviewed-by: Peng Fan <peng....@nxp.com> > > This causes an image increase that makes SPL to not fit into the > internal SRAM on some boards: > > https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/769422
To fix this problem, what if we enable LTO for all imx8m platforms? diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index b1937198402f..6617a631b4d6 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -7,19 +7,23 @@ config IMX8M select HAS_CAAM select ROM_UNIFIED_SECTIONS select ARMV8_CRYPTO + select LTO config IMX8MQ What do you think?