* [Buildroot] [git commit] package/mali-driver: new package
@ 2022-01-08 18:04 Thomas Petazzoni
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2022-01-08 18:04 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=f3ecd9ea4a40d601317f3b7195be4f5d1bdb3146
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Add a new package to build and install the Mali kernel driver for
Midgard and Bifrost GPU.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/Config.in | 1 +
package/mali-driver/Config.in | 14 ++++++++++++++
package/mali-driver/mali-driver.hash | 3 +++
package/mali-driver/mali-driver.mk | 15 +++++++++++++++
4 files changed, 33 insertions(+)
diff --git a/package/Config.in b/package/Config.in
index 3b1c38db47..d32a87fe20 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -512,6 +512,7 @@ endmenu
source "package/lsuio/Config.in"
source "package/luksmeta/Config.in"
source "package/lvm2/Config.in"
+ source "package/mali-driver/Config.in"
source "package/mali-t76x/Config.in"
source "package/mbpfan/Config.in"
source "package/mdadm/Config.in"
diff --git a/package/mali-driver/Config.in b/package/mali-driver/Config.in
new file mode 100644
index 0000000000..fee67096c8
--- /dev/null
+++ b/package/mali-driver/Config.in
@@ -0,0 +1,14 @@
+comment "mali-driver needs a Linux kernel to be built"
+ depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_MALI_DRIVER
+ bool "mali-driver"
+ depends on BR2_LINUX_KERNEL
+ help
+ This package builds and installs the Linux kernel driver for
+ the Mali Midgard/Bifrost GPU, compatible with recent Linux
+ kernels (>= 5.4). Note that it should be installed together
+ with the corresponding userspace OpenGL libraries, which are
+ usually provided as binaries only by hardware vendors.
+
+ mali-driver requires a Linux kernel >= 5.4.
diff --git a/package/mali-driver/mali-driver.hash b/package/mali-driver/mali-driver.hash
new file mode 100644
index 0000000000..a144d5189e
--- /dev/null
+++ b/package/mali-driver/mali-driver.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 76464e5ed55e9d21062cf154733ce61217211172629ec8742af902607f14d41a mali-driver-a742530232d1de41b57465744a1259fa6c35049e.tar.gz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
diff --git a/package/mali-driver/mali-driver.mk b/package/mali-driver/mali-driver.mk
new file mode 100644
index 0000000000..b12bfec69d
--- /dev/null
+++ b/package/mali-driver/mali-driver.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# mali-driver
+#
+################################################################################
+
+MALI_DRIVER_VERSION = a742530232d1de41b57465744a1259fa6c35049e
+MALI_DRIVER_SITE = $(call github,bootlin,mali-driver,$(MALI_DRIVER_VERSION))
+MALI_DRIVER_DEPENDENCIES = linux
+MALI_DRIVER_LICENSE = GPL-2.0
+MALI_DRIVER_LICENSE_FILE = LICENSE
+MALI_DRIVER_MODULE_SUBDIRS = r8p0/drivers/gpu/arm/midgard
+
+$(eval $(kernel-module))
+$(eval $(generic-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-08 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-08 18:04 [Buildroot] [git commit] package/mali-driver: new package Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).