public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf: Let O= makes handle relative paths
@ 2012-08-13 13:20 Steven Rostedt
  2012-08-13 13:24 ` Borislav Petkov
  0 siblings, 1 reply; 15+ messages in thread
From: Steven Rostedt @ 2012-08-13 13:20 UTC (permalink / raw)
  To: LKML; +Cc: Arnaldo Carvalho de Melo, borislav.petkov, Ingo Molnar,
	Namhyung Kim

When I did a compile of perf using a relative path for the output
directory, the build failed when it tried to compile libtraceevent. This
is because it continues to use the same relative path when the new
working directory is in a different path.

    SUBDIR ../lib/traceevent/
/bin/sh: line 0: cd: ../../../nobackup/perf/: No such file or directory
Makefile:74: *** output directory "../../../nobackup/perf/" does not exist.  Stop.
make: *** [../../../nobackup/perf///libtraceevent.a] Error 2


Make the path used an absolute path when building perf with O=.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
index bde8521..9e3e31e 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -1,6 +1,7 @@
 ifeq ("$(origin O)", "command line")
-	OUTPUT := $(O)/
-	COMMAND_O := O=$(O)
+	RAW_O := $(shell cd $(O) ; pwd)
+	OUTPUT := $(RAW_O)/
+	COMMAND_O := O=$(RAW_O)
 endif
 
 ifneq ($(OUTPUT),)



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-08-21 16:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 13:20 [PATCH] perf: Let O= makes handle relative paths Steven Rostedt
2012-08-13 13:24 ` Borislav Petkov
2012-08-13 14:23   ` Steven Rostedt
2012-08-13 14:29     ` Borislav Petkov
2012-08-13 18:02       ` Arnaldo Carvalho de Melo
2012-08-15 10:27         ` Borislav Petkov
2012-08-15 13:06           ` Arnaldo Carvalho de Melo
2012-08-15 13:18             ` Borislav Petkov
2012-08-15 14:38               ` Peter Zijlstra
2012-08-15 14:42                 ` Borislav Petkov
2012-08-15 14:59                   ` Arnaldo Carvalho de Melo
2012-08-15 16:39                     ` Borislav Petkov
2012-08-16 16:07                       ` Steven Rostedt
2012-08-16 17:12                         ` Arnaldo Carvalho de Melo
2012-08-21 16:20                       ` [tip:perf/core] perf tools: " tip-bot for Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox