1 # SPDX-License-Identifier: GPL-2.0
3 HAVE_KVM_STAT_SUPPORT
:= 1
6 # Syscall table generation for perf
9 out
:= $(OUTPUT
)arch
/loongarch
/include/generated
/asm
10 header
:= $(out
)/syscalls.c
11 incpath
:= $(srctree
)/tools
12 sysdef
:= $(srctree
)/tools
/arch
/loongarch
/include/uapi
/asm
/unistd.h
13 sysprf
:= $(srctree
)/tools
/perf
/arch
/loongarch
/entry
/syscalls
/
14 systbl
:= $(sysprf
)/mksyscalltbl
16 # Create output directory if not already present
17 $(shell [ -d
'$(out)' ] || mkdir
-p
'$(out)')
19 $(header
): $(sysdef
) $(systbl
)
20 $(Q
)$(SHELL
) '$(systbl)' '$(CC)' '$(HOSTCC)' $(incpath
) $(sysdef
) > $@
23 $(call QUIET_CLEAN
, loongarch
) $(RM
) $(header
)
25 archheaders
: $(header
)