From b2b20a51effa205e05528facedc91fd48087b247 Mon Sep 17 00:00:00 2001
From: "Marty E. Plummer" <hanetzer@startmail.com>
Date: Wed, 19 Sep 2018 22:04:05 -0500
Subject: [PATCH] drm/panfrost: add dkms makefile and conf

Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
---
 drivers/gpu/drm/panfrost/dkms.conf | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 drivers/gpu/drm/panfrost/dkms.conf

diff --git a/drivers/gpu/drm/panfrost/dkms.conf b/drivers/gpu/drm/panfrost/dkms.conf
new file mode 100644
index 0000000000000..296ef049d71e0
--- /dev/null
+++ b/drivers/gpu/drm/panfrost/dkms.conf
@@ -0,0 +1,12 @@
+# You can use this to test panfrost on a binary kernel such as with archlinux
+# or the like. Just symlink `linux/drivers/gpu/drm/panfrost` to `/usr/src/panfrost-0`
+# and `linux/include/uapi/drm/panfrost_drm.h` to
+# `/lib/modules/kver/build/include/uapi/drm/panfrost_drm.h`, then follow
+# normal dkms building steps
+PACKAGE_NAME="panfrost"
+PACKAGE_VERSION="0"
+CLEAN="make clean"
+MAKE[0]="make KVERSION=$kernelver CONFIG_DRM_PANFROST=m panfrost.ko"
+BUILT_MODULE_NAME[0]="panfrost"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/gpu/drm/panfrost"
+AUTOINSTALL="yes"
-- 
GitLab