xref: /openbmc/linux/tools/perf/arch/powerpc/Makefile (revision 9dbbc3b9)
1# SPDX-License-Identifier: GPL-2.0
2ifndef NO_DWARF
3PERF_HAVE_DWARF_REGS := 1
4endif
5
6HAVE_KVM_STAT_SUPPORT := 1
7PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
8PERF_HAVE_JITDUMP := 1
9
10#
11# Syscall table generation for perf
12#
13
14out    := $(OUTPUT)arch/powerpc/include/generated/asm
15header32 := $(out)/syscalls_32.c
16header64 := $(out)/syscalls_64.c
17sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls
18sysdef := $(sysprf)/syscall.tbl
19systbl := $(sysprf)/mksyscalltbl
20
21# Create output directory if not already present
22_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
23
24$(header64): $(sysdef) $(systbl)
25	$(Q)$(SHELL) '$(systbl)' '64' $(sysdef) > $@
26
27$(header32): $(sysdef) $(systbl)
28	$(Q)$(SHELL) '$(systbl)' '32' $(sysdef) > $@
29
30clean::
31	$(call QUIET_CLEAN, powerpc) $(RM) $(header32) $(header64)
32
33archheaders: $(header32) $(header64)
34