xref: /linux/tools/perf/arch/x86/Makefile (revision 24bce201d79807b668bf9d9e0aca801c5c0d5f78)
1# SPDX-License-Identifier: GPL-2.0
2ifndef NO_DWARF
3PERF_HAVE_DWARF_REGS := 1
4endif
5HAVE_KVM_STAT_SUPPORT := 1
6PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
7PERF_HAVE_JITDUMP := 1
8
9###
10# Syscall table generation
11#
12
13generated := $(OUTPUT)arch/x86/include/generated
14out       := $(generated)/asm
15header    := $(out)/syscalls_64.c
16sys       := $(srctree)/tools/perf/arch/x86/entry/syscalls
17systbl    := $(sys)/syscalltbl.sh
18
19# Create output directory if not already present
20_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
21
22$(header): $(sys)/syscall_64.tbl $(systbl)
23	$(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
24
25clean::
26	$(call QUIET_CLEAN, x86) $(RM) -r $(header) $(generated)
27
28archheaders: $(header)
29