| 1 |
[manifest] |
| 2 |
name = libbpf |
| 3 |
|
| 4 |
[download] |
| 5 |
url = https://github.com/libbpf/libbpf/archive/refs/tags/v0.7.0.tar.gz |
| 6 |
sha256 = 5083588ce5a3a620e395ee1e596af77b4ec5771ffc71cff2af49dfee38c06361 |
| 7 |
|
| 8 |
# BPF only builds on linux, so make it a NOP on other platforms |
| 9 |
[build.not(os=linux)] |
| 10 |
builder = nop |
| 11 |
|
| 12 |
[build.os=linux] |
| 13 |
builder = make |
| 14 |
subdir = libbpf-0.7.0/src |
| 15 |
|
| 16 |
[make.build_args] |
| 17 |
BUILD_STATIC_ONLY=y |
| 18 |
|
| 19 |
# libbpf-0.3 requires uapi headers >= 5.8 |
| 20 |
[make.install_args] |
| 21 |
install |
| 22 |
install_uapi_headers |
| 23 |
BUILD_STATIC_ONLY=y |
| 24 |
|
| 25 |
[dependencies] |
| 26 |
libelf |