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