Merge tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / arch / powerpc / Makefile
blobe58d00d62f021eee7dd581b939354bd59f8948cb
1 # SPDX-License-Identifier: GPL-2.0
2 ifndef NO_DWARF
3 PERF_HAVE_DWARF_REGS := 1
4 endif
6 HAVE_KVM_STAT_SUPPORT := 1
7 PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
8 PERF_HAVE_JITDUMP := 1
11 # Syscall table generation for perf
14 out := $(OUTPUT)arch/powerpc/include/generated/asm
15 header32 := $(out)/syscalls_32.c
16 header64 := $(out)/syscalls_64.c
17 syskrn := $(srctree)/arch/powerpc/kernel/syscalls/syscall.tbl
18 sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls
19 sysdef := $(sysprf)/syscall.tbl
20 systbl := $(sysprf)/mksyscalltbl
22 # Create output directory if not already present
23 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
25 $(header64): $(sysdef) $(systbl)
26 @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
27 (diff -B $(sysdef) $(syskrn) >/dev/null) \
28 || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
29 $(Q)$(SHELL) '$(systbl)' '64' $(sysdef) > $@
31 $(header32): $(sysdef) $(systbl)
32 @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
33 (diff -B $(sysdef) $(syskrn) >/dev/null) \
34 || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
35 $(Q)$(SHELL) '$(systbl)' '32' $(sysdef) > $@
37 clean::
38 $(call QUIET_CLEAN, powerpc) $(RM) $(header32) $(header64)
40 archheaders: $(header32) $(header64)