xref: /openbmc/linux/tools/perf/arch/s390/Makefile (revision 4ec575b7)
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
15syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
16sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
17sysdef := $(sysprf)/syscall.tbl
18systbl := $(sysprf)/mksyscalltbl
19
20# Create output directory if not already present
21_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
22
23$(header): $(sysdef) $(systbl)
24	@(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
25        (diff -B $(sysdef) $(syskrn) >/dev/null) \
26        || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
27	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
28
29clean::
30	$(call QUIET_CLEAN, s390) $(RM) $(header)
31
32archheaders: $(header)
33