perf tools: Fix makefile generation under dash
authorSergei Trofimovich <[email protected]>
Sun, 19 Jul 2015 09:30:05 +0000 (10:30 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 20 Jul 2015 20:49:50 +0000 (17:49 -0300)
Under dash 'echo -n' yields '-n' to stdout.  Use printf "" instead.

Signed-off-by: Sergei Trofimovich <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/config/Makefile

index a9b93d1ecefa82c7b119fc4cae0915b673a91cf3..8768f84e42a57725058805be9018044f97840fab 100644 (file)
@@ -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)