Re: [PATCH v3 2/2] Makefile: Only build dtc if needed

2021-10-19 Thread Tom Rini
On Wed, Sep 22, 2021 at 11:34:44AM -0600, Simon Glass wrote: > 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

[PATCH v3 2/2] Makefile: Only build dtc if needed

2021-09-22 Thread Simon Glass
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.