Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    a55014d0
    Makefile: Allow LTO to be disabled for a build · a55014d0
    Simon Glass authored and Tom Rini's avatar Tom Rini committed
    
    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's avatarSimon Glass <sjg@chromium.org>
    a55014d0
    History
    Makefile: Allow LTO to be disabled for a build
    Simon Glass authored and Tom Rini's avatar Tom Rini committed
    
    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's avatarSimon Glass <sjg@chromium.org>