[PATCH 11/34] perf kbuild: update kbuild files according to last changes
From: Alexis Berlemont
Date: Tue May 13 2014 - 18:12:40 EST
---
tools/perf/Kbuild | 2 +-
tools/perf/Makefile.kbuild | 30 +++++++++++++-----------------
tools/perf/ui/browsers/Kbuild | 1 +
tools/perf/util/Kbuild | 1 +
4 files changed, 16 insertions(+), 18 deletions(-)
diff --git a/tools/perf/Kbuild b/tools/perf/Kbuild
index 80b9184..16cb804 100644
--- a/tools/perf/Kbuild
+++ b/tools/perf/Kbuild
@@ -26,6 +26,7 @@ obj-$(CONFIG_BUILTIN_MEM) += builtin-mem.o
obj-$(CONFIG_BUILTIN_TEST) += tests/
obj-y += ../../lib/rbtree.o
+obj-y += ../lib/symbol/kallsyms.o
obj-y += util/
obj-y += ui/
@@ -34,7 +35,6 @@ obj-y += arch/
obj-$(CONFIG_LIBPERL) += scripts/perl/Perf-Trace-Util/
obj-$(CONFIG_LIBPYTHON) += scripts/python/Perf-Trace-Util/
-
CFLAGS_rbtree.o += -Wno-unused-parameter
CFLAGS_perf.o += -D"PERF_HTML_PATH=KBUILD_STR($(htmldir_SQ))"
diff --git a/tools/perf/Makefile.kbuild b/tools/perf/Makefile.kbuild
index 93a1a78..a759cd7 100644
--- a/tools/perf/Makefile.kbuild
+++ b/tools/perf/Makefile.kbuild
@@ -102,8 +102,9 @@ HOSTCC = gcc
FLEX = flex
BISON = bison
INSTALL = install
+PKG_CONFIG = pkg-config
-export AS LD CC CPP HOSTCC FLEX BISON
+export AS LD CC CPP HOSTCC FLEX BISON PKG_CONFIG
# kbuild related config
CONFIG_SHELL := /bin/sh
@@ -128,14 +129,11 @@ CONFIG_DETECTED := $(obj-perf)/.config-detected
export CONFIG_DETECTED
# external .a libs
-LK_DIR := $(srctree)/tools/lib/lk/
-TRACE_EVENT_DIR := $(srctree)/tools/lib/traceevent/
-
LIBTRACEEVENT := $(obj-kernel)/tools/lib/traceevent/libtraceevent.a
-LIBLK := $(obj-kernel)/tools/lib/lk/liblk.a
-LIBS_A := $(LIBTRACEEVENT) $(LIBLK)
+LIBAPIKFS := $(obj-kernel)/tools/lib/api/libapikfs.a
+LIBS_A := $(LIBTRACEEVENT) $(LIBAPIKFS)
-export TRACE_EVENT_DIR LK_DIR LIBTRACEEVENT LIBLK
+export LIBTRACEEVENT LIBAPIKFS
all:
@@ -170,7 +168,7 @@ clean-dirs := $(addprefix _clean_, tools/perf/)
$(clean-dirs):
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.clean obj=$(patsubst _clean_%,%,$@)
-clean: $(clean-dirs) $(LIBTRACEEVENT)-clean $(LIBLK)-clean
+clean: $(clean-dirs) $(LIBTRACEEVENT)-clean $(LIBAPIKFS)-clean
$(Q)$(QUIET_CLEAN)
$(Q)rm -f $(obj-perf)/perf
$(Q)rm -f $(obj-perf)/common-cmds.h
@@ -277,15 +275,13 @@ $(LIBTRACEEVENT)-clean: FORCE
@mkdir -p $(obj-kernel)/tools/lib/traceevent
$(Q)$(MAKE) -sC $(srctree)/tools/lib/traceevent O=$(obj-kernel)/tools/lib/traceevent clean
-PHONY += $(TRACE_EVENT_DIR) $(TRACE_EVENT_DIR)-clean
-
-$(LIBLK): FORCE
- @mkdir -p $(obj-kernel)/tools/lib/lk
- $(Q)$(MAKE) -C $(srctree)/tools/lib/lk O=$(obj-kernel)/tools/lib/lk
+$(LIBAPIKFS): FORCE
+ @mkdir -p $(obj-kernel)/tools/lib/api
+ $(Q)$(MAKE) -C $(srctree)/tools/lib/api O=$(obj-kernel)/tools/lib/api
-$(LIBLK)-clean: FORCE
- @mkdir -p $(obj-kernel)/tools/lib/lk
- $(Q)$(MAKE) -sC $(srctree)/tools/lib/lk O=$(obj-kernel)/tools/lib/lk clean
+$(LIBAPIKFS)-clean: FORCE
+ @mkdir -p $(obj-kernel)/tools/lib/api
+ $(Q)$(MAKE) -sC $(srctree)/tools/lib/api O=$(obj-kernel)/tools/lib/api clean
tools/perf/PERF-VERSION-FILE: FORCE
$(QUIET_GEN)$(SHELL_PATH) $(src-perf)/util/PERF-VERSION-GEN $(obj-perf)/
@@ -405,7 +401,7 @@ dummy := $(info DEBUG KCONFIG_AUTOHEADER $(KCONFIG_AUTOHEADER))
dummy := $(info DEBUG KCONFIG_AUTOCONFIG $(KCONFIG_AUTOCONFIG))
dummy := $(info DEBUG KCONFIG_AUTOCONFIGDEP $(KCONFIG_AUTOCONFIGDEP))
dummy := $(info DEBUG TRACE_EVENT_DIR $(TRACE_EVENT_DIR))
-dummy := $(info DEBUG LK_DIR $(LK_DIR))
+dummy := $(info DEBUG LIBAPIKFS $(LIBAPIKFS))
endif
endif # skip-makefile
diff --git a/tools/perf/ui/browsers/Kbuild b/tools/perf/ui/browsers/Kbuild
index 03938aa..3a5fd55 100644
--- a/tools/perf/ui/browsers/Kbuild
+++ b/tools/perf/ui/browsers/Kbuild
@@ -1,4 +1,5 @@
obj-$(CONFIG_TUI) += annotate.o
+obj-$(CONFIG_TUI) += header.o
obj-$(CONFIG_TUI) += hists.o
obj-$(CONFIG_TUI) += map.o
obj-$(CONFIG_TUI) += scripts.o
diff --git a/tools/perf/util/Kbuild b/tools/perf/util/Kbuild
index 6fb42a6..4d0b6da 100644
--- a/tools/perf/util/Kbuild
+++ b/tools/perf/util/Kbuild
@@ -69,6 +69,7 @@ obj-y += values.o
obj-y += xyarray.o
obj-y += vdso.o
obj-y += wrapper.o
+obj-y += trace-event.o
obj-y += trace-event-info.o
obj-y += trace-event-parse.o
obj-$(CONFIG_BUILTIN_SCRIPT) += trace-event-scripting.o
--
1.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/