1# SPDX-License-Identifier: GPL-2.0 2# Syscall table generation for perf 3out := $(OUTPUT)arch/mips/include/generated/asm 4header := $(out)/syscalls_n64.c 5sysprf := $(srctree)/tools/perf/arch/mips/entry/syscalls 6sysdef := $(sysprf)/syscall_n64.tbl 7systbl := $(sysprf)/mksyscalltbl 8 9# Create output directory if not already present 10$(shell [ -d '$(out)' ] || mkdir -p '$(out)') 11 12$(header): $(sysdef) $(systbl) 13 $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@ 14 15clean:: 16 $(call QUIET_CLEAN, mips) $(RM) $(header) 17 18archheaders: $(header) 19