[U-Boot] [PATCH 2/5] kbuild: sunxi: fix build rule of sunxi-spl.bin

Masahiro Yamada yamada.masahiro at socionext.com
Wed Feb 3 13:05:11 CET 2016


The build command for sunxi-spl.bin is constant, so it is pointless
to use $(call if_changed,...).  $(call cmd,...) is enough.

On the other hand, if the tools/mksunxiboot is updated, the resulted
output may be different.  Make the output image dependent on
tools/mksunxiboot.

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 scripts/Makefile.spl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index adabfcf..d8b3947 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -234,8 +234,8 @@ $(obj)/$(SPL_BIN).sfp: $(obj)/$(SPL_BIN).bin FORCE
 
 quiet_cmd_mksunxiboot = MKSUNXI $@
 cmd_mksunxiboot = $(objtree)/tools/mksunxiboot $< $@
-$(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin
-	$(call if_changed,mksunxiboot)
+$(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin $(objtree)/tools/mksunxiboot
+	$(call cmd,mksunxiboot)
 
 quiet_cmd_u-boot-spl = LD      $@
       cmd_u-boot-spl = (cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
-- 
1.9.1



More information about the U-Boot mailing list