Commit 9bf215b0355bddc5792d31b6c41a8bd1bfa9e641
Committed by
Tom Rini
1 parent
f9c235fd99
Exists in
master
and in
49 other branches
kbuild: use shorten logs for mkimage rules
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing 6 changed files with 34 additions and 29 deletions Side-by-side Diff
Makefile
... | ... | @@ -746,6 +746,10 @@ |
746 | 746 | quiet_cmd_objcopy = OBJCOPY $@ |
747 | 747 | cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ |
748 | 748 | |
749 | +quiet_cmd_mkimage = UIMAGE $@ | |
750 | +cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \ | |
751 | + $(if $(KBUILD_VERBOSE:1=), >/dev/null) | |
752 | + | |
749 | 753 | all: $(ALL-y) |
750 | 754 | |
751 | 755 | PHONY += dtbs |
752 | 756 | |
753 | 757 | |
754 | 758 | |
755 | 759 | |
... | ... | @@ -789,25 +793,22 @@ |
789 | 793 | CONFIG_SYS_UBOOT_START := 0 |
790 | 794 | endif |
791 | 795 | |
792 | -u-boot.img: u-boot.bin | |
793 | - tools/mkimage -A $(ARCH) -T firmware -C none \ | |
794 | - -O u-boot -a $(CONFIG_SYS_TEXT_BASE) \ | |
795 | - -e $(CONFIG_SYS_UBOOT_START) \ | |
796 | - -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" \ | |
797 | - -d $< $@ | |
796 | +MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \ | |
797 | + -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ | |
798 | + -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" | |
798 | 799 | |
799 | -u-boot.imx: u-boot.bin | |
800 | - $(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@ | |
800 | +MKIMAGEFLAGS_u-boot.kwb = -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \ | |
801 | + -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) | |
801 | 802 | |
802 | -u-boot.kwb: u-boot.bin | |
803 | - tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \ | |
804 | - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ | |
803 | +MKIMAGEFLAGS_u-boot.pbl = -n $(CONFIG_SYS_FSL_PBL_RCW) \ | |
804 | + -R $(CONFIG_SYS_FSL_PBL_PBI) -T pblimage | |
805 | 805 | |
806 | -u-boot.pbl: u-boot.bin | |
807 | - tools/mkimage -n $(CONFIG_SYS_FSL_PBL_RCW) \ | |
808 | - -R $(CONFIG_SYS_FSL_PBL_PBI) -T pblimage \ | |
809 | - -d $< $@ | |
806 | +u-boot.img u-boot.kwb u-boot.pbl: u-boot.bin FORCE | |
807 | + $(call if_changed,mkimage) | |
810 | 808 | |
809 | +u-boot.imx: u-boot.bin | |
810 | + $(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@ | |
811 | + | |
811 | 812 | u-boot.sha1: u-boot.bin |
812 | 813 | tools/ubsha1 u-boot.bin |
813 | 814 | |
... | ... | @@ -837,9 +838,10 @@ |
837 | 838 | u-boot-with-spl.imx u-boot-with-nand-spl.imx: spl/u-boot-spl.bin u-boot.bin |
838 | 839 | $(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@ |
839 | 840 | |
840 | -u-boot.ubl: u-boot-with-spl.bin | |
841 | - tools/mkimage -n $(UBL_CONFIG) -T ublimage \ | |
842 | - -e $(CONFIG_SYS_TEXT_BASE) -d $< u-boot.ubl | |
841 | +MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE) | |
842 | + | |
843 | +u-boot.ubl: u-boot-with-spl.bin FORCE | |
844 | + $(call if_changed,mkimage) | |
843 | 845 | |
844 | 846 | u-boot.ais: spl/u-boot-spl.bin u-boot.img |
845 | 847 | tools/mkimage -s -n $(if $(CONFIG_AIS_CONFIG_FILE),$(srctree)/$(CONFIG_AIS_CONFIG_FILE:"%"=%),"/dev/null") \ |
arch/arm/cpu/armv7/am33xx/config.mk
arch/arm/cpu/armv7/omap3/config.mk
arch/arm/cpu/armv7/omap4/config.mk
arch/arm/cpu/armv7/omap5/config.mk
spl/Makefile
... | ... | @@ -169,13 +169,16 @@ |
169 | 169 | $(shell $(LD) --version | \ |
170 | 170 | sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') |
171 | 171 | |
172 | -$(OBJTREE)/MLO: $(obj)/u-boot-spl.bin | |
173 | - $(OBJTREE)/tools/mkimage -T omapimage \ | |
174 | - -a $(CONFIG_SPL_TEXT_BASE) -d $< $@ | |
172 | +quiet_cmd_mkimage = UIMAGE $@ | |
173 | +cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \ | |
174 | + $(if $(KBUILD_VERBOSE:1=), >/dev/null) | |
175 | 175 | |
176 | -$(OBJTREE)/MLO.byteswap: $(obj)/u-boot-spl.bin | |
177 | - $(OBJTREE)/tools/mkimage -T omapimage -n byteswap \ | |
178 | - -a $(CONFIG_SPL_TEXT_BASE) -d $< $@ | |
176 | +MKIMAGEFLAGS_MLO = -T omapimage -a $(CONFIG_SPL_TEXT_BASE) | |
177 | + | |
178 | +MKIMAGEFLAGS_MLO.byteswap = -T omapimage -n byteswap -a $(CONFIG_SPL_TEXT_BASE) | |
179 | + | |
180 | +MLO MLO.byteswap: $(obj)/u-boot-spl.bin | |
181 | + $(call if_changed,mkimage) | |
179 | 182 | |
180 | 183 | $(objtree)/SPL: $(obj)/u-boot-spl.bin |
181 | 184 | $(Q)$(MAKE) $(build)=spl/arch/arm/imx-common $@ |