* [PATCH v1 1/1] tools/perf: try to make output directory
@ 2016-01-28 18:41 Andy Shevchenko
2016-01-28 18:49 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2016-01-28 18:41 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo, linux-kernel, Hunter, Adrian; +Cc: Andy Shevchenko
Instead of just complaining and fail try to create output directory fisrt like
it's done in main Linux kernel Makefile.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
tools/build/Makefile | 2 +-
tools/perf/Makefile | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/build/Makefile b/tools/build/Makefile
index 0d5a0e3..3f60b67 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -3,7 +3,7 @@ srctree := $(patsubst %/,%,$(dir $(shell pwd)))
srctree := $(patsubst %/,%,$(dir $(srctree)))
endif
-include $(srctree)/tools//scripts/Makefile.include
+include $(srctree)/tools/scripts/Makefile.include
define allow-override
$(if $(or $(findstring environment,$(origin $(1))),\
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index dcd9a70..4e68eba 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -35,6 +35,9 @@ endif
#
ifneq ($(O),)
FULL_O := $(shell readlink -f $(O) || echo $(O))
+ saved-output := $(FULL_O)
+ FULL_O := $(shell mkdir -p $(FULL_O) && cd $(FULL_O) && /bin/pwd)
+ $(if $(FULL_O),, $(error failed to create output directory "$(saved-output)"))
endif
#
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] tools/perf: try to make output directory
2016-01-28 18:41 [PATCH v1 1/1] tools/perf: try to make output directory Andy Shevchenko
@ 2016-01-28 18:49 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-01-28 18:49 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-kernel, Hunter, Adrian
Em Thu, Jan 28, 2016 at 08:41:52PM +0200, Andy Shevchenko escreveu:
> Instead of just complaining and fail try to create output directory fisrt like
> it's done in main Linux kernel Makefile.
That was intentionally disabled, please look at the changelog.
- Arnaldo
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> tools/build/Makefile | 2 +-
> tools/perf/Makefile | 3 +++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tools/build/Makefile b/tools/build/Makefile
> index 0d5a0e3..3f60b67 100644
> --- a/tools/build/Makefile
> +++ b/tools/build/Makefile
> @@ -3,7 +3,7 @@ srctree := $(patsubst %/,%,$(dir $(shell pwd)))
> srctree := $(patsubst %/,%,$(dir $(srctree)))
> endif
>
> -include $(srctree)/tools//scripts/Makefile.include
> +include $(srctree)/tools/scripts/Makefile.include
>
> define allow-override
> $(if $(or $(findstring environment,$(origin $(1))),\
> diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> index dcd9a70..4e68eba 100644
> --- a/tools/perf/Makefile
> +++ b/tools/perf/Makefile
> @@ -35,6 +35,9 @@ endif
> #
> ifneq ($(O),)
> FULL_O := $(shell readlink -f $(O) || echo $(O))
> + saved-output := $(FULL_O)
> + FULL_O := $(shell mkdir -p $(FULL_O) && cd $(FULL_O) && /bin/pwd)
> + $(if $(FULL_O),, $(error failed to create output directory "$(saved-output)"))
> endif
>
> #
> --
> 2.7.0.rc3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-28 18:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 18:41 [PATCH v1 1/1] tools/perf: try to make output directory Andy Shevchenko
2016-01-28 18:49 ` Arnaldo Carvalho de Melo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.