-
Notifications
You must be signed in to change notification settings - Fork 0
/
libbpf.opam
44 lines (44 loc) · 1.29 KB
/
libbpf.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Libbpf bindings"
description: "Wrapped libbpf api's for writing BPF user programs in OCaml"
maintainer: ["Lee Koon Wen"]
authors: ["Lee Koon Wen"]
license: ["ISC" "BSD-3-Clause"]
tags: ["bindings" "bpf" "libbpf"]
homepage: "https://github.com/koonwen/ocaml-libbpf"
doc: "https://koonwen.github.io/ocaml-libbpf"
bug-reports: "https://github.com/koonwen/ocaml-libbpf/issues"
depends: [
"ocaml" {>= "4.08"}
"dune" {>= "3.13"}
"ctypes" {>= "0.22.0"}
"ppx_deriving"
"ppx_expect"
"conf-libbpf"
"conf-bpftool"
"conf-clang"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/koonwen/ocaml-libbpf.git"
# eBPF features by kernel version https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md
# Fix to kernel >= 6.1 to provide bound BPF map types
available: [ os = "linux" &
(( os-distribution = "debian" & os-version >= "12" ) # Linux 6.1 & Libbpf 1.1.0
|( os-distribution = "ubuntu" & os-version >= "23.04" ) # Linux 6.2 & Libbpf 1.1.0
|( os-distribution = "fedora" & os-version >= "38" )) # Linux 6.2 & Libbpf 1.1.0
]