From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@buildroot.org
Subject: [Buildroot] [git commit] package/mali-driver: new package
Date: Sat, 8 Jan 2022 19:04:32 +0100 [thread overview]
Message-ID: <20220108175845.89D9C82BA3@busybox.osuosl.org> (raw)
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
reply other threads:[~2022-01-08 18:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220108175845.89D9C82BA3@busybox.osuosl.org \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).