mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 04:45:43 +01:00
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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> Link: https://patch.msgid.link/20260402-kbuild-missing-syscalls-v3-3-6641be1de2db@weissschuh.net Signed-off-by: Nicolas Schier <[email protected]>
This commit is contained in:
1 parent
b34db3fa85
commit
c7c55f0e16
2 files changed
+4
-6
No files matched your search
@@ -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
|
||||
|
||||
+2
-4
@@ -421,12 +421,10 @@ CLEAN_FILES += vmlinux.32 vmlinux.64
|
||||
|
||||
archprepare:
|
||||
ifdef CONFIG_MIPS32_N32
|
||||
@$(kecho) ' Checking missing-syscalls for N32'
|
||||
$(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=n32"
|
||||
$(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_instance="N32" missing_syscalls_flags="-mabi=n32"
|
||||
endif
|
||||
ifdef CONFIG_MIPS32_O32
|
||||
@$(kecho) ' Checking missing-syscalls for O32'
|
||||
$(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=32"
|
||||
$(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_instance="O32" missing_syscalls_flags="-mabi=32"
|
||||
endif
|
||||
|
||||
install:
|
||||
|
||||
Reference in new issue
Block a user