xref: /linux/tools/perf/arch/mips/Makefile (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1b5f184fbSTiezhu Yang# SPDX-License-Identifier: GPL-2.0
2b5f184fbSTiezhu Yangifndef NO_DWARF
3b5f184fbSTiezhu YangPERF_HAVE_DWARF_REGS := 1
4b5f184fbSTiezhu Yangendif
5d9fd5a71STiezhu Yang
6d9fd5a71STiezhu Yang# Syscall table generation for perf
7d9fd5a71STiezhu Yangout    := $(OUTPUT)arch/mips/include/generated/asm
8d9fd5a71STiezhu Yangheader := $(out)/syscalls_n64.c
9d9fd5a71STiezhu Yangsysprf := $(srctree)/tools/perf/arch/mips/entry/syscalls
10d9fd5a71STiezhu Yangsysdef := $(sysprf)/syscall_n64.tbl
11d9fd5a71STiezhu Yangsystbl := $(sysprf)/mksyscalltbl
12d9fd5a71STiezhu Yang
13d9fd5a71STiezhu Yang# Create output directory if not already present
14*c2bd08baSMasahiro Yamada$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
15d9fd5a71STiezhu Yang
16d9fd5a71STiezhu Yang$(header): $(sysdef) $(systbl)
17d9fd5a71STiezhu Yang	$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
18d9fd5a71STiezhu Yang
19d9fd5a71STiezhu Yangclean::
20d9fd5a71STiezhu Yang	$(call QUIET_CLEAN, mips) $(RM) $(header)
21d9fd5a71STiezhu Yang
22d9fd5a71STiezhu Yangarchheaders: $(header)
23