Add h2200 support
authorMatt Reimer <mattjreimer@gmail.com>
Fri, 7 Oct 2005 20:20:20 +0000 (20:20 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 7 Oct 2005 20:20:20 +0000 (20:20 +0000)
packages/tslib/tslib/h2200/.mtn2git_empty [new file with mode: 0644]
packages/tslib/tslib/h2200/tslib.sh [new file with mode: 0644]
packages/tslib/tslib_cvs.bb

diff --git a/packages/tslib/tslib/h2200/.mtn2git_empty b/packages/tslib/tslib/h2200/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/tslib/tslib/h2200/tslib.sh b/packages/tslib/tslib/h2200/tslib.sh
new file mode 100644 (file)
index 0000000..be9448b
--- /dev/null
@@ -0,0 +1,19 @@
+#!/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-stylus --device`
+       TSLIB_CONFFILE=/usr/share/tslib/ts.conf-h3600
+       ;;
+esac
+
+export TSLIB_TSDEVICE TSLIB_CONFFILE
+
index f0267a6..0a79a49 100644 (file)
@@ -41,7 +41,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 | ipaq-pxa270)
+       h3600 | h3900 | h1940 | h6300 | h2200 | 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/