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

x86/build: Supress "Nothing to be done for ..." messages

When we build an already built kernel again, arch/x86/syscalls/Makefile
and arch/x86/tools/Makefile emits "Nothing to be done for ..."
messages.

Here is the command log:

$ make defconfig
[ snip ]
$ make
[ snip ]
$ make
make[1]: Nothing to be done for `all'. <-----
make[1]: Nothing to be done for `relocs'. <-----
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h

Besides not emitting those, "all" and "relocs" should be added to PHONY as well.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Peter Foley <pefoley2@pefoley.com>
Acked-by: Michal Marek <mmarek@suse.cz>
Link: http://lkml.kernel.org/r/1397093742-11144-1-git-send-email-yamada.m@jp.panasonic.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Masahiro Yamada and committed by
Ingo Molnar
e6bcd1a8 86e58762

+4
+2
arch/x86/syscalls/Makefile
··· 54 54 55 55 targets += $(uapisyshdr-y) $(syshdr-y) 56 56 57 + PHONY += all 57 58 all: $(addprefix $(uapi)/,$(uapisyshdr-y)) 58 59 all: $(addprefix $(out)/,$(syshdr-y)) 60 + @:
+2
arch/x86/tools/Makefile
··· 40 40 HOST_EXTRACFLAGS += -I$(srctree)/tools/include 41 41 hostprogs-y += relocs 42 42 relocs-objs := relocs_32.o relocs_64.o relocs_common.o 43 + PHONY += relocs 43 44 relocs: $(obj)/relocs 45 + @: