WIP FPC-III support
[linux/fpc-iii.git] / tools / perf / arch / powerpc / Makefile
blob840ea0e59287dbb0ed37866cd7f809d2288579d5
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 sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls
18 sysdef := $(sysprf)/syscall.tbl
19 systbl := $(sysprf)/mksyscalltbl
21 # Create output directory if not already present
22 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
24 $(header64): $(sysdef) $(systbl)
25 $(Q)$(SHELL) '$(systbl)' '64' $(sysdef) > $@
27 $(header32): $(sysdef) $(systbl)
28 $(Q)$(SHELL) '$(systbl)' '32' $(sysdef) > $@
30 clean::
31 $(call QUIET_CLEAN, powerpc) $(RM) $(header32) $(header64)
33 archheaders: $(header32) $(header64)