xref: /openbmc/linux/tools/perf/arch/s390/Makefile (revision 164a747f)
1f602be63SHeiko Carstensifndef NO_DWARF
2f602be63SHeiko CarstensPERF_HAVE_DWARF_REGS := 1
3f602be63SHeiko Carstensendif
43be8e2a0SAlexander YaryginHAVE_KVM_STAT_SUPPORT := 1
5a81c4213SHendrik BruecknerPERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
6164a747fSHendrik Brueckner
7164a747fSHendrik Brueckner#
8164a747fSHendrik Brueckner# Syscall table generation for perf
9164a747fSHendrik Brueckner#
10164a747fSHendrik Brueckner
11164a747fSHendrik Bruecknerout    := $(OUTPUT)arch/s390/include/generated/asm
12164a747fSHendrik Bruecknerheader := $(out)/syscalls_64.c
13164a747fSHendrik Bruecknersysdef := $(srctree)/tools/arch/s390/include/uapi/asm/unistd.h
14164a747fSHendrik Bruecknersysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls/
15164a747fSHendrik Bruecknersystbl := $(sysprf)/mksyscalltbl
16164a747fSHendrik Brueckner
17164a747fSHendrik Brueckner# Create output directory if not already present
18164a747fSHendrik Brueckner_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
19164a747fSHendrik Brueckner
20164a747fSHendrik Brueckner$(header): $(sysdef) $(systbl)
21164a747fSHendrik Brueckner	$(Q)$(SHELL) '$(systbl)' '$(CC)' $(sysdef) > $@
22164a747fSHendrik Brueckner
23164a747fSHendrik Bruecknerclean::
24164a747fSHendrik Brueckner	$(call QUIET_CLEAN, s390) $(RM) $(header)
25164a747fSHendrik Brueckner
26164a747fSHendrik Bruecknerarchheaders: $(header)
27