Lines Matching +full:libbpf +full:- +full:tools
1 --- docs/Makefile
3 @@ -1,5 +1,5 @@
4 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
5 -include ../../../scripts/Makefile.include
9 RM ?= rm -f
10 --- src/.gitignore
12 @@ -1,8 +1,8 @@
13 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
18 -bpftool*.8
19 FEATURE-DUMP.bpftool
21 libbpf
22 --- src/Makefile
24 @@ -1,10 +1,8 @@
25 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26 -include ../../scripts/Makefile.include
31 -srctree := $(patsubst %/,%,$(dir $(srctree)))
32 -srctree := $(patsubst %/,%,$(dir $(srctree)))
36 @@ -13,7 +11,7 @@
40 -BPF_DIR = $(srctree)/tools/lib/bpf
41 +BPF_DIR = $(srctree)/libbpf/src
45 @@ -43,16 +41,16 @@
46 $(QUIET_MKDIR)mkdir -p $@
48 $(LIBBPF): $(wildcard $(BPF_DIR)/*.[ch] $(BPF_DIR)/Makefile) | $(LIBBPF_OUTPUT)
49 - $(Q)$(MAKE) -C $(BPF_DIR) OUTPUT=$(LIBBPF_OUTPUT) \
50 - DESTDIR=$(LIBBPF_DESTDIR:/=) prefix= $(LIBBPF) install_headers
51 + $(Q)$(MAKE) -C $(BPF_DIR) OBJDIR=$(patsubst %/,%,$(LIBBPF_OUTPUT)) \
52 + PREFIX=$(LIBBPF_DESTDIR:/=) $(LIBBPF) install_headers
56 $(Q)install -m 644 -t $(LIBBPF_HDRS_DIR) $<
59 - $(Q)$(MAKE) -C $(BPF_DIR) OUTPUT=$(LIBBPF_BOOTSTRAP_OUTPUT) \
60 - DESTDIR=$(LIBBPF_BOOTSTRAP_DESTDIR:/=) prefix= \
61 + $(Q)$(MAKE) -C $(BPF_DIR) OBJDIR=$(patsubst %/,%,$(LIBBPF_BOOTSTRAP_OUTPUT)) \
66 @@ -76,9 +74,9 @@
67 CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \
68 -I$(or $(OUTPUT),.) \
69 -I$(LIBBPF_INCLUDE) \
70 - -I$(srctree)/kernel/bpf/ \
71 - -I$(srctree)/tools/include \
72 - -I$(srctree)/tools/include/uapi
73 + -I$(srctree)/src/kernel/bpf/ \
74 + -I$(srctree)/include \
75 + -I$(srctree)/include/uapi
77 CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"'
79 @@ -119,11 +117,7 @@
83 -ifeq ($(FEATURES_DUMP),)
84 -include $(srctree)/tools/build/Makefile.feature
85 -else
86 -include $(FEATURES_DUMP)
87 -endif
91 LIBS = $(LIBBPF) -lelf -lz
92 @@ -213,7 +207,7 @@
95 -I$(or $(OUTPUT),.) \
96 - -I$(srctree)/tools/include/uapi/ \
97 + -I$(srctree)/include/uapi/ \
98 -I$(LIBBPF_BOOTSTRAP_INCLUDE) \
99 -g -O2 -Wall -fno-stack-protector \
100 -target bpf -c $< -o $@
101 @@ -231,10 +225,10 @@
103 CFLAGS += $(if $(BUILD_BPF_SKELS),,-DBPFTOOL_WITHOUT_SKELETONS)
105 -$(BOOTSTRAP_OUTPUT)disasm.o: $(srctree)/kernel/bpf/disasm.c
107 $(QUIET_CC)$(HOSTCC) $(HOST_CFLAGS) -c -MMD $< -o $@
109 -$(OUTPUT)disasm.o: $(srctree)/kernel/bpf/disasm.c
111 $(QUIET_CC)$(CC) $(CFLAGS) -c -MMD $< -o $@
114 @@ -253,7 +247,7 @@
115 $(call QUIET_CLEAN, feature-detect)
116 $(Q)$(MAKE) -C $(srctree)/tools/build/feature/ clean >/dev/null
118 -clean: $(LIBBPF)-clean $(LIBBPF_BOOTSTRAP)-clean feature-detect-clean
119 +clean: $(LIBBPF)-clean $(LIBBPF_BOOTSTRAP)-clean
121 $(Q)$(RM) -- $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d
122 $(Q)$(RM) -- $(OUTPUT)*.skel.h $(OUTPUT)vmlinux.h
123 @@ -269,7 +263,7 @@
125 install: install-bin
126 $(Q)$(INSTALL) -m 0755 -d $(DESTDIR)$(bash_compdir)
127 - $(Q)$(INSTALL) -m 0644 bash-completion/bpftool $(DESTDIR)$(bash_compdir)
128 + $(Q)$(INSTALL) -m 0644 $(srctree)/bash-completion/bpftool $(DESTDIR)$(bash_compdir)
132 @@ -277,16 +271,16 @@
133 $(Q)$(RM) -- $(DESTDIR)$(bash_compdir)/bpftool
136 - $(call descend,Documentation)
139 doc-clean:
140 - $(call descend,Documentation,clean)
143 doc-install:
144 - $(call descend,Documentation,install)
147 doc-uninstall:
148 - $(call descend,Documentation,uninstall)