diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-07-16 13:57:15 -0400 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-07-16 19:36:49 -0400 |
commit | b4b5bffd6c19b1005d2e4c90971bf562b8b4a55b (patch) | |
tree | 33761bcb0750780918b6945e0f45e73699817aa9 /tools/lib/bpf | |
parent | ee583014a9d8cc48cb4969f87cc02c12b966fabc (diff) |
tools: libbpf: remove libelf-getphdrnum feature detection
libbpf does not depend on libelf-getphdrnum feature, don't check it.
$ git grep HAVE_ELF_GETPHDRNUM_SUPPORT
tools/perf/Makefile.config: CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT
tools/perf/util/symbol-elf.c:#ifndef HAVE_ELF_GETPHDRNUM_SUPPORT
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf')
-rw-r--r-- | tools/lib/bpf/Makefile | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 7a8e4c98ef1a..d49902e818b5 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile | |||
@@ -66,7 +66,7 @@ ifndef VERBOSE | |||
66 | endif | 66 | endif |
67 | 67 | ||
68 | FEATURE_USER = .libbpf | 68 | FEATURE_USER = .libbpf |
69 | FEATURE_TESTS = libelf libelf-getphdrnum libelf-mmap bpf reallocarray | 69 | FEATURE_TESTS = libelf libelf-mmap bpf reallocarray |
70 | FEATURE_DISPLAY = libelf bpf | 70 | FEATURE_DISPLAY = libelf bpf |
71 | 71 | ||
72 | INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi -I$(srctree)/tools/include/uapi -I$(srctree)/tools/perf | 72 | INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi -I$(srctree)/tools/include/uapi -I$(srctree)/tools/perf |
@@ -116,10 +116,6 @@ ifeq ($(feature-libelf-mmap), 1) | |||
116 | override CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT | 116 | override CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT |
117 | endif | 117 | endif |
118 | 118 | ||
119 | ifeq ($(feature-libelf-getphdrnum), 1) | ||
120 | override CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT | ||
121 | endif | ||
122 | |||
123 | ifeq ($(feature-reallocarray), 0) | 119 | ifeq ($(feature-reallocarray), 0) |
124 | override CFLAGS += -DCOMPAT_NEED_REALLOCARRAY | 120 | override CFLAGS += -DCOMPAT_NEED_REALLOCARRAY |
125 | endif | 121 | endif |