diff options
author | Pali Rohár <pali@kernel.org> | 2020-10-07 16:39:40 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-23 20:33:07 +0300 |
commit | ae897022d7bdf1466584f54655efe89e2f67ca82 (patch) | |
tree | e8cdbf8745d1b820baae4e4da23fd27e8304c299 /configs/uniphier_v7_defconfig | |
parent | 7a462740d09f16a060ac74873a708214524c83d4 (diff) | |
download | u-boot-ae897022d7bdf1466584f54655efe89e2f67ca82.tar.xz |
Makefile: Fix u-boot-nodtb.bin target
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 <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/uniphier_v7_defconfig')
0 files changed, 0 insertions, 0 deletions