
On Thu, Apr 27, 2023 at 11:26:46AM +0200, Stefan Roese wrote:
Hi Eugen,
On 4/27/23 11:19, Eugen Hristev wrote:
Hi Stefan,
Thank you for the patch.
This I guess is a workaround such that you can add a bit more of code. In the end, it's not scalable, and we have to find a better way, probably by removing some of the code to make the SPL smaller.
U-Boot image size increase resulting in overflowing some limits is a common problem, especially in SPL. Enabling LTO gives quite some good improvements in image size decrease. So I don't think it's an workaround.
How does this impact the size? How much we are gaining ?
I did not measure this. I just checked that this target compiles clean again with LTO enabled and the MMC related patches applied.
Note that buildman already has flags to tell you how much the size changed and in what functions between commits.