Commit 19177bc3 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

tools build: Allow deferring printing the results of feature detection



By setting FEATURE_DISPLAY_DEFERRED=1 a tool may ask for the printout
of the detected features in tools/build/Makefile.feature to be done
later adter extra feature checks are done that are tool specific.

The perf tool will do it via its tools/perf/Makefile.config, as it
performs such extra feature checks.

Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent fbed59f8
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -240,6 +240,8 @@ ifeq ($(VF),1)
  feature_verbose := 1
endif

feature_display_entries = $(eval $(feature_display_entries_code))
define feature_display_entries_code
  ifeq ($(feature_display),1)
    $(info )
    $(info Auto-detecting system features:)
@@ -254,3 +256,8 @@ ifeq ($(feature_verbose),1)
    $(foreach feat,$(TMP),$(call feature_print_status,$(feat),))
    $(info )
  endif
endef

ifeq ($(FEATURE_DISPLAY_DEFERRED),)
  $(call feature_display_entries)
endif