Commit ee0acfa28351531a2a0f42de84df5e8a24fa6dc4

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 9bf215b035

kbuild: use shorten logs for cat rules

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 1 changed file with 15 additions and 8 deletions Side-by-side Diff

... ... @@ -750,14 +750,17 @@
750 750 cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
751 751 $(if $(KBUILD_VERBOSE:1=), >/dev/null)
752 752  
  753 +quiet_cmd_cat = CAT $@
  754 +cmd_cat = cat $(filter-out $(PHONY), $^) > $@
  755 +
753 756 all: $(ALL-y)
754 757  
755 758 PHONY += dtbs
756 759 dtbs dts/dt.dtb: checkdtc u-boot
757 760 $(Q)$(MAKE) $(build)=dts dtbs
758 761  
759   -u-boot-dtb.bin: u-boot.bin dts/dt.dtb
760   - cat $^ >$@
  762 +u-boot-dtb.bin: u-boot.bin dts/dt.dtb FORCE
  763 + $(call if_changed,cat)
761 764  
762 765 OBJCOPYFLAGS_u-boot.hex := -O ihex
763 766  
764 767  
... ... @@ -879,13 +882,13 @@
879 882 rm spl/u-boot-spl-pad.bin
880 883  
881 884 ifeq ($(CONFIG_OF_SEPARATE),y)
882   -u-boot-dtb-tegra.bin: u-boot-nodtb-tegra.bin dts/dt.dtb
883   - cat $^ > $@
  885 +u-boot-dtb-tegra.bin: u-boot-nodtb-tegra.bin dts/dt.dtb FORCE
  886 + $(call if_changed,cat)
884 887 endif
885 888 endif
886 889  
887   -u-boot-img.bin: spl/u-boot-spl.bin u-boot.img
888   - cat spl/u-boot-spl.bin u-boot.img > $@
  890 +u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE
  891 + $(call if_changed,cat)
889 892  
890 893 # PPC4xx needs the SPL at the end of the image, since the reset vector
891 894 # is located at 0xfffffffc. So we can't use the "u-boot-img.bin" target
892 895  
... ... @@ -1053,11 +1056,15 @@
1053 1056 u-boot.lds: $(LDSCRIPT) prepare
1054 1057 $(CPP) $(cpp_flags) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
1055 1058  
  1059 +PHONY += nand_spl
1056 1060 nand_spl: prepare
1057 1061 $(Q)$(MAKE) $(build)=nand_spl/board/$(BOARDDIR) all
1058 1062  
1059   -u-boot-nand.bin: nand_spl u-boot.bin
1060   - cat nand_spl/u-boot-spl-16k.bin u-boot.bin > u-boot-nand.bin
  1063 +nand_spl/u-boot-spl-16k.bin: nand_spl
  1064 + @:
  1065 +
  1066 +u-boot-nand.bin: nand_spl/u-boot-spl-16k.bin u-boot.bin FORCE
  1067 + $(call if_changed,cat)
1061 1068  
1062 1069 spl/u-boot-spl.bin: tools prepare
1063 1070 $(Q)$(MAKE) obj=spl -f $(srctree)/spl/Makefile all