summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2026-04-02 16:36:20 +0200
committerNicolas Schier <nsc@kernel.org>2026-04-05 09:21:32 +0200
commitc7c55f0e1667aa25c0ac047bd873159722358f6c (patch)
tree2af9e111ce2b187b274d7ded63e0e0b2d473deab /Kbuild
parentb34db3fa85c4d34ceee5231cd27e587153bc25ab (diff)
downloadlinux-next-c7c55f0e1667aa25c0ac047bd873159722358f6c.tar.gz
linux-next-c7c55f0e1667aa25c0ac047bd873159722358f6c.zip
checksyscalls: move instance functionality into generic code
On MIPS the checksyscalls.sh script may be executed multiple times. Currently these multiple executions are executed on each build as kbuild see that the commands have changed each time. Use a dedicated stamp file for each different invocation to avoid the spurious executions. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://patch.msgid.link/20260402-kbuild-missing-syscalls-v3-3-6641be1de2db@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kbuild b/Kbuild
index 515cc6a27477..a6a0192dea08 100644
--- a/Kbuild
+++ b/Kbuild
@@ -47,11 +47,11 @@ $(rq-offsets-file): kernel/sched/rq-offsets.s FORCE
# Check for missing system calls
-missing-syscalls-file := .tmp_missing-syscalls
+missing-syscalls-file := .tmp_missing-syscalls$(missing_syscalls_instance)
targets += $(missing-syscalls-file)
-quiet_cmd_syscalls = CALL $<
+quiet_cmd_syscalls = CALL $< $(addprefix for ,$(missing_syscalls_instance))
cmd_syscalls = DEPFILE=$(depfile) $(CONFIG_SHELL) $< $(CC) $(c_flags) $(missing_syscalls_flags); touch $@
$(missing-syscalls-file): scripts/checksyscalls.sh $(rq-offsets-file) FORCE