xref: /linux/tools/perf/arch/s390/Makefile (revision 1dc707e647bc919834eff9636c8d00b78c782545)
1# SPDX-License-Identifier: GPL-2.0-only
2HAVE_KVM_STAT_SUPPORT := 1
3PERF_HAVE_JITDUMP := 1
4
5#
6# Syscall table generation for perf
7#
8
9out    := $(OUTPUT)arch/s390/include/generated/asm
10header := $(out)/syscalls_64.c
11sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
12sysdef := $(sysprf)/syscall.tbl
13systbl := $(sysprf)/mksyscalltbl
14
15# Create output directory if not already present
16$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
17
18$(header): $(sysdef) $(systbl)
19	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
20
21clean::
22	$(call QUIET_CLEAN, s390) $(RM) $(header)
23
24archheaders: $(header)
25