Skip to content

Commit ba2fd56

Browse files
guidosarducciborkmann
authored andcommitted
tools/bpftool: Support passing BPFTOOL_VERSION to make
This change facilitates out-of-tree builds, packaging, and versioning for test and debug purposes. Defining BPFTOOL_VERSION allows self-contained builds within the tools tree, since it avoids use of the 'kernelversion' target in the top-level makefile, which would otherwise pull in several other includes from outside the tools tree. Signed-off-by: Tony Ambardar <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Quentin Monnet <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 642e450 commit ba2fd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bpf/bpftool/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ endif
2525

2626
LIBBPF = $(LIBBPF_PATH)libbpf.a
2727

28-
BPFTOOL_VERSION := $(shell make -rR --no-print-directory -sC ../../.. kernelversion)
28+
BPFTOOL_VERSION ?= $(shell make -rR --no-print-directory -sC ../../.. kernelversion)
2929

3030
$(LIBBPF): FORCE
3131
$(if $(LIBBPF_OUTPUT),@mkdir -p $(LIBBPF_OUTPUT))

0 commit comments

Comments
 (0)