Lines Matching full:feature

2 feature_dir := $(srctree)/tools/build/feature
5 OUTPUT_FEATURES = $(OUTPUT)feature/
11 feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" CXXFLAGS="$(EXTRA_CXXFLAGS) $(FEATURE_CHECK_CXXFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C $(feature_dir) $(OUTPUT_FEATURES)test-$1.bin >/dev/null 2>/dev/null && echo 1 || echo 0)
16 feature-$(1) := 1
20 # Build the feature check binaries in parallel, ignore errors, ignore return value and suppress output:
24 # Note that this is not a complete list of all feature tests, just
27 # [ Feature tests not mentioned here have to be built explicitly in
29 # feature check. ]
32 # tools/build/feature/test-all.c and we try to build it all together
38 # $ rm -rf /tmp/b ; mkdir /tmp/b ; make -C tools/perf O=/tmp/b feature-dump
39 # $ grep fortify-source /tmp/b/FEATURE-DUMP
40 # feature-fortify-source=1
43 # All the others should have lines in tools/build/feature/test-all.c like:
60 # If the sample above works, then we end up with these lines in the FEATURE-DUMP
63 # feature-disassembler-four-args=1
64 # feature-libzstd=1
106 # of all feature tests
157 # Declare group members of a feature to display the logical OR of the detection
163 # Declare list of feature dependency packages that provide pkg-config files.
183 # If in the future we need per-feature checks/flags for features not
200 # feature matrix:
202 ifeq ($(feature-all), 1)
204 # test-all.c passed - just set all the core feature flags to 1:
220 # Print the result of the feature test:
234 ifneq (,$(filter 1,$(foreach feat,$(call feature_group,$(feat)),$(feature-$(feat)))))
247 # generates feature value assignment for name, like:
248 # $(call feature_assign,libdw) == feature-libdw=1
250 feature_assign = feature-$(1)=$(feature-$(1))
252 FEATURE_DUMP_FILENAME = $(OUTPUT)FEATURE-DUMP$(FEATURE_USER)
269 # so we force FEATURE-DUMP generation
286 ifneq ($(feature-$(1)), 1)