Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Jiri Olsa Newsgroups: linux.kernel Subject: Re: [PATCH] perf: fix makefile generation under dash Date: Sun, 19 Jul 2015 21:20:04 +0200 Message-ID: References: X-Original-To: Sergei Trofimovich MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 43 Organization: linux.* mail to news gateway X-Original-Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org X-Original-Date: Sun, 19 Jul 2015 21:17:17 +0200 X-Original-Message-ID: <20150719191717.GB27893@krava.brq.redhat.com> X-Original-References: <1437298205-29305-1-git-send-email-siarheit@google.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: aioe.org linux.kernel:1187772 On Sun, Jul 19, 2015 at 10:30:05AM +0100, Sergei Trofimovich wrote: > Under dash 'echo -n' yields '-n' to stdout. > Use printf "" instead. Acked-by: Jiri Olsa thanks, jirka > > CC: Peter Zijlstra > CC: Ingo Molnar > CC: Arnaldo Carvalho de Melo > CC: Jiri Olsa > CC: Namhyung Kim > CC: Adrian Hunter > CC: linux-kernel@vger.kernel.org > Signed-off-by: Sergei Trofimovich > --- > tools/perf/config/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile > index 094ddae..bc0b59e 100644 > --- a/tools/perf/config/Makefile > +++ b/tools/perf/config/Makefile > @@ -11,7 +11,7 @@ ifneq ($(obj-perf),) > obj-perf := $(abspath $(obj-perf))/ > endif > > -$(shell echo -n > $(OUTPUT).config-detected) > +$(shell printf "" > $(OUTPUT).config-detected) > detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected) > detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected) > > -- > 2.4.6 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/