aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2012-08-07 13:43:12 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-08-08 11:37:41 -0400
commit2ede8303db75ead3250f95c3390e6ba200cbe7d4 (patch)
treedd513b4677f8839d0486b33af26bb4146194b015 /tools/perf/Makefile
parente6b978335424029d05edc01374744516b21b1ede (diff)
perf tools: Fix lib/traceevent build dir with OUTPUT variable set
With the OUTPUT variable set the libtraceevent.a file is wrongly built in the source directory: + make -d OUTPUT=/.../.build/perf-user/ DESTDIR=/.../.install/perf-user/ ... Considering target file `../lib/traceevent//libtraceevent.a'. File `../lib/traceevent//libtraceevent.a' does not exist. Finished prerequisites of target file `../lib/traceevent//libtraceevent.a'. Must remake target `../lib/traceevent//libtraceevent.a'. Invoking recipe from Makefile:837 to update target `../lib/traceevent//libtraceevent.a'. Putting child 0x703850 (../lib/traceevent//libtraceevent.a) PID 8365 on the chain. Live child 0x703850 (../lib/traceevent//libtraceevent.a) PID 8365 SUBDIR ../lib/traceevent/ $ git clean -nxd Would remove tools/lib/traceevent/.event-parse.d Would remove tools/lib/traceevent/.parse-filter.d Would remove tools/lib/traceevent/.parse-utils.d Would remove tools/lib/traceevent/.trace-seq.d Would remove tools/lib/traceevent/event-parse.o Would remove tools/lib/traceevent/libtraceevent.a Would remove tools/lib/traceevent/parse-filter.o Would remove tools/lib/traceevent/parse-utils.o Would remove tools/lib/traceevent/trace-seq.o This patch fixes this. Note: Though this should already work with O=$outputdir we better use the OUTPUT variable directly. Signed-off-by: Robert Richter <robert.richter@amd.com> Cc: Ingo Molnar <mingo@kernel.org> Link: http://lkml.kernel.org/r/1344361396-7237-3-git-send-email-robert.richter@amd.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 35655c3a7b7a..2d4bf6ef1c5a 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -186,10 +186,10 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
186 186
187TRACE_EVENT_DIR = ../lib/traceevent/ 187TRACE_EVENT_DIR = ../lib/traceevent/
188 188
189ifeq ("$(origin O)", "command line") 189ifneq ($(OUTPUT),)
190 TE_PATH=$(OUTPUT)/ 190 TE_PATH=$(OUTPUT)
191else 191else
192 TE_PATH=$(TRACE_EVENT_DIR)/ 192 TE_PATH=$(TRACE_EVENT_DIR)
193endif 193endif
194 194
195LIBTRACEEVENT = $(TE_PATH)libtraceevent.a 195LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
@@ -842,7 +842,7 @@ $(LIB_FILE): $(LIB_OBJS)
842 842
843# libtraceevent.a 843# libtraceevent.a
844$(LIBTRACEEVENT): 844$(LIBTRACEEVENT):
845 $(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) $(COMMAND_O) libtraceevent.a 845 $(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) libtraceevent.a
846 846
847help: 847help:
848 @echo 'Perf make targets:' 848 @echo 'Perf make targets:'