[PATCH v3 36/49] sunxi: Makefile: Drop explicit targets built by binman

Simon Glass sjg at chromium.org
Fri Jul 10 02:39:59 CEST 2020

On sunxi various files that need to be created by binman. It does not make
sense to enumerate these in the Makefile. They are described in the
configuration (devicetree) for each board and we can simply run binman
(always) to generate them.

This avoid sprinkling the Makefile with arch-specific code.

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Signed-off-by: Simon Glass <sjg at chromium.org>

(no changes since v1)

 Makefile | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 08d14c00ec..000482e482 100644
--- a/Makefile
+++ b/Makefile
@@ -920,7 +920,7 @@ INPUTS-$(CONFIG_EFI_APP) += u-boot-app.efi
 INPUTS-$(CONFIG_EFI_STUB) += u-boot-payload.efi
 # Build a combined spl + u-boot image for sunxi
 INPUTS-y += u-boot-sunxi-with-spl.bin
@@ -1604,10 +1604,7 @@ u-boot-x86-reset16.bin: u-boot FORCE
 endif # CONFIG_X86
 ifneq ($(CONFIG_ARCH_SUNXI),)
-ifeq ($(CONFIG_ARM64),)
-u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
-	$(call if_changed,binman)
+ifeq ($(CONFIG_ARM64),y)
 u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.itb FORCE
 	$(call if_changed,cat)

More information about the U-Boot mailing list