Makefile 914 B

12345678910111213141516171819202122232425262728293031
  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. #
  7. # Syscall table generation for perf
  8. #
  9. out := $(OUTPUT)arch/s390/include/generated/asm
  10. header := $(out)/syscalls_64.c
  11. syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
  12. sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
  13. sysdef := $(sysprf)/syscall.tbl
  14. systbl := $(sysprf)/mksyscalltbl
  15. # Create output directory if not already present
  16. _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
  17. $(header): $(sysdef) $(systbl)
  18. @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
  19. (diff -B $(sysdef) $(syskrn) >/dev/null) \
  20. || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
  21. $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
  22. clean::
  23. $(call QUIET_CLEAN, s390) $(RM) $(header)
  24. archheaders: $(header)