xref: /openbmc/linux/tools/perf/arch/s390/Makefile (revision ba61bb17)
1ifndef NO_DWARF
2PERF_HAVE_DWARF_REGS := 1
3endif
4HAVE_KVM_STAT_SUPPORT := 1
5PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
6
7#
8# Syscall table generation for perf
9#
10
11out    := $(OUTPUT)arch/s390/include/generated/asm
12header := $(out)/syscalls_64.c
13syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
14sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
15sysdef := $(sysprf)/syscall.tbl
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	@(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
23        (diff -B $(sysdef) $(syskrn) >/dev/null) \
24        || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
25	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
26
27clean::
28	$(call QUIET_CLEAN, s390) $(RM) $(header)
29
30archheaders: $(header)
31