mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
tslib: drop unused package
This commit is contained in:
parent
4f29da4919
commit
851416c977
@ -1,41 +0,0 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
|
||||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
||||||
|
|
||||||
PKG_NAME="tslib"
|
|
||||||
PKG_VERSION="1.1"
|
|
||||||
PKG_SHA256="fe35e5f710ea933b118f710e2ce4403ac076fe69926b570333867d4de082a51c"
|
|
||||||
PKG_LICENSE="GPL"
|
|
||||||
PKG_SITE="https://github.com/kergoth/tslib"
|
|
||||||
PKG_URL="https://github.com/kergoth/tslib/releases/download/1.1/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
||||||
PKG_DEPENDS_TARGET="toolchain evtest"
|
|
||||||
PKG_LONGDESC="Touchscreen access library with ts_uinput_touch daemon."
|
|
||||||
PKG_TOOLCHAIN="autotools"
|
|
||||||
|
|
||||||
TSLIB_MODULES_ENABLED="linear dejitter variance pthres ucb1x00 tatung input galax dmc touchkit st1232 waveshare"
|
|
||||||
TSLIB_MODULES_DISABLED="arctic2 corgi collie h3600 linear_h2200 mk712 cy8mrln_palmpre"
|
|
||||||
TSLIB_BUILD_STATIC="yes" # no .so files (easy to manage)
|
|
||||||
|
|
||||||
pre_configure_target() {
|
|
||||||
local OPTS_MODULES=""
|
|
||||||
|
|
||||||
if [ "${TSLIB_BUILD_STATIC}" = "yes" ]; then
|
|
||||||
OPTS_MODULES="--enable-static --disable-shared"
|
|
||||||
for module in ${TSLIB_MODULES_ENABLED}; do
|
|
||||||
OPTS_MODULES+=" --enable-${module}=static"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
for module in ${TSLIB_MODULES_DISABLED}; do
|
|
||||||
OPTS_MODULES+=" --disable-${module}"
|
|
||||||
done
|
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="${OPTS_MODULES} \
|
|
||||||
--sysconfdir=/storage/.kodi/userdata/addon_data/service.touchscreen"
|
|
||||||
}
|
|
||||||
|
|
||||||
post_makeinstall_target() {
|
|
||||||
rm -fr ${INSTALL}/etc
|
|
||||||
rm -fr ${INSTALL}/storage
|
|
||||||
|
|
||||||
debug_strip ${INSTALL}/usr/bin
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
From f60540a1e0c120dfb6a7452470b3e56bee91c7d7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Dirk Gerdes <dirk.gerdes@googlemail.com>
|
|
||||||
Date: Mon, 22 Dec 2014 11:07:13 +0100
|
|
||||||
Subject: [PATCH] Added support for additional model of eGalax Touchscreen
|
|
||||||
|
|
||||||
---
|
|
||||||
plugins/galax-raw.c | 5 +++--
|
|
||||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/plugins/galax-raw.c b/plugins/galax-raw.c
|
|
||||||
index c8689e2..6cacc56 100644
|
|
||||||
--- a/plugins/galax-raw.c
|
|
||||||
+++ b/plugins/galax-raw.c
|
|
||||||
@@ -93,8 +93,9 @@ static int ts_galax_check_fd (struct tslib_galax *i)
|
|
||||||
|
|
||||||
if ((ioctl(ts->fd, EVIOCGID, &infos) < 0)) {
|
|
||||||
fprintf (stderr, "tslib: warning, can not read device identifier\n");
|
|
||||||
- } else if (infos.bustype != 3 || infos.vendor != 0x0EEF || infos.product != 0x0001) {
|
|
||||||
- fprintf (stderr, "tslib: this is not an eGalax touchscreen (3,0x0EEF,1,0x0112)\n"
|
|
||||||
+ } else if (infos.bustype != 3 || infos.vendor != 0x0EEF
|
|
||||||
+ || (infos.product != 0x0001 && infos.product != 0x7200 && infos.product != 0x7201 && infos.product != 0xC000)) {
|
|
||||||
+ fprintf (stderr, "tslib: this is not an eGalax touchscreen (3,0x0EEF,1/7200/7201/C000,0x0112)\n"
|
|
||||||
"Your device: bus=%d, vendor=0x%X, product=0x%X, version=0x%X\n",infos.bustype, infos.vendor, infos.product, infos.version);
|
|
||||||
return -1;
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
diff -aurN a/plugins/linear.c b/plugins/linear.c
|
|
||||||
--- a/plugins/linear.c 2013-08-08 02:23:04.000000000 +0200
|
|
||||||
+++ b/plugins/linear.c 2015-09-04 20:21:50.376205701 +0200
|
|
||||||
@@ -187,11 +187,11 @@
|
|
||||||
for (index = 0; index < 7; index++)
|
|
||||||
if (fscanf(pcal_fd, "%d", &lin->a[index]) != 1) break;
|
|
||||||
fscanf(pcal_fd, "%d %d", &lin->cal_res_x, &lin->cal_res_y);
|
|
||||||
-#ifdef DEBUG
|
|
||||||
+/*#ifdef DEBUG*/
|
|
||||||
printf("Linear calibration constants: ");
|
|
||||||
for(index=0;index<7;index++) printf("%d ",lin->a[index]);
|
|
||||||
printf("\n");
|
|
||||||
-#endif /*DEBUG*/
|
|
||||||
+/*#endif*/ /*DEBUG*/
|
|
||||||
fclose(pcal_fd);
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
|||||||
From c4c59790f3191c1a233fc1a61f8fedad85de1aeb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Peter Fink <pfink@christ-es.de>
|
|
||||||
Date: Wed, 8 Feb 2017 14:04:45 +0100
|
|
||||||
Subject: [PATCH] fbutils: Fix x64 execution. Call malloc not with a hardcoded
|
|
||||||
sizeof(__u32). This caused the application to crash with segfaults on x64
|
|
||||||
machines.
|
|
||||||
|
|
||||||
---
|
|
||||||
tests/fbutils.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/tests/fbutils.c b/tests/fbutils.c
|
|
||||||
index 8ee494bc..fd7fbfe9 100644
|
|
||||||
--- a/tests/fbutils.c
|
|
||||||
+++ b/tests/fbutils.c
|
|
||||||
@@ -138,7 +138,7 @@ int open_framebuffer(void)
|
|
||||||
memset(fbuffer,0,fix.smem_len);
|
|
||||||
|
|
||||||
bytes_per_pixel = (var.bits_per_pixel + 7) / 8;
|
|
||||||
- line_addr = malloc (sizeof (__u32) * var.yres_virtual);
|
|
||||||
+ line_addr = malloc (sizeof (line_addr) * var.yres_virtual);
|
|
||||||
addr = 0;
|
|
||||||
for (y = 0; y < var.yres_virtual; y++, addr += fix.line_length)
|
|
||||||
line_addr [y] = fbuffer + addr;
|
|
@ -1,56 +0,0 @@
|
|||||||
--- a/plugins/galax-raw.c 2022-07-21 15:46:14.666220340 +0000
|
|
||||||
+++ b/plugins/galax-raw.c 2022-07-22 01:11:26.708402821 +0000
|
|
||||||
@@ -198,7 +198,8 @@
|
|
||||||
samp->x = i->current_x;
|
|
||||||
samp->y = i->current_y;
|
|
||||||
samp->pressure = i->current_p;
|
|
||||||
- samp->tv = ev.time;
|
|
||||||
+ samp->tv.tv_sec = ev.input_event_sec;
|
|
||||||
+ samp->tv.tv_usec = ev.input_event_usec;
|
|
||||||
samp++;
|
|
||||||
total++;
|
|
||||||
break;
|
|
||||||
--- a/plugins/input-raw.c 2013-08-08 00:23:04.000000000 +0000
|
|
||||||
+++ b/plugins/input-raw.c 2022-07-22 01:30:41.417546206 +0000
|
|
||||||
@@ -179,7 +179,8 @@
|
|
||||||
samp->y = i->current_y;
|
|
||||||
samp->pressure = i->current_p;
|
|
||||||
}
|
|
||||||
- samp->tv = ev.time;
|
|
||||||
+ samp->tv.tv_sec = ev.input_event_sec;
|
|
||||||
+ samp->tv.tv_usec = ev.input_event_usec;
|
|
||||||
#ifdef DEBUG
|
|
||||||
fprintf(stderr, "RAW---------------------> %d %d %d %d.%d\n",
|
|
||||||
samp->x, samp->y, samp->pressure, samp->tv.tv_sec,
|
|
||||||
@@ -262,7 +263,8 @@
|
|
||||||
samp->pressure = i->current_p = ev.value;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
- samp->tv = ev.time;
|
|
||||||
+ samp->tv.tv_sec = ev.input_event_sec;
|
|
||||||
+ samp->tv.tv_usec = ev.input_event_usec;
|
|
||||||
#ifdef DEBUG
|
|
||||||
fprintf(stderr, "RAW---------------------------> %d %d %d\n",
|
|
||||||
samp->x, samp->y, samp->pressure);
|
|
||||||
@@ -278,7 +280,8 @@
|
|
||||||
samp->x = 0;
|
|
||||||
samp->y = 0;
|
|
||||||
samp->pressure = 0;
|
|
||||||
- samp->tv = ev.time;
|
|
||||||
+ samp->tv.tv_sec = ev.input_event_sec;
|
|
||||||
+ samp->tv.tv_usec = ev.input_event_usec;
|
|
||||||
samp++;
|
|
||||||
total++;
|
|
||||||
}
|
|
||||||
--- a/plugins/st1232-raw.c 2022-07-22 01:31:02.757483058 +0000
|
|
||||||
+++ b/plugins/st1232-raw.c 2022-07-22 01:27:40.174757983 +0000
|
|
||||||
@@ -162,7 +162,8 @@
|
|
||||||
samp->x = i->current_x;
|
|
||||||
samp->y = i->current_y;
|
|
||||||
samp->pressure = i->current_p; /* is 0 on finger released */
|
|
||||||
- samp->tv = ev.time;
|
|
||||||
+ samp->tv.tv_sec = ev.input_event_sec;
|
|
||||||
+ samp->tv.tv_usec = ev.input_event_usec;
|
|
||||||
|
|
||||||
i->current_p = 0; /* will be set again when getting xy cordinate */
|
|
||||||
samp++;
|
|
@ -1,10 +0,0 @@
|
|||||||
--- a/src/ts_reconfig.c 2024-05-23 07:01:59.264165839 +0000
|
|
||||||
+++ b/src/ts_reconfig.c 2024-05-23 07:01:54.034129359 +0000
|
|
||||||
@@ -16,6 +16,7 @@
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#include <dlfcn.h>
|
|
||||||
+#include <string.h>
|
|
||||||
|
|
||||||
#include "tslib-private.h"
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user