]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/config/Makefile
perf/powerpc: Add support for unwinding perf-stackdump
[karo-tx-linux.git] / tools / perf / config / Makefile
index eca6a912e8c22b0df342a7d955c6bad2db5ddf47..220536cf2b599ce1bd7e613263b60e6773e55ddb 100644 (file)
@@ -23,6 +23,12 @@ $(call detected_var,ARCH)
 
 NO_PERF_REGS := 1
 
+# Additional ARCH settings for ppc
+ifeq ($(ARCH),powerpc)
+  NO_PERF_REGS := 0
+  LIBUNWIND_LIBS := -lunwind -lunwind-ppc64
+endif
+
 # Additional ARCH settings for x86
 ifeq ($(ARCH),x86)
   $(call detected,CONFIG_X86)
@@ -109,7 +115,7 @@ ifdef PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET
   CFLAGS += -DHAVE_ARCH_REGS_QUERY_REGISTER_OFFSET
 endif
 
-include $(src-perf)/config/utilities.mak
+include $(srctree)/tools/scripts/utilities.mak
 
 ifeq ($(call get-executable,$(FLEX)),)
   dummy := $(error Error: $(FLEX) is missing on this system, please install it)