aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/mesa.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/mesa.go')
-rw-r--r--internal/rosa/mesa.go28
1 files changed, 28 insertions, 0 deletions
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,
+ }
+}