xref: /openbmc/linux/tools/perf/arch/arm64/Makefile (revision 8fedf805)
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
14incpath := $(srctree)/tools
15sysdef := $(srctree)/tools/arch/arm64/include/uapi/asm/unistd.h
16sysprf := $(srctree)/tools/perf/arch/arm64/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, arm64) $(RM) $(header)
27
28archheaders: $(header)
29