diff mbox

Kbuild: append missing-syscalls to the default target list

Message ID 1314234210-11090-1-git-send-email-lacombar@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Arnaud Lacombe Aug. 25, 2011, 1:03 a.m. UTC
This avoid an extra make invocation on `prepare0'.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
---
 Kbuild   |    4 +++-
 Makefile |    1 -
 2 files changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/Kbuild b/Kbuild
index 2114113..1a2eb32 100644
--- a/Kbuild
+++ b/Kbuild
@@ -88,10 +88,12 @@  $(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
 	$(call cmd,syscalls)
 
diff --git a/Makefile b/Makefile
index 0f1db8d..8e00684 100644
--- 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