summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2006-07-10 22:46:23 +0200
committerRene Wagner <rw@handhelds.org>2006-07-10 22:46:23 +0200
commitb2e160d69aae78d991430975c75d6936a785e6fa (patch)
tree7446cfe3d0e28f70ba3f702aa7e78f2a75cbd1fd
parent0d48f6a7770a79ba22f9999bc871f96b7bf032e3 (diff)
tslib: add h4000 support.
Signed-off-by: Rene Wagner <rw@handhelds.org>
-rw-r--r--org.handhelds.familiar/packages/tslib/tslib/h4000/tslib.sh21
-rw-r--r--org.handhelds.familiar/packages/tslib/tslib_cvs.bb4
2 files changed, 24 insertions, 1 deletions
diff --git a/org.handhelds.familiar/packages/tslib/tslib/h4000/tslib.sh b/org.handhelds.familiar/packages/tslib/tslib/h4000/tslib.sh
new file mode 100644
index 0000000..90d9118
--- /dev/null
+++ b/org.handhelds.familiar/packages/tslib/tslib/h4000/tslib.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+module_id() {
+ awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+}
+
+case `uname -r` in
+2.4*)
+ TSLIB_TSDEVICE=/dev/touchscreen/0raw
+ TSLIB_CONFFILE=/usr/share/tslib/ts.conf-h3600-2.4
+ ;;
+*)
+ TSLIB_TSDEVICE=`detect-tsdevice`
+ TSLIB_CONFFILE=/usr/share/tslib/ts.conf-h3600
+ ;;
+esac
+
+QWS_MOUSE_PROTO=TPanel:${TSLIB_TSDEVICE}
+
+export TSLIB_TSDEVICE TSLIB_CONFFILE QWS_MOUSE_PROTO
+
diff --git a/org.handhelds.familiar/packages/tslib/tslib_cvs.bb b/org.handhelds.familiar/packages/tslib/tslib_cvs.bb
index 72fb979..f6d3264 100644
--- a/org.handhelds.familiar/packages/tslib/tslib_cvs.bb
+++ b/org.handhelds.familiar/packages/tslib/tslib_cvs.bb
@@ -11,6 +11,7 @@ DEPENDS_h1940_append = " detect-tsdevice"
DEPENDS_h2200_append = " detect-tsdevice"
DEPENDS_h3600_append = " detect-tsdevice"
DEPENDS_h3900_append = " detect-tsdevice"
+DEPENDS_h4000_append = " detect-tsdevice"
DEPENDS_h6300_append = " detect-tsdevice"
DEPENDS_ipaq-pxa270_append = " detect-tsdevice"
@@ -18,6 +19,7 @@ RDEPENDS_tslib-conf_h1940_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h2200_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h3600_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h3900_append = " detect-tsdevice"
+RDEPENDS_tslib-conf_h4000_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h6300_append = " detect-tsdevice"
RDEPENDS_tslib-conf_ipaq-pxa270_append = " detect-tsdevice"
@@ -52,7 +54,7 @@ do_install_append() {
install -d ${D}${sysconfdir}/profile.d/
install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
case ${MACHINE} in
- h3600 | h3900 | h1940 | h6300 | h2200 | ipaq-pxa270)
+ h3600 | h3900 | h1940 | h6300 | h2200 | h4000 | ipaq-pxa270)
install -d ${D}${datadir}/tslib
for f in ts.conf-h3600 ts.conf-h3600-2.4 ts.conf-h6300; do
install -m 0644 ${WORKDIR}/$f ${D}${datadir}/tslib/