Skip to content

Commit 7fd22bc

Browse files
arndbgregkh
authored andcommitted
x86/build: Silence the build with "make -s"
commit d460131 upstream. Every kernel build on x86 will result in some output: Setup is 13084 bytes (padded to 13312 bytes). System is 4833 kB CRC 6d35fa35 Kernel: arch/x86/boot/bzImage is ready (#2) This shuts it up, so that 'make -s' is truely silent as long as everything works. Building without '-s' should produce unchanged output. Signed-off-by: Arnd Bergmann <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Matt Fleming <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent afdfe5f commit 7fd22bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/x86/boot/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ UBSAN_SANITIZE := n
7373
$(obj)/bzImage: asflags-y := $(SVGA_MODE)
7474

7575
quiet_cmd_image = BUILD $@
76+
silent_redirect_image = >/dev/null
7677
cmd_image = $(obj)/tools/build $(obj)/setup.bin $(obj)/vmlinux.bin \
77-
$(obj)/zoffset.h $@
78+
$(obj)/zoffset.h $@ $($(quiet)redirect_image)
7879

7980
$(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/tools/build FORCE
8081
$(call if_changed,image)
81-
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
82+
@$(kecho) 'Kernel: $@ is ready' ' (#'`cat .version`')'
8283

8384
OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S
8485
$(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE

0 commit comments

Comments
 (0)