xref: /openbmc/linux/tools/perf/arch/s390/Makefile (revision 61bf4ee2)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2f602be63SHeiko Carstensifndef NO_DWARF
3f602be63SHeiko CarstensPERF_HAVE_DWARF_REGS := 1
4f602be63SHeiko Carstensendif
53be8e2a0SAlexander YaryginHAVE_KVM_STAT_SUPPORT := 1
6a81c4213SHendrik BruecknerPERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
761bf4ee2SThomas RichterPERF_HAVE_JITDUMP := 1
8164a747fSHendrik Brueckner
9164a747fSHendrik Brueckner#
10164a747fSHendrik Brueckner# Syscall table generation for perf
11164a747fSHendrik Brueckner#
12164a747fSHendrik Brueckner
13164a747fSHendrik Bruecknerout    := $(OUTPUT)arch/s390/include/generated/asm
14164a747fSHendrik Bruecknerheader := $(out)/syscalls_64.c
15690d22d9SHendrik Bruecknersyskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
16690d22d9SHendrik Bruecknersysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
17690d22d9SHendrik Bruecknersysdef := $(sysprf)/syscall.tbl
18164a747fSHendrik Bruecknersystbl := $(sysprf)/mksyscalltbl
19164a747fSHendrik Brueckner
20164a747fSHendrik Brueckner# Create output directory if not already present
21164a747fSHendrik Brueckner_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
22164a747fSHendrik Brueckner
23164a747fSHendrik Brueckner$(header): $(sysdef) $(systbl)
24690d22d9SHendrik Brueckner	@(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
25690d22d9SHendrik Brueckner        (diff -B $(sysdef) $(syskrn) >/dev/null) \
26690d22d9SHendrik Brueckner        || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
27690d22d9SHendrik Brueckner	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
28164a747fSHendrik Brueckner
29164a747fSHendrik Bruecknerclean::
30164a747fSHendrik Brueckner	$(call QUIET_CLEAN, s390) $(RM) $(header)
31164a747fSHendrik Brueckner
32164a747fSHendrik Bruecknerarchheaders: $(header)
33