Skip to content

Commit 5f7efb4

Browse files
lacombarmichal42
authored andcommitted
Kbuild: append missing-syscalls to the default target list
This avoid an extra make invocation on `prepare0'. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 0359de7 commit 5f7efb4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎Kbuild‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild
8888
# 3) Check for missing system calls
8989
#
9090

91+
always += missing-syscalls
92+
targets += missing-syscalls
93+
9194
quiet_cmd_syscalls = CALL $<
9295
cmd_syscalls = $(CONFIG_SHELL) $< $(CC) $(c_flags)
9396

94-
PHONY += missing-syscalls
95-
missing-syscalls: scripts/checksyscalls.sh FORCE
97+
missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE
9698
$(call cmd,syscalls)
9799

98100
# Keep these two files during make clean

‎Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,6 @@ archprepare: prepare1 scripts_basic
983983

984984
prepare0: archprepare FORCE
985985
$(Q)$(MAKE) $(build)=.
986-
$(Q)$(MAKE) $(build)=. missing-syscalls
987986

988987
# All the preparing..
989988
prepare: prepare0

0 commit comments

Comments
 (0)