提交 165108a9 编写于 作者: J Jiri Olsa 提交者: Ingo Molnar

tools/perf/build: Clean up feature_print_code()

Remove DUMMY by making sure 'feature_print' is evaluated and thus
all messages are printed.
Signed-off-by: NJiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/20131008155110.GA15558@krava.redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 aa4acf6c
...@@ -180,21 +180,21 @@ endif ...@@ -180,21 +180,21 @@ endif
# #
# Print the result of the feature test: # Print the result of the feature test:
# #
feature_print = $(eval $(feature_print_code)) feature_print = $(eval $(feature_print_code)) $(info $(MSG))
define feature_print_code define feature_print_code
ifeq ($(feature-$(1)), 1) ifeq ($(feature-$(1)), 1)
MSG = $(shell printf '...%30s: [ \033[32mon\033[m ]' $(1)) MSG = $(shell printf '...%30s: [ \033[32mon\033[m ]' $(1))
else else
MSG = $(shell printf '...%30s: [ \033[31mOFF\033[m ]' $(1)) MSG = $(shell printf '...%30s: [ \033[31mOFF\033[m ]' $(1))
endif endif
$(info $(MSG))
endef endef
# #
# Only print out our features if we rebuilt the testcases or if a test failed: # Only print out our features if we rebuilt the testcases or if a test failed:
# #
ifeq ($(test-all-failed), 1) ifeq ($(test-all-failed), 1)
$(foreach feat,$(CORE_FEATURE_TESTS) DUMMY,$(call feature_print,$(feat))) $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_print,$(feat)))
$(info ) $(info )
endif endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册