011-perf-tools-Fix-makefile-generation-under-dash.patch 1.0 KB

123456789101112131415161718192021222324252627
  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. Under dash 'echo -n' yields '-n' to stdout. Use printf "" instead.
  5. Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  6. Acked-by: Ingo Molnar <mingo@kernel.org>
  7. Acked-by: Jiri Olsa <jolsa@kernel.org>
  8. Cc: Adrian Hunter <adrian.hunter@intel.com>
  9. Cc: Namhyung Kim <namhyung@kernel.org>
  10. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
  11. Link: http://lkml.kernel.org/r/1437298205-29305-1-git-send-email-siarheit@google.com
  12. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  13. ---
  14. --- a/tools/perf/config/Makefile
  15. +++ b/tools/perf/config/Makefile
  16. @@ -11,7 +11,7 @@ ifneq ($(obj-perf),)
  17. obj-perf := $(abspath $(obj-perf))/
  18. endif
  19. -$(shell echo -n > $(OUTPUT).config-detected)
  20. +$(shell printf "" > $(OUTPUT).config-detected)
  21. detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected)
  22. detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected)