kbuild: use shorten logs for mkimage rules
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
f9c235fd99
commit
9bf215b035
38
Makefile
38
Makefile
|
@ -746,6 +746,10 @@ endif
|
||||||
quiet_cmd_objcopy = OBJCOPY $@
|
quiet_cmd_objcopy = OBJCOPY $@
|
||||||
cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
|
cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
|
||||||
|
|
||||||
|
quiet_cmd_mkimage = UIMAGE $@
|
||||||
|
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||||
|
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||||
|
|
||||||
all: $(ALL-y)
|
all: $(ALL-y)
|
||||||
|
|
||||||
PHONY += dtbs
|
PHONY += dtbs
|
||||||
|
@ -789,25 +793,22 @@ ifndef CONFIG_SYS_UBOOT_START
|
||||||
CONFIG_SYS_UBOOT_START := 0
|
CONFIG_SYS_UBOOT_START := 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
u-boot.img: u-boot.bin
|
MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
|
||||||
tools/mkimage -A $(ARCH) -T firmware -C none \
|
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
|
||||||
-O u-boot -a $(CONFIG_SYS_TEXT_BASE) \
|
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
|
||||||
-e $(CONFIG_SYS_UBOOT_START) \
|
|
||||||
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" \
|
MKIMAGEFLAGS_u-boot.kwb = -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
|
||||||
-d $< $@
|
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
|
||||||
|
|
||||||
|
MKIMAGEFLAGS_u-boot.pbl = -n $(CONFIG_SYS_FSL_PBL_RCW) \
|
||||||
|
-R $(CONFIG_SYS_FSL_PBL_PBI) -T pblimage
|
||||||
|
|
||||||
|
u-boot.img u-boot.kwb u-boot.pbl: u-boot.bin FORCE
|
||||||
|
$(call if_changed,mkimage)
|
||||||
|
|
||||||
u-boot.imx: u-boot.bin
|
u-boot.imx: u-boot.bin
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@
|
$(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@
|
||||||
|
|
||||||
u-boot.kwb: u-boot.bin
|
|
||||||
tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
|
|
||||||
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -d $< $@
|
|
||||||
|
|
||||||
u-boot.pbl: u-boot.bin
|
|
||||||
tools/mkimage -n $(CONFIG_SYS_FSL_PBL_RCW) \
|
|
||||||
-R $(CONFIG_SYS_FSL_PBL_PBI) -T pblimage \
|
|
||||||
-d $< $@
|
|
||||||
|
|
||||||
u-boot.sha1: u-boot.bin
|
u-boot.sha1: u-boot.bin
|
||||||
tools/ubsha1 u-boot.bin
|
tools/ubsha1 u-boot.bin
|
||||||
|
|
||||||
|
@ -837,9 +838,10 @@ tpl/u-boot-with-tpl.bin: tpl/u-boot-tpl.bin u-boot.bin
|
||||||
u-boot-with-spl.imx u-boot-with-nand-spl.imx: spl/u-boot-spl.bin u-boot.bin
|
u-boot-with-spl.imx u-boot-with-nand-spl.imx: spl/u-boot-spl.bin u-boot.bin
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@
|
$(Q)$(MAKE) $(build)=arch/arm/imx-common $(objtree)/$@
|
||||||
|
|
||||||
u-boot.ubl: u-boot-with-spl.bin
|
MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE)
|
||||||
tools/mkimage -n $(UBL_CONFIG) -T ublimage \
|
|
||||||
-e $(CONFIG_SYS_TEXT_BASE) -d $< u-boot.ubl
|
u-boot.ubl: u-boot-with-spl.bin FORCE
|
||||||
|
$(call if_changed,mkimage)
|
||||||
|
|
||||||
u-boot.ais: spl/u-boot-spl.bin u-boot.img
|
u-boot.ais: spl/u-boot-spl.bin u-boot.img
|
||||||
tools/mkimage -s -n $(if $(CONFIG_AIS_CONFIG_FILE),$(srctree)/$(CONFIG_AIS_CONFIG_FILE:"%"=%),"/dev/null") \
|
tools/mkimage -s -n $(if $(CONFIG_AIS_CONFIG_FILE),$(srctree)/$(CONFIG_AIS_CONFIG_FILE:"%"=%),"/dev/null") \
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
ALL-y += $(OBJTREE)/MLO
|
ALL-y += MLO
|
||||||
ALL-$(CONFIG_SPL_SPI_SUPPORT) += $(OBJTREE)/MLO.byteswap
|
ALL-$(CONFIG_SPL_SPI_SUPPORT) += MLO.byteswap
|
||||||
else
|
else
|
||||||
ALL-y += u-boot.img
|
ALL-y += u-boot.img
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
ALL-y += $(OBJTREE)/MLO
|
ALL-y += MLO
|
||||||
else
|
else
|
||||||
ALL-y += u-boot.img
|
ALL-y += u-boot.img
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
ALL-y += $(OBJTREE)/MLO
|
ALL-y += MLO
|
||||||
else
|
else
|
||||||
ALL-y += u-boot.img
|
ALL-y += u-boot.img
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
ALL-y += $(OBJTREE)/MLO
|
ALL-y += MLO
|
||||||
else
|
else
|
||||||
ALL-y += u-boot.img
|
ALL-y += u-boot.img
|
||||||
endif
|
endif
|
||||||
|
|
15
spl/Makefile
15
spl/Makefile
|
@ -169,13 +169,16 @@ LDPPFLAGS += \
|
||||||
$(shell $(LD) --version | \
|
$(shell $(LD) --version | \
|
||||||
sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
|
sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
|
||||||
|
|
||||||
$(OBJTREE)/MLO: $(obj)/u-boot-spl.bin
|
quiet_cmd_mkimage = UIMAGE $@
|
||||||
$(OBJTREE)/tools/mkimage -T omapimage \
|
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||||
-a $(CONFIG_SPL_TEXT_BASE) -d $< $@
|
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||||
|
|
||||||
$(OBJTREE)/MLO.byteswap: $(obj)/u-boot-spl.bin
|
MKIMAGEFLAGS_MLO = -T omapimage -a $(CONFIG_SPL_TEXT_BASE)
|
||||||
$(OBJTREE)/tools/mkimage -T omapimage -n byteswap \
|
|
||||||
-a $(CONFIG_SPL_TEXT_BASE) -d $< $@
|
MKIMAGEFLAGS_MLO.byteswap = -T omapimage -n byteswap -a $(CONFIG_SPL_TEXT_BASE)
|
||||||
|
|
||||||
|
MLO MLO.byteswap: $(obj)/u-boot-spl.bin
|
||||||
|
$(call if_changed,mkimage)
|
||||||
|
|
||||||
$(objtree)/SPL: $(obj)/u-boot-spl.bin
|
$(objtree)/SPL: $(obj)/u-boot-spl.bin
|
||||||
$(Q)$(MAKE) $(build)=spl/arch/arm/imx-common $@
|
$(Q)$(MAKE) $(build)=spl/arch/arm/imx-common $@
|
||||||
|
|
Loading…
Reference in New Issue