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