summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/mips/Makefile
blob: 733f7b76f52de800d387442ef1c57f3767edf1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-License-Identifier: GPL-2.0
ifndef NO_LIBDW
PERF_HAVE_DWARF_REGS := 1
endif

# Syscall table generation for perf
out    := $(OUTPUT)arch/mips/include/generated/asm
header := $(out)/syscalls_n64.c
sysprf := $(srctree)/tools/perf/arch/mips/entry/syscalls
sysdef := $(sysprf)/syscall_n64.tbl
systbl := $(sysprf)/mksyscalltbl

# Create output directory if not already present
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')

$(header): $(sysdef) $(systbl)
	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@

clean::
	$(call QUIET_CLEAN, mips) $(RM) $(header)

archheaders: $(header)