aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-25 09:51:26 +0900
committerOphestra <cat@gensokyo.uk>2026-05-25 09:51:26 +0900
commit7eebf49b98e72b4b1966b1d1e78910a643514ece (patch)
tree9e418ae5e89e29c7fa1ec6ebe801b7b27cc79cfe /internal/rosa
parent8c84883af69e5902e58953181081ef386f36b6ff (diff)
internal/rosa/package: libbpf
For eBPF support in iproute2. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
-rw-r--r--internal/rosa/package/iproute2.az4
-rw-r--r--internal/rosa/package/libbpf.az31
2 files changed, 33 insertions, 2 deletions
diff --git a/internal/rosa/package/iproute2.az b/internal/rosa/package/iproute2.az
index a0ff8ab4..69febd5d 100644
--- a/internal/rosa/package/iproute2.az
+++ b/internal/rosa/package/iproute2.az
@@ -39,14 +39,14 @@ package iproute2 {
bison,
flex,
- elfutils,
+ libbpf,
libmnl,
libcap,
kernel-headers,
];
runtime = [
- elfutils,
+ libbpf,
libmnl,
libcap,
];
diff --git a/internal/rosa/package/libbpf.az b/internal/rosa/package/libbpf.az
new file mode 100644
index 00000000..14b3d0bf
--- /dev/null
+++ b/internal/rosa/package/libbpf.az
@@ -0,0 +1,31 @@
+package libbpf {
+ description = "the reference library for eBPF development";
+ website = "https://github.com/libbpf/libbpf";
+ anitya = 141355;
+
+ version# = "1.7.0";
+ source = remoteGitHub {
+ suffix = "libbpf/libbpf";
+ tag = "v"+version;
+ checksum = "Gsk3TYDTne6behhdiyRB0Y5GTGECRh2265VY7IQ_VB62vIm7U9oqzEW-Va5Tvi_w";
+ };
+
+ env = [ "PREFIX=/system" ];
+ early = "cd src";
+ writable = true;
+ chmod = true;
+
+ exec = make {
+ inPlace = true;
+ skipConfigure = true;
+ skipCheck = true;
+ install = "make DESTDIR=/work LIBSUBDIR=lib install";
+ };
+
+ inputs = [
+ elfutils,
+ kernel-headers,
+ ];
+
+ runtime = [ elfutils ];
+}