ar71xx: fix legacy image build error
[openwrt/openwrt.git] / target / linux / generic / patches-4.1 / 011-perf-tools-Fix-makefile-generation-under-dash.patch
1 From: Sergei Trofimovich <siarheit@google.com>
2 Date: Sun, 19 Jul 2015 10:30:05 +0100
3 Subject: [PATCH] perf tools: Fix makefile generation under dash
4
5 Under dash 'echo -n' yields '-n' to stdout. Use printf "" instead.
6
7 Signed-off-by: Sergei Trofimovich <siarheit@google.com>
8 Acked-by: Ingo Molnar <mingo@kernel.org>
9 Acked-by: Jiri Olsa <jolsa@kernel.org>
10 Cc: Adrian Hunter <adrian.hunter@intel.com>
11 Cc: Namhyung Kim <namhyung@kernel.org>
12 Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
13 Link: http://lkml.kernel.org/r/1437298205-29305-1-git-send-email-siarheit@google.com
14 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
15 ---
16
17 --- a/tools/perf/config/Makefile
18 +++ b/tools/perf/config/Makefile
19 @@ -11,7 +11,7 @@ ifneq ($(obj-perf),)
20 obj-perf := $(abspath $(obj-perf))/
21 endif
22
23 -$(shell echo -n > $(OUTPUT).config-detected)
24 +$(shell printf "" > $(OUTPUT).config-detected)
25 detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected)
26 detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected)
27