Kbuild: append missing-syscalls to the default target list
authorArnaud Lacombe <lacombar@gmail.com>
Thu, 25 Aug 2011 01:03:30 +0000 (21:03 -0400)
committerMichal Marek <mmarek@suse.cz>
Tue, 1 Nov 2011 23:24:01 +0000 (00:24 +0100)
This avoid an extra make invocation on `prepare0'.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Kbuild
Makefile

diff --git a/Kbuild b/Kbuild
index 2114113ceca2801770c57ac07c78fff2b0b8a477..4caab4f6cba7e951dcc751404e140a17e5781df3 100644 (file)
--- a/Kbuild
+++ b/Kbuild
@@ -88,11 +88,13 @@ $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild
 # 3) Check for missing system calls
 #
 
+always += missing-syscalls
+targets += missing-syscalls
+
 quiet_cmd_syscalls = CALL    $<
       cmd_syscalls = $(CONFIG_SHELL) $< $(CC) $(c_flags)
 
-PHONY += missing-syscalls
-missing-syscalls: scripts/checksyscalls.sh FORCE
+missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE
        $(call cmd,syscalls)
 
 # Keep these two files during make clean
index ab38311014e64d9973fc65cc28bb230f36f1b847..2e78b080033488c4d19b4ce453a6aeacb269d9f9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -983,7 +983,6 @@ archprepare: prepare1 scripts_basic
 
 prepare0: archprepare FORCE
        $(Q)$(MAKE) $(build)=.
-       $(Q)$(MAKE) $(build)=. missing-syscalls
 
 # All the preparing..
 prepare: prepare0