bpftools: add utility and library packages supporting eBPF usage
[openwrt/openwrt.git] / package / network / utils / bpftools / patches / 003-bpftool-allow-passing-BPFTOOL_VERSION-to-make.patch
1 From 668d1c2951e18512a27aec20b80dea627d01bf04 Mon Sep 17 00:00:00 2001
2 From: Tony Ambardar <Tony.Ambardar@gmail.com>
3 Date: Thu, 20 Aug 2020 16:05:48 -0700
4 Subject: [PATCH] tools/bpftool: allow passing BPFTOOL_VERSION to make
5
6 Signed-off-by: Tony Ambardar <Tony.Ambardar@gmail.com>
7 ---
8 tools/bpf/bpftool/Makefile | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
12 index 9e85f101be85..d9d821736c31 100644
13 --- a/tools/bpf/bpftool/Makefile
14 +++ b/tools/bpf/bpftool/Makefile
15 @@ -25,7 +25,7 @@ endif
16
17 LIBBPF = $(LIBBPF_PATH)libbpf.a
18
19 -BPFTOOL_VERSION := $(shell make -rR --no-print-directory -sC ../../.. kernelversion)
20 +BPFTOOL_VERSION ?= $(shell make -rR --no-print-directory -sC ../../.. kernelversion)
21
22 $(LIBBPF): FORCE
23 $(if $(LIBBPF_OUTPUT),@mkdir -p $(LIBBPF_OUTPUT))
24 --
25 2.25.1
26