diff options
-rw-r--r-- | tools/perf/config/Makefile.feature | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/config/Makefile.feature b/tools/perf/config/Makefile.feature index 8c98bbce6031..ea83a92630c0 100644 --- a/tools/perf/config/Makefile.feature +++ b/tools/perf/config/Makefile.feature | |||
@@ -1,3 +1,5 @@ | |||
1 | feature_dir := $(srctree)/tools/perf/config/feature-checks | ||
2 | |||
1 | ifneq ($(OUTPUT),) | 3 | ifneq ($(OUTPUT),) |
2 | OUTPUT_FEATURES = $(OUTPUT)config/feature-checks/ | 4 | OUTPUT_FEATURES = $(OUTPUT)config/feature-checks/ |
3 | $(shell mkdir -p $(OUTPUT_FEATURES)) | 5 | $(shell mkdir -p $(OUTPUT_FEATURES)) |
@@ -5,7 +7,7 @@ endif | |||
5 | 7 | ||
6 | feature_check = $(eval $(feature_check_code)) | 8 | feature_check = $(eval $(feature_check_code)) |
7 | define feature_check_code | 9 | define feature_check_code |
8 | feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C config/feature-checks test-$1.bin >/dev/null 2>/dev/null && echo 1 || echo 0) | 10 | feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C $(feature_dir) test-$1.bin >/dev/null 2>/dev/null && echo 1 || echo 0) |
9 | endef | 11 | endef |
10 | 12 | ||
11 | feature_set = $(eval $(feature_set_code)) | 13 | feature_set = $(eval $(feature_set_code)) |
@@ -91,7 +93,7 @@ ifeq ($(feature-all), 1) | |||
91 | # | 93 | # |
92 | $(foreach feat,$(FEATURE_TESTS),$(call feature_set,$(feat))) | 94 | $(foreach feat,$(FEATURE_TESTS),$(call feature_set,$(feat))) |
93 | else | 95 | else |
94 | $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS=$(LDFLAGS) -i -j -C config/feature-checks $(addsuffix .bin,$(FEATURE_TESTS)) >/dev/null 2>&1) | 96 | $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS)" LDFLAGS=$(LDFLAGS) -i -j -C $(feature_dir) $(addsuffix .bin,$(FEATURE_TESTS)) >/dev/null 2>&1) |
95 | $(foreach feat,$(FEATURE_TESTS),$(call feature_check,$(feat))) | 97 | $(foreach feat,$(FEATURE_TESTS),$(call feature_check,$(feat))) |
96 | endif | 98 | endif |
97 | 99 | ||