diff options
-rw-r--r-- | tools/perf/Makefile.perf | 9 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 2 | ||||
-rw-r--r-- | tools/perf/util/Build | 3 |
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) |
347 | endif | 347 | endif |
348 | 348 | ||
349 | ifndef NO_LIBDW_DWARF_UNWIND | ||
350 | LIB_OBJS += $(OUTPUT)util/unwind-libdw.o | ||
351 | LIB_H += util/unwind-libdw.h | ||
352 | endif | ||
353 | |||
354 | ifndef NO_LIBUNWIND | ||
355 | LIB_OBJS += $(OUTPUT)util/unwind-libunwind.o | ||
356 | endif | ||
357 | |||
358 | ifndef NO_SLANG | 349 | ifndef 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 |
424 | else | 425 | else |
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 | |||
85 | libperf-$(CONFIG_DWARF) += probe-finder.o | 85 | libperf-$(CONFIG_DWARF) += probe-finder.o |
86 | libperf-$(CONFIG_DWARF) += dwarf-aux.o | 86 | libperf-$(CONFIG_DWARF) += dwarf-aux.o |
87 | 87 | ||
88 | libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o | ||
89 | libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o | ||
90 | |||
88 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" | 91 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
89 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" | 92 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" |
90 | 93 | ||