File tree Expand file tree Collapse file tree 3 files changed +10
-17
lines changed
kernel/bpf/preload/iterators Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LLVM_STRIP ?= llvm-strip
99TOOLS_PATH := $(abspath ../../../../tools)
1010BPFTOOL_SRC := $(TOOLS_PATH ) /bpf/bpftool
1111BPFTOOL_OUTPUT := $(abs_out ) /bpftool
12- DEFAULT_BPFTOOL := $(OUTPUT ) /sbin /bpftool
12+ DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT ) /bootstrap /bpftool
1313BPFTOOL ?= $(DEFAULT_BPFTOOL )
1414
1515LIBBPF_SRC := $(TOOLS_PATH ) /lib/bpf
@@ -61,9 +61,5 @@ $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(LIBBPF_OU
6161 OUTPUT=$(abspath $(dir $@ ) ) / prefix= \
6262 DESTDIR=$(LIBBPF_DESTDIR ) $(abspath $@ ) install_headers
6363
64- $(DEFAULT_BPFTOOL ) : $(BPFOBJ ) | $(BPFTOOL_OUTPUT )
65- $(Q )$(MAKE ) $(submake_extras ) -C $(BPFTOOL_SRC ) \
66- OUTPUT=$(BPFTOOL_OUTPUT ) / \
67- LIBBPF_OUTPUT=$(LIBBPF_OUTPUT ) / \
68- LIBBPF_DESTDIR=$(LIBBPF_DESTDIR ) / \
69- prefix= DESTDIR=$(abs_out ) / install-bin
64+ $(DEFAULT_BPFTOOL ) : | $(BPFTOOL_OUTPUT )
65+ $(Q )$(MAKE ) $(submake_extras ) -C $(BPFTOOL_SRC ) OUTPUT=$(BPFTOOL_OUTPUT ) / bootstrap
Original file line number Diff line number Diff line change @@ -282,12 +282,10 @@ $(LIBBPF): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(LIBBPF_OU
282282
283283BPFTOOLDIR := $(TOOLS_PATH ) /bpf/bpftool
284284BPFTOOL_OUTPUT := $(abspath $(BPF_SAMPLES_PATH ) ) /bpftool
285- BPFTOOL := $(BPFTOOL_OUTPUT ) /bpftool
286- $(BPFTOOL ) : $(LIBBPF ) $(wildcard $(BPFTOOLDIR ) /* .[ch] $(BPFTOOLDIR ) /Makefile) | $(BPFTOOL_OUTPUT )
287- $(MAKE ) -C $(BPFTOOLDIR ) srctree=$(BPF_SAMPLES_PATH ) /../../ \
288- OUTPUT=$(BPFTOOL_OUTPUT ) / \
289- LIBBPF_OUTPUT=$(LIBBPF_OUTPUT ) / \
290- LIBBPF_DESTDIR=$(LIBBPF_DESTDIR ) /
285+ BPFTOOL := $(BPFTOOL_OUTPUT ) /bootstrap/bpftool
286+ $(BPFTOOL ) : $(wildcard $(BPFTOOLDIR ) /* .[ch] $(BPFTOOLDIR ) /Makefile) | $(BPFTOOL_OUTPUT )
287+ $(MAKE ) -C $(BPFTOOLDIR ) srctree=$(BPF_SAMPLES_PATH ) /../../ \
288+ OUTPUT=$(BPFTOOL_OUTPUT ) / bootstrap
291289
292290$(LIBBPF_OUTPUT ) $(BPFTOOL_OUTPUT ) :
293291 $(call msg,MKDIR,$@ )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ include ../../scripts/Makefile.include
44OUTPUT ?= $(abspath .output) /
55
66BPFTOOL_OUTPUT := $(OUTPUT ) bpftool/
7- DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT ) bpftool
7+ DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT ) bootstrap/ bpftool
88BPFTOOL ?= $(DEFAULT_BPFTOOL )
99LIBBPF_SRC := $(abspath ../../lib/bpf)
1010BPFOBJ_OUTPUT := $(OUTPUT ) libbpf/
@@ -86,6 +86,5 @@ $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OU
8686 $(Q )$(MAKE ) $(submake_extras ) -C $(LIBBPF_SRC ) OUTPUT=$(BPFOBJ_OUTPUT ) \
8787 DESTDIR=$(BPFOBJ_OUTPUT ) prefix= $(abspath $@ ) install_headers
8888
89- $(DEFAULT_BPFTOOL ) : $(BPFOBJ ) | $(BPFTOOL_OUTPUT )
90- $(Q )$(MAKE ) $(submake_extras ) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT ) \
91- ARCH= CROSS_COMPILE= CC=$(HOSTCC ) LD=$(HOSTLD )
89+ $(DEFAULT_BPFTOOL ) : | $(BPFTOOL_OUTPUT )
90+ $(Q )$(MAKE ) $(submake_extras ) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT ) bootstrap
You can’t perform that action at this time.
0 commit comments