1# SPDX-License-Identifier: GPL-2.0 2ifndef NO_DWARF 3PERF_HAVE_DWARF_REGS := 1 4endif 5PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1 6PERF_HAVE_JITDUMP := 1 7 8# 9# Syscall table generation for perf 10# 11 12out := $(OUTPUT)arch/loongarch/include/generated/asm 13header := $(out)/syscalls.c 14incpath := $(srctree)/tools 15sysdef := $(srctree)/tools/arch/loongarch/include/uapi/asm/unistd.h 16sysprf := $(srctree)/tools/perf/arch/loongarch/entry/syscalls/ 17systbl := $(sysprf)/mksyscalltbl 18 19# Create output directory if not already present 20_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') 21 22$(header): $(sysdef) $(systbl) 23 $(Q)$(SHELL) '$(systbl)' '$(CC)' '$(HOSTCC)' $(incpath) $(sysdef) > $@ 24 25clean:: 26 $(call QUIET_CLEAN, loongarch) $(RM) $(header) 27 28archheaders: $(header) 29