diff options
author | Jiri Olsa <jolsa@redhat.com> | 2014-01-07 07:47:18 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-01-13 08:06:24 -0500 |
commit | c4eb6c0e7aa3a5106a3382880bc41c696e72adb4 (patch) | |
tree | d04e9d725f988f0b8d9e42b9478557de2f94a6d8 | |
parent | 98eafce6bda705529e90d33b7f23706b346a6c8a (diff) |
perf tools: Automate setup of FEATURE_CHECK_(C|LD)FLAGS-all variables
Instead of explicitly adding same value into
FEATURE_CHECK_(C|LD)FLAGS-all variables we can do that automatically.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1389098853-14466-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/config/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index f2bc659d20af..5d15b43b03c6 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -53,9 +53,6 @@ else | |||
53 | FEATURE_CHECK_LDFLAGS-libunwind = $(LIBUNWIND_LDFLAGS) | 53 | FEATURE_CHECK_LDFLAGS-libunwind = $(LIBUNWIND_LDFLAGS) |
54 | FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS) | 54 | FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS) |
55 | FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS) | 55 | FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS) |
56 | # and the flags for the test-all case | ||
57 | FEATURE_CHECK_CFLAGS-all += $(LIBUNWIND_CFLAGS) | ||
58 | FEATURE_CHECK_LDFLAGS-all += $(LIBUNWIND_LDFLAGS) | ||
59 | endif | 56 | endif |
60 | 57 | ||
61 | ifeq ($(NO_PERF_REGS),0) | 58 | ifeq ($(NO_PERF_REGS),0) |
@@ -152,6 +149,17 @@ CORE_FEATURE_TESTS = \ | |||
152 | stackprotector-all \ | 149 | stackprotector-all \ |
153 | timerfd | 150 | timerfd |
154 | 151 | ||
152 | # Set FEATURE_CHECK_(C|LD)FLAGS-all for all CORE_FEATURE_TESTS features. | ||
153 | # If in the future we need per-feature checks/flags for features not | ||
154 | # mentioned in this list we need to refactor this ;-). | ||
155 | set_test_all_flags = $(eval $(set_test_all_flags_code)) | ||
156 | define set_test_all_flags_code | ||
157 | FEATURE_CHECK_CFLAGS-all += $(FEATURE_CHECK_CFLAGS-$(1)) | ||
158 | FEATURE_CHECK_LDFLAGS-all += $(FEATURE_CHECK_LDFLAGS-$(1)) | ||
159 | endef | ||
160 | |||
161 | $(foreach feat,$(CORE_FEATURE_TESTS),$(call set_test_all_flags,$(feat))) | ||
162 | |||
155 | # | 163 | # |
156 | # So here we detect whether test-all was rebuilt, to be able | 164 | # So here we detect whether test-all was rebuilt, to be able |
157 | # to skip the print-out of the long features list if the file | 165 | # to skip the print-out of the long features list if the file |