[PATCH v3 1/2] Makefile: Allow LTO to be disabled for a build

Tom Rini trini at konsulko.com
Sat Sep 3 03:54:26 CEST 2022


On Wed, Aug 03, 2022 at 12:13:08PM -0600, Simon Glass wrote:

> LTO (Link-Time Optimisation) is an very useful feature which can
> significantly reduce the size of U-Boot binaries. So far it has been
> made available for selected ARM boards and sandbox.
> 
> However, incremental builds are much slower when LTO is used. For example,
> an incremental build of sandbox takes 2.1 seconds on my machine, but 6.7
> seconds with LTO enabled.
> 
> Add a NO_LTO parameter to the build, similar to NO_SDL, so it can be
> disabled during development if needed, for faster builds.
> 
> Add some documentation about LTO while we are here.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220902/9bd20564/attachment.sig>


More information about the U-Boot mailing list