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