perf tools: Make the x86 clean quiet
[cascardo/linux.git] / tools / perf / arch / x86 / Makefile
1 ifndef NO_DWARF
2 PERF_HAVE_DWARF_REGS := 1
3 endif
4 HAVE_KVM_STAT_SUPPORT := 1
5 PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
6 PERF_HAVE_JITDUMP := 1
7
8 ###
9 # Syscall table generation
10 #
11
12 out    := $(OUTPUT)arch/x86/include/generated/asm
13 header := $(out)/syscalls_64.c
14 sys    := $(srctree)/tools/perf/arch/x86/entry/syscalls
15 systbl := $(sys)/syscalltbl.sh
16
17 # Create output directory if not already present
18 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
19
20 $(header): $(sys)/syscall_64.tbl $(systbl)
21         @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
22         (diff -B arch/x86/entry/syscalls/syscall_64.tbl ../../arch/x86/entry/syscalls/syscall_64.tbl >/dev/null) \
23         || echo "Warning: x86_64's syscall_64.tbl differs from kernel" >&2 )) || true
24         $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
25
26 clean::
27         $(call QUIET_CLEAN, x86) $(RM) $(header)
28
29 archheaders: $(header)