Re: [PATCH] perf: Let O= makes handle relative paths

Steven Rostedt
2012-08-16T16:07:59Z

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