]> www.pilppa.org Git - familiar-h63xx-build.git/commitdiff
tslib: add h4000 support.
authorPaul Sokolovsky <pmiscml@gmail.com>
Mon, 10 Jul 2006 20:46:23 +0000 (22:46 +0200)
committerRene Wagner <rw@handhelds.org>
Mon, 10 Jul 2006 20:46:23 +0000 (22:46 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/tslib/tslib/h4000/tslib.sh [new file with mode: 0644]
org.handhelds.familiar/packages/tslib/tslib_cvs.bb

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 (file)
index 0000000..90d9118
--- /dev/null
@@ -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
+
index 72fb979e5efa5338a862dacb90ba8d9184e2794e..f6d326402d917d3140b455822ff4ac4521219a64 100644 (file)
@@ -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/