Messages in this thread | | | Subject | Re: [PATCH] perf: Let O= makes handle relative paths | From | Steven Rostedt <> | Date | Thu, 16 Aug 2012 12:07:54 -0400 |
| |
On Wed, 2012-08-15 at 18:39 +0200, Borislav Petkov wrote:
> diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include > index bde8521d56bb..96ce80a3743b 100644 > --- a/tools/scripts/Makefile.include > +++ b/tools/scripts/Makefile.include > @@ -1,6 +1,8 @@ > ifeq ("$(origin O)", "command line") > - OUTPUT := $(O)/ > - COMMAND_O := O=$(O) > + dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),) > + ABSOLUTE_O := $(shell cd $(O) ; pwd) > + OUTPUT := $(ABSOLUTE_O)/ > + COMMAND_O := O=$(ABSOLUTE_O) > endif >
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Arnaldo, can you pick this patch? Keep both the Signed-off-bys that Boris placed.
Thanks!
-- Steve
| |