Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    93b19653
    Makefile: Only build dtc if needed · 93b19653
    Simon Glass authored
    
    At present U-Boot always builds dtc if CONFIG_OF_CONTROL is defined, even
    when DTC is provided. The built dtc is not actually used, so this is a
    waste of time.
    
    Update the Makefile logic to build dtc only if one is not provided to the
    build with the DTC variable. Add documentation to explain this.
    
    This saves about 3.5 seconds of elapsed time on a clean build of
    sandbox_spl for me.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    93b19653
    History
    Makefile: Only build dtc if needed
    Simon Glass authored
    
    At present U-Boot always builds dtc if CONFIG_OF_CONTROL is defined, even
    when DTC is provided. The built dtc is not actually used, so this is a
    waste of time.
    
    Update the Makefile logic to build dtc only if one is not provided to the
    build with the DTC variable. Add documentation to explain this.
    
    This saves about 3.5 seconds of elapsed time on a clean build of
    sandbox_spl for me.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>