xref: /openbmc/linux/tools/perf/arch/s390/Makefile (revision ec8f24b7)
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
7164a747fSHendrik Brueckner
8164a747fSHendrik Brueckner#
9164a747fSHendrik Brueckner# Syscall table generation for perf
10164a747fSHendrik Brueckner#
11164a747fSHendrik Brueckner
12164a747fSHendrik Bruecknerout    := $(OUTPUT)arch/s390/include/generated/asm
13164a747fSHendrik Bruecknerheader := $(out)/syscalls_64.c
14690d22d9SHendrik Bruecknersyskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
15690d22d9SHendrik Bruecknersysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
16690d22d9SHendrik Bruecknersysdef := $(sysprf)/syscall.tbl
17164a747fSHendrik Bruecknersystbl := $(sysprf)/mksyscalltbl
18164a747fSHendrik Brueckner
19164a747fSHendrik Brueckner# Create output directory if not already present
20164a747fSHendrik Brueckner_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
21164a747fSHendrik Brueckner
22164a747fSHendrik Brueckner$(header): $(sysdef) $(systbl)
23690d22d9SHendrik Brueckner	@(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
24690d22d9SHendrik Brueckner        (diff -B $(sysdef) $(syskrn) >/dev/null) \
25690d22d9SHendrik Brueckner        || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
26690d22d9SHendrik Brueckner	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
27164a747fSHendrik Brueckner
28164a747fSHendrik Bruecknerclean::
29164a747fSHendrik Brueckner	$(call QUIET_CLEAN, s390) $(RM) $(header)
30164a747fSHendrik Brueckner
31164a747fSHendrik Bruecknerarchheaders: $(header)
32