xref: /openbmc/linux/tools/perf/arch/s390/Makefile (revision 22ffc3f5)
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 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	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
24164a747fSHendrik Brueckner
25164a747fSHendrik Bruecknerclean::
26164a747fSHendrik Brueckner	$(call QUIET_CLEAN, s390) $(RM) $(header)
27164a747fSHendrik Brueckner
28164a747fSHendrik Bruecknerarchheaders: $(header)
29