Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee9c80a1 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

perf build: Rename CORE_FEATURE_TESTS to FEATURE_TESTS



Preparing for feature checks separation, moving related stuff under
'FEATURE*' namespace.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <david.ahern@oracle.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-iobj4f9gygcakrk2v5u61159@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 9444e874
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -203,7 +203,7 @@ endef
#   the rule that uses them - an example for that is the 'bionic'
#   the rule that uses them - an example for that is the 'bionic'
#   feature check. ]
#   feature check. ]
#
#
CORE_FEATURE_TESTS =			\
FEATURE_TESTS =			\
	backtrace			\
	backtrace			\
	dwarf				\
	dwarf				\
	fortify-source			\
	fortify-source			\
@@ -262,7 +262,7 @@ VF_FEATURE_TESTS = \
	compile-32			\
	compile-32			\
	compile-x32
	compile-x32


# Set FEATURE_CHECK_(C|LD)FLAGS-all for all CORE_FEATURE_TESTS features.
# Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features.
# If in the future we need per-feature checks/flags for features not
# If in the future we need per-feature checks/flags for features not
# mentioned in this list we need to refactor this ;-).
# mentioned in this list we need to refactor this ;-).
set_test_all_flags = $(eval $(set_test_all_flags_code))
set_test_all_flags = $(eval $(set_test_all_flags_code))
@@ -271,7 +271,7 @@ define set_test_all_flags_code
  FEATURE_CHECK_LDFLAGS-all += $(FEATURE_CHECK_LDFLAGS-$(1))
  FEATURE_CHECK_LDFLAGS-all += $(FEATURE_CHECK_LDFLAGS-$(1))
endef
endef


$(foreach feat,$(CORE_FEATURE_TESTS),$(call set_test_all_flags,$(feat)))
$(foreach feat,$(FEATURE_TESTS),$(call set_test_all_flags,$(feat)))


#
#
# Special fast-path for the 'all features are available' case:
# Special fast-path for the 'all features are available' case:
@@ -286,10 +286,10 @@ ifeq ($(feature-all), 1)
  #
  #
  # test-all.c passed - just set all the core feature flags to 1:
  # test-all.c passed - just set all the core feature flags to 1:
  #
  #
  $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_set,$(feat)))
  $(foreach feat,$(FEATURE_TESTS),$(call feature_set,$(feat)))
else
else
  $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS=$(LDFLAGS) -i -j -C config/feature-checks $(addsuffix .bin,$(CORE_FEATURE_TESTS)) >/dev/null 2>&1)
  $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS=$(LDFLAGS) -i -j -C config/feature-checks $(addsuffix .bin,$(FEATURE_TESTS)) >/dev/null 2>&1)
  $(foreach feat,$(CORE_FEATURE_TESTS),$(call feature_check,$(feat)))
  $(foreach feat,$(FEATURE_TESTS),$(call feature_check,$(feat)))
endif
endif


ifeq ($(feature-stackprotector-all), 1)
ifeq ($(feature-stackprotector-all), 1)