From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 24 Oct 2020 10:51:38 -0400 Subject: [PATCH] Makefile: Fix u-boot-nodtb.bin target In-Reply-To: <20201007133940.21028-1-pali@kernel.org> References: <20201007133940.21028-1-pali@kernel.org> Message-ID: <20201024145138.GC14816@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 07, 2020 at 03:39:40PM +0200, Pali Roh?r wrote: > This change fixes two issues when building u-boot-nodtb.bin target: > > * Remove intermediate binary u-boot-nodtb.bin from disk when static_rela > call (which modifies u-boot-nodtb.bin binary) failed. It is required > because previous objcopy call creates binary and static_rela finish it. > > * Do not call static_rela cmd when u-boot-nodtb.bin binary was not > created/updated by previous objcopy call. > > Second fix would ensure that u-boot-nodtb.bin binary is not updated when > all prerequisites were up-to-date. And therefore final binary u-boot.bin > is not updated in case all prerequisites were not modified and were > up-to-date. > > Now running 'make SOURCE_DATE_EPOCH=0 u-boot.bin' second time now does not > touch u-boot.bin binary in case nothing was modified, so GNU make can > correctly detect that everything is up-to-date. > > Signed-off-by: Pali Roh?r > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: