summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-10-07 20:35:29 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-10-07 20:35:29 +0000
commitdc4e37d7a27ac12d391289f7f5b42a5124325750 (patch)
treeb5a8b78bc543fa02c1ac4b654e8d46a599a4d22e /packages
parent17962df01f5e2902b4f6cb9cf3a3de6ef62c6ad8 (diff)
parent465873d1fe1a46ea5d7e93fc907865eb1e62b461 (diff)
merge of 4ba84c5c9cdff518f67f0beabbc85ba4888d789c
and 5e19733decfc6d866375641949b24b63dd5b2a3e
Diffstat (limited to 'packages')
-rw-r--r--packages/tslib/tslib/h2200/.mtn2git_empty0
-rw-r--r--packages/tslib/tslib/h2200/tslib.sh19
-rw-r--r--packages/tslib/tslib_cvs.bb2
3 files changed, 20 insertions, 1 deletions
diff --git a/packages/tslib/tslib/h2200/.mtn2git_empty b/packages/tslib/tslib/h2200/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/tslib/tslib/h2200/.mtn2git_empty
diff --git a/packages/tslib/tslib/h2200/tslib.sh b/packages/tslib/tslib/h2200/tslib.sh
new file mode 100644
index 0000000000..be9448b1dc
--- /dev/null
+++ b/packages/tslib/tslib/h2200/tslib.sh
@@ -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
+
diff --git a/packages/tslib/tslib_cvs.bb b/packages/tslib/tslib_cvs.bb
index f0267a6814..0a79a492a3 100644
--- a/packages/tslib/tslib_cvs.bb
+++ b/packages/tslib/tslib_cvs.bb
@@ -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/