bpftool: add host build
authorEric Long <i@hack3r.moe>
Fri, 9 Aug 2024 16:42:34 +0000 (00:42 +0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 3 Sep 2024 22:06:34 +0000 (00:06 +0200)
commit21b155e0ff457131515ef7ee525d734b547fb0ba
tree0aff25023faf3935e8035b9ac3b08ee66ff94f82
parent2bec6f48e6f8438f81bf26979d9ea296331d265d
bpftool: add host build

Besides probing BPF information in running system, bpftool is also used in
generating skeleton, dumping BTF, etc. that is widely used in modern BPF
development. Make it available as a host tool so that we can use it in
package build.

Tested build targeting malta/le on Arch Linux x86_64. bpftools currently
does not support processing cross-endian BPF objects, so big-endian host
is needed to build for big-endian targets using bpftools.

Signed-off-by: Eric Long <i@hack3r.moe>
Link: https://github.com/openwrt/openwrt/pull/16122
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/utils/bpftool/Makefile