aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go1
-rw-r--r--internal/rosa/mesa.go28
2 files changed, 29 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 1c77d93b..e3f3e7b5 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -78,6 +78,7 @@ const (
Libbsd
Libcap
Libclc
+ Libdrm
Libev
Libexpat
Libffi
diff --git a/internal/rosa/mesa.go b/internal/rosa/mesa.go
index 2e1596fe..43a95219 100644
--- a/internal/rosa/mesa.go
+++ b/internal/rosa/mesa.go
@@ -27,3 +27,31 @@ func init() {
ID: 12098,
}
}
+
+func (t Toolchain) newLibdrm() (pkg.Artifact, string) {
+ const (
+ version = "2.4.131"
+ checksum = "riHPSpvTnvCPbR-iT4jt7_X-z4rpwm6oNh9ZN2zP6RBFkFVxBRKmedG4eEXSADIh"
+ )
+ return t.NewPackage("libdrm", version, pkg.NewHTTPGetTar(
+ nil, "https://gitlab.freedesktop.org/mesa/libdrm/-/archive/"+
+ "libdrm-"+version+"/libdrm-libdrm-"+version+".tar.bz2",
+ mustDecode(checksum),
+ pkg.TarBzip2,
+ ), nil, (*MesonHelper)(nil),
+ Binutils, // symbols check fail with llvm nm
+
+ KernelHeaders,
+ ), version
+}
+func init() {
+ artifactsM[Libdrm] = Metadata{
+ f: Toolchain.newLibdrm,
+
+ Name: "libdrm",
+ Description: "a userspace library for accessing the DRM",
+ Website: "https://dri.freedesktop.org/",
+
+ ID: 1596,
+ }
+}