1 # SPDX-License-Identifier: GPL-2.0
2 HAVE_KVM_STAT_SUPPORT
:= 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
) > $@
26 $(call QUIET_CLEAN
, powerpc
) $(RM
) $(header32
) $(header64
)
28 archheaders
: $(header32
) $(header64
)