Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / arch / powerpc / Makefile
blobdc8f4fb8e324ab6679d78b5fee3636ba7d2ff7c0
1 # SPDX-License-Identifier: GPL-2.0
2 HAVE_KVM_STAT_SUPPORT := 1
3 PERF_HAVE_JITDUMP := 1
6 # Syscall table generation for perf
9 out := $(OUTPUT)arch/powerpc/include/generated/asm
10 header32 := $(out)/syscalls_32.c
11 header64 := $(out)/syscalls_64.c
12 sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls
13 sysdef := $(sysprf)/syscall.tbl
14 systbl := $(sysprf)/mksyscalltbl
16 # Create output directory if not already present
17 $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
19 $(header64): $(sysdef) $(systbl)
20 $(Q)$(SHELL) '$(systbl)' '64' $(sysdef) > $@
22 $(header32): $(sysdef) $(systbl)
23 $(Q)$(SHELL) '$(systbl)' '32' $(sysdef) > $@
25 clean::
26 $(call QUIET_CLEAN, powerpc) $(RM) $(header32) $(header64)
28 archheaders: $(header32) $(header64)