Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8576/1: avoid duplicating "Kernel: arch/arm/boot/*Image is ready"

Commit 3939f3345050 ("ARM: 8418/1: add boot image dependencies to
not generate invalid images") fixed bad image generation for the
parallel building, but as its side effect, Kbuild now descends into
arch/arm/boot/ again and again, duplicating the log messages.
It looks clumsy, so let's display the same message only once.

This commit moves the log rules from arch/arm/boot/Makefile to
arch/arm/Makefile. I did not delete them completely because *Image
are the final targets that users are interested in.

Without this commit, the log of incremental build is like follows:

$ make ARCH=arm UIMAGE_LOADADDR=0x80208000 uImage
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
Image arch/arm/boot/uImage is ready

With this commit, it will look like follows:

$ make ARCH=arm UIMAGE_LOADADDR=0x80208000 uImage
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
Kernel: arch/arm/boot/uImage is ready

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Masahiro Yamada and committed by
Russell King
c6bbfbb7 cb6f8344

+2 -5
+1
arch/arm/Makefile
··· 327 327 328 328 $(BOOT_TARGETS): vmlinux 329 329 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 330 + @$(kecho) ' Kernel: $(boot)/$@ is ready' 330 331 331 332 $(INSTALL_TARGETS): 332 333 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
+1 -5
arch/arm/boot/Makefile
··· 31 31 32 32 $(obj)/xipImage: vmlinux FORCE 33 33 $(call if_changed,objcopy) 34 - @$(kecho) ' Kernel: $@ is ready (physical address: $(CONFIG_XIP_PHYS_ADDR))' 34 + @$(kecho) ' Physical Address of xipImage: $(CONFIG_XIP_PHYS_ADDR)' 35 35 36 36 $(obj)/Image $(obj)/zImage: FORCE 37 37 @echo 'Kernel configured for XIP (CONFIG_XIP_KERNEL=y)' ··· 46 46 47 47 $(obj)/Image: vmlinux FORCE 48 48 $(call if_changed,objcopy) 49 - @$(kecho) ' Kernel: $@ is ready' 50 49 51 50 $(obj)/compressed/vmlinux: $(obj)/Image FORCE 52 51 $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 53 52 54 53 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE 55 54 $(call if_changed,objcopy) 56 - @$(kecho) ' Kernel: $@ is ready' 57 55 58 56 endif 59 57 ··· 76 78 $(obj)/uImage: $(obj)/zImage FORCE 77 79 @$(check_for_multiple_loadaddr) 78 80 $(call if_changed,uimage) 79 - @$(kecho) ' Image $@ is ready' 80 81 81 82 $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE 82 83 $(Q)$(MAKE) $(build)=$(obj)/bootp $@ 83 84 84 85 $(obj)/bootpImage: $(obj)/bootp/bootp FORCE 85 86 $(call if_changed,objcopy) 86 - @$(kecho) ' Kernel: $@ is ready' 87 87 88 88 PHONY += initrd install zinstall uinstall 89 89 initrd: