Makefile 892 B

12345678910111213141516171819202122232425262728293031323334
  1. # SPDX-License-Identifier: GPL-2.0
  2. ifndef NO_DWARF
  3. PERF_HAVE_DWARF_REGS := 1
  4. endif
  5. HAVE_KVM_STAT_SUPPORT := 1
  6. PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
  7. PERF_HAVE_JITDUMP := 1
  8. #
  9. # Syscall table generation for perf
  10. #
  11. out := $(OUTPUT)arch/powerpc/include/generated/asm
  12. header32 := $(out)/syscalls_32.c
  13. header64 := $(out)/syscalls_64.c
  14. sysdef := $(srctree)/tools/arch/powerpc/include/uapi/asm/unistd.h
  15. sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls/
  16. systbl := $(sysprf)/mksyscalltbl
  17. # Create output directory if not already present
  18. _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
  19. $(header64): $(sysdef) $(systbl)
  20. $(Q)$(SHELL) '$(systbl)' '64' '$(CC)' $(sysdef) > $@
  21. $(header32): $(sysdef) $(systbl)
  22. $(Q)$(SHELL) '$(systbl)' '32' '$(CC)' $(sysdef) > $@
  23. clean::
  24. $(call QUIET_CLEAN, powerpc) $(RM) $(header32) $(header64)
  25. archheaders: $(header32) $(header64)