diff options
author | Jiri Olsa <jolsa@kernel.org> | 2015-12-23 12:58:34 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-06 18:11:14 -0500 |
commit | 58683600dfe377c883eb8217b5a9bfcfe231b3ff (patch) | |
tree | 61eadf6b22444e9b638829a16ddebe7715550a55 /tools | |
parent | 936d120d5f6406377e622da3167cafc811d053ea (diff) |
perf build: Use FEATURE-DUMP in bpf subproject
Using FEATURE-DUMP in bpf subproject for features detection in case bpf
is built via perf. Keeping the current features detection otherwise.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Wang Nan <wangnan0@huawei.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama <pi3orama@163.com>
Link: http://lkml.kernel.org/r/1450893514-9158-6-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/bpf/Makefile | 4 | ||||
-rw-r--r-- | tools/perf/Makefile.perf | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 636e3ddb93a1..919b71780710 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile | |||
@@ -80,7 +80,11 @@ endif | |||
80 | endif | 80 | endif |
81 | 81 | ||
82 | ifeq ($(check_feat),1) | 82 | ifeq ($(check_feat),1) |
83 | ifeq ($(FEATURES_DUMP),) | ||
83 | include $(srctree)/tools/build/Makefile.feature | 84 | include $(srctree)/tools/build/Makefile.feature |
85 | else | ||
86 | include $(FEATURES_DUMP) | ||
87 | endif | ||
84 | endif | 88 | endif |
85 | 89 | ||
86 | export prefix libdir src obj | 90 | export prefix libdir src obj |
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 569fcf022531..404e3b1c4e31 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -436,7 +436,7 @@ $(LIBAPI)-clean: | |||
436 | $(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) clean >/dev/null | 436 | $(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) clean >/dev/null |
437 | 437 | ||
438 | $(LIBBPF): fixdep FORCE | 438 | $(LIBBPF): fixdep FORCE |
439 | $(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) $(OUTPUT)libbpf.a | 439 | $(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) $(OUTPUT)libbpf.a FEATURES_DUMP=$(realpath $(OUTPUT)FEATURE-DUMP) |
440 | 440 | ||
441 | $(LIBBPF)-clean: | 441 | $(LIBBPF)-clean: |
442 | $(call QUIET_CLEAN, libbpf) | 442 | $(call QUIET_CLEAN, libbpf) |