aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/Makefile.perf9
-rw-r--r--tools/perf/config/Makefile2
-rw-r--r--tools/perf/util/Build3
3 files changed, 5 insertions, 9 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 5cb62b070e04..96e3cdc7f89c 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -346,15 +346,6 @@ ifneq ($(OUTPUT),)
346 CFLAGS += -I$(OUTPUT) 346 CFLAGS += -I$(OUTPUT)
347endif 347endif
348 348
349ifndef NO_LIBDW_DWARF_UNWIND
350 LIB_OBJS += $(OUTPUT)util/unwind-libdw.o
351 LIB_H += util/unwind-libdw.h
352endif
353
354ifndef NO_LIBUNWIND
355 LIB_OBJS += $(OUTPUT)util/unwind-libunwind.o
356endif
357
358ifndef NO_SLANG 349ifndef NO_SLANG
359 LIB_OBJS += $(OUTPUT)ui/browser.o 350 LIB_OBJS += $(OUTPUT)ui/browser.o
360 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o 351 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 5f553989d8a1..e55d811e633f 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -420,9 +420,11 @@ ifdef NO_LIBUNWIND
420 dwarf-post-unwind := 0 420 dwarf-post-unwind := 0
421 else 421 else
422 dwarf-post-unwind-text := libdw 422 dwarf-post-unwind-text := libdw
423 $(call detected,CONFIG_LIBDW_DWARF_UNWIND)
423 endif 424 endif
424else 425else
425 dwarf-post-unwind-text := libunwind 426 dwarf-post-unwind-text := libunwind
427 $(call detected,CONFIG_LIBUNWIND)
426 # Enable libunwind support by default. 428 # Enable libunwind support by default.
427 ifndef NO_LIBDW_DWARF_UNWIND 429 ifndef NO_LIBDW_DWARF_UNWIND
428 NO_LIBDW_DWARF_UNWIND := 1 430 NO_LIBDW_DWARF_UNWIND := 1
diff --git a/tools/perf/util/Build b/tools/perf/util/Build
index 10630fbe43c1..0401a80bab09 100644
--- a/tools/perf/util/Build
+++ b/tools/perf/util/Build
@@ -85,6 +85,9 @@ endif
85libperf-$(CONFIG_DWARF) += probe-finder.o 85libperf-$(CONFIG_DWARF) += probe-finder.o
86libperf-$(CONFIG_DWARF) += dwarf-aux.o 86libperf-$(CONFIG_DWARF) += dwarf-aux.o
87 87
88libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
89libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
90
88CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 91CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
89CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" 92CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))"
90 93