[oe-commits] Marcin Juszkiewicz : busybox: create /dev/input/touchscreen0 with mdev
GIT User account
git at amethyst.openembedded.net
Fri Jan 16 14:54:46 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5e4817d253b47a758a4b8fba1fcf46a88e390b60
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5e4817d253b47a758a4b8fba1fcf46a88e390b60
Author: Marcin Juszkiewicz <hrw at koansoftware.com>
Date: Fri Jan 9 17:39:34 2009 +0100
busybox: create /dev/input/touchscreen0 with mdev
---
packages/busybox/busybox_1.13.2.bb | 5 ++
packages/busybox/files/find-touchscreen.sh | 7 +++
packages/busybox/files/mdev.conf | 60 ++++++++++++++--------------
3 files changed, 42 insertions(+), 30 deletions(-)
diff --git a/packages/busybox/busybox_1.13.2.bb b/packages/busybox/busybox_1.13.2.bb
index 740eee2..2172967 100644
--- a/packages/busybox/busybox_1.13.2.bb
+++ b/packages/busybox/busybox_1.13.2.bb
@@ -1,11 +1,14 @@
require busybox.inc
+PR = "r1"
+
SRC_URI = "\
http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
\
file://udhcpscript.patch;patch=1 \
file://B921600.patch;patch=1 \
file://mdev-fix.patch;patch=1 \
+ file://find-touchscreen.sh \
file://busybox-cron \
file://busybox-httpd \
file://busybox-udhcpd \
@@ -30,6 +33,8 @@ do_configure () {
do_install_append() {
install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
install -d ${D}${sysconfdir}/init.d/
+ install -d ${D}${sysconfdir}/mdev
+ install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
}
diff --git a/packages/busybox/files/find-touchscreen.sh b/packages/busybox/files/find-touchscreen.sh
new file mode 100644
index 0000000..34835e7
--- /dev/null
+++ b/packages/busybox/files/find-touchscreen.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+
+
+if [ `egrep "input:.*-e0.*,3,.*a0,1,.*18,.*" /sys/class/input/$MDEV/device/modalias|wc -l` -gt 0 ]; then
+ ln -sf /dev/input/$MDEV /dev/input/touchscreen0
+fi
diff --git a/packages/busybox/files/mdev.conf b/packages/busybox/files/mdev.conf
index 1961949..c66e7bd 100644
--- a/packages/busybox/files/mdev.conf
+++ b/packages/busybox/files/mdev.conf
@@ -1,32 +1,32 @@
-console 0:0 0600
-cpu_dma_latency 0:0 0660
-fb0:0 44 0660
-full 0:0 0666
-initctl 0:0 0600
-ircomm[0-9].* 0:20 0660
-kmem 0:15 0640
-kmsg 0:0 0660
-log 0:0 0666
-loop[0-9].* 0:6 0640
-mem 0:15 0640
-network_latency 0:0 0660
-network_throughput 0:0 0660
-null 0:0 0666
-port 0:15 0640
-ptmx 0:5 0666
-ram[0-9].* 0:6 0640
-random 0:0 0666
-sda 0:6 0640
-tty 0:5 0666
-tty.* 0:0 0620
-urandom 0:0 0666
-usbdev.* 0:0 0660
-vcs.* 0:5 0660
-zero 0:0 0666
+console 0:0 0600
+cpu_dma_latency 0:0 0660
+fb0:0 44 0660
+full 0:0 0666
+initctl 0:0 0600
+ircomm[0-9].* 0:20 0660
+kmem 0:15 0640
+kmsg 0:0 0660
+log 0:0 0666
+loop[0-9].* 0:6 0640
+mem 0:15 0640
+network_latency 0:0 0660
+network_throughput 0:0 0660
+null 0:0 0666
+port 0:15 0640
+ptmx 0:5 0666
+ram[0-9].* 0:6 0640
+random 0:0 0666
+sda 0:6 0640
+tty 0:5 0666
+tty.* 0:0 0620
+urandom 0:0 0666
+usbdev.* 0:0 0660
+vcs.* 0:5 0660
+zero 0:0 0666
+
+pcm.* 0:0 0660 =snd/
+control.* 0:0 0660 =snd/
-pcm.* 0:0 0660 =snd/
-control.* 0:0 0660 =snd/
-
-event.* 0:0 0660 =input/
-mice 0:0 0660 =input/
+event.* 0:0 0660 =input/ @/etc/mdev/find-touchscreen.sh
+mice 0:0 0660 =input/
mouse.* 0:0 0660 =input/
More information about the Openembedded-commits
mailing list