Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
[linux-2.6-block.git] / tools / perf / arch / s390 / Makefile
CommitLineData
f602be63
HC
1ifndef NO_DWARF
2PERF_HAVE_DWARF_REGS := 1
f602be63 3endif
3be8e2a0 4HAVE_KVM_STAT_SUPPORT := 1
a81c4213 5PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
164a747f
HB
6
7#
8# Syscall table generation for perf
9#
10
11out := $(OUTPUT)arch/s390/include/generated/asm
12header := $(out)/syscalls_64.c
690d22d9
HB
13syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
14sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
15sysdef := $(sysprf)/syscall.tbl
164a747f
HB
16systbl := $(sysprf)/mksyscalltbl
17
18# Create output directory if not already present
19_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
20
21$(header): $(sysdef) $(systbl)
690d22d9
HB
22 @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
23 (diff -B $(sysdef) $(syskrn) >/dev/null) \
24 || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
25 $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
164a747f
HB
26
27clean::
28 $(call QUIET_CLEAN, s390) $(RM) $(header)
29
30archheaders: $(header)