xref: /openbmc/linux/tools/perf/arch/mips/Makefile (revision 249592bf)
1# SPDX-License-Identifier: GPL-2.0
2ifndef NO_DWARF
3PERF_HAVE_DWARF_REGS := 1
4endif
5
6# Syscall table generation for perf
7out    := $(OUTPUT)arch/mips/include/generated/asm
8header := $(out)/syscalls_n64.c
9sysprf := $(srctree)/tools/perf/arch/mips/entry/syscalls
10sysdef := $(sysprf)/syscall_n64.tbl
11systbl := $(sysprf)/mksyscalltbl
12
13# Create output directory if not already present
14_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
15
16$(header): $(sysdef) $(systbl)
17	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
18
19clean::
20	$(call QUIET_CLEAN, mips) $(RM) $(header)
21
22archheaders: $(header)
23