initial commit
This commit is contained in:
commit
596de49ff4
3 changed files with 107 additions and 0 deletions
15
.SRCINFO
Normal file
15
.SRCINFO
Normal file
|
@ -0,0 +1,15 @@
|
|||
pkgbase = eta-touchdrv
|
||||
pkgdesc = Touchscreen driver for Vestel 14MB24A (IRTOUCH)
|
||||
pkgver = 0.2.0
|
||||
pkgrel = 1
|
||||
arch = x86_64
|
||||
license = custom
|
||||
depends = dkms
|
||||
depends = usbutils
|
||||
depends = systemd
|
||||
source = https://github.com/kernelginar/eta-touchdrv/archive/a0e54d8018cbf436e761ebf71fe5b21fe78a3af5.tar.gz
|
||||
source = 0001-patch-for-6.x.patch
|
||||
b2sums = a9622821060e50c7bd62ac5ccff025150da261fdf6e3da7066759309e06db266181b64a8d5768226e3de0d9bbe52738d671379aa1d241608f5a7f72e9061cb03
|
||||
b2sums = 5ddfb66dac47b818039e40468f8d8634576ee49f8842d38ef7a046e0d1f57d799ea76da08428dbae69ced720a49419cc417afee1e4fd39aefd9c65dff0fdc16b
|
||||
|
||||
pkgname = eta-touchdrv
|
50
0001-patch-for-6.x.patch
Normal file
50
0001-patch-for-6.x.patch
Normal file
|
@ -0,0 +1,50 @@
|
|||
From a8f27b1733213e36a50af6a1917fd14482246a2a Mon Sep 17 00:00:00 2001
|
||||
From: slonkazoid <slonkazoid@slonk.ing>
|
||||
Date: Thu, 28 Mar 2024 19:21:29 +0300
|
||||
Subject: [PATCH] patch for 6.x
|
||||
|
||||
---
|
||||
usr/src/eta-touchdrv/touch2/OpticalDrv.c | 3 +++
|
||||
usr/src/eta-touchdrv/touch4/OtdDrv.c | 5 ++++-
|
||||
2 files changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/usr/src/eta-touchdrv/touch2/OpticalDrv.c b/usr/src/eta-touchdrv/touch2/OpticalDrv.c
|
||||
index d3a5057..55f9156 100644
|
||||
--- a/usr/src/eta-touchdrv/touch2/OpticalDrv.c
|
||||
+++ b/usr/src/eta-touchdrv/touch2/OpticalDrv.c
|
||||
@@ -22,6 +22,9 @@
|
||||
|
||||
#define OPTICAL_MINOR_BASE 0
|
||||
|
||||
+#define strlcpy(dst,src,dsize) strncpy(dst,src,(dsize)-1)
|
||||
+#define strlcat(dst,src,ssize) strncat(dst,src,(ssize)-1)
|
||||
+
|
||||
typedef struct _device_context_pool
|
||||
{
|
||||
char name[128];
|
||||
diff --git a/usr/src/eta-touchdrv/touch4/OtdDrv.c b/usr/src/eta-touchdrv/touch4/OtdDrv.c
|
||||
index d9708df..6095b32 100644
|
||||
--- a/usr/src/eta-touchdrv/touch4/OtdDrv.c
|
||||
+++ b/usr/src/eta-touchdrv/touch4/OtdDrv.c
|
||||
@@ -21,6 +21,9 @@
|
||||
#define info(format, arg...) \
|
||||
printk(KERN_INFO KBUILD_MODNAME ": " format "\n", ##arg)
|
||||
|
||||
+#define strlcpy(dst,src,dsize) strncpy(dst,src,(dsize)-1)
|
||||
+#define strlcat(dst,src,ssize) strncat(dst,src,(ssize)-1)
|
||||
+
|
||||
|
||||
typedef struct _device_context_pool
|
||||
{
|
||||
@@ -443,7 +446,7 @@ static int otd_init(void)
|
||||
int result;
|
||||
|
||||
//֮ǰÔÚotd_mkdevÄÚ
|
||||
- otd_class = class_create(THIS_MODULE, DEVICE_NODE_NAME);
|
||||
+ otd_class = class_create(THIS_MODULE->name);
|
||||
if (IS_ERR(otd_class))
|
||||
{
|
||||
err("%s: Class create failed.", __func__);
|
||||
--
|
||||
2.44.0
|
||||
|
42
PKGBUILD
Normal file
42
PKGBUILD
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Maintainer: slonkazoid <slonkazoid@slonk.ing>
|
||||
# Based on the work of kernelginar
|
||||
# https://github.com/kernelginar/lure-repo/blob/main/eta-touchdrv-git/lure.sh
|
||||
|
||||
pkgname="eta-touchdrv"
|
||||
pkgver="0.2.0"
|
||||
pkgrel=1
|
||||
pkgdesc="Touchscreen driver for Vestel 14MB24A (IRTOUCH)"
|
||||
arch=("x86_64")
|
||||
homepage="https://github.com/kernelginar/eta-touchdrv"
|
||||
license=("custom")
|
||||
depends=(
|
||||
"dkms"
|
||||
"usbutils"
|
||||
"systemd"
|
||||
)
|
||||
|
||||
_commit_hash='a0e54d8018cbf436e761ebf71fe5b21fe78a3af5'
|
||||
source=(
|
||||
"https://github.com/kernelginar/eta-touchdrv/archive/${_commit_hash}.tar.gz"
|
||||
"0001-patch-for-6.x.patch"
|
||||
)
|
||||
b2sums=(
|
||||
'a9622821060e50c7bd62ac5ccff025150da261fdf6e3da7066759309e06db266181b64a8d5768226e3de0d9bbe52738d671379aa1d241608f5a7f72e9061cb03'
|
||||
'5ddfb66dac47b818039e40468f8d8634576ee49f8842d38ef7a046e0d1f57d799ea76da08428dbae69ced720a49419cc417afee1e4fd39aefd9c65dff0fdc16b'
|
||||
)
|
||||
|
||||
prepare() {
|
||||
mv "${pkgname}-${_commit_hash}" "${pkgname}-${pkgver}"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
patch --forward --strip=1 --input=../0001-patch-for-6.x.patch
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "${pkgdir}/usr"
|
||||
cp -rT "${srcdir}/${pkgname}-${pkgver}/usr" "${pkgdir}/usr"
|
||||
}
|
||||
|
||||
post_install() {
|
||||
echo "You must enable the eta-touchdrv and touchdrv-start services."
|
||||
echo "# systemctl enable --now eta-touchdrv touchdrv-start"
|
||||
}
|
Loading…
Reference in a new issue