xref: /linux/tools/perf/arch/s390/Makefile (revision da5b2ad1c2f18834cb1ce429e2e5a5cf5cbdf21b)
1# SPDX-License-Identifier: GPL-2.0-only
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 for perf
11#
12
13out    := $(OUTPUT)arch/s390/include/generated/asm
14header := $(out)/syscalls_64.c
15sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
16sysdef := $(sysprf)/syscall.tbl
17systbl := $(sysprf)/mksyscalltbl
18
19# Create output directory if not already present
20$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
21
22$(header): $(sysdef) $(systbl)
23	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
24
25clean::
26	$(call QUIET_CLEAN, s390) $(RM) $(header)
27
28archheaders: $(header)
29