[oe-commits] Eric Bénard : busybox's mdev: add script to populate / dev/bus/usb

git version control git at git.openembedded.org
Sat Oct 30 00:35:10 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: cd7c9542bad478df9df733a6639ab3b6ef41ef72
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=cd7c9542bad478df9df733a6639ab3b6ef41ef72

Author: Eric Bénard <eric at eukrea.com>
Date:   Fri Oct 29 22:27:35 2010 +0200

busybox's mdev: add script to populate /dev/bus/usb

this patch allows libusb to work on kernel configured without
CONFIG_USB_DEVICEFS

Signed-off-by: Eric Bénard <eric at eukrea.com>

---

 recipes/busybox/busybox_1.1x.inc |    2 ++
 recipes/busybox/files/mdev.conf  |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/recipes/busybox/busybox_1.1x.inc b/recipes/busybox/busybox_1.1x.inc
index df536f6..079c784 100644
--- a/recipes/busybox/busybox_1.1x.inc
+++ b/recipes/busybox/busybox_1.1x.inc
@@ -23,6 +23,7 @@ SRC_URI = "\
   file://defconfig \
   file://mdev \
   file://mdev.conf \
+  file://usb.sh \
 "
 
 EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
@@ -38,6 +39,7 @@ do_install_append() {
     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}/usb.sh ${D}${sysconfdir}/mdev/
     install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
 
     if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then
diff --git a/recipes/busybox/files/mdev.conf b/recipes/busybox/files/mdev.conf
index 8f57b0a..0e1d6bc 100644
--- a/recipes/busybox/files/mdev.conf
+++ b/recipes/busybox/files/mdev.conf
@@ -20,7 +20,7 @@ sda 0:6 0640
 tty 0:5 0666 
 tty.* 0:0 0620 
 urandom 0:0 0666 
-usbdev.* 0:0 0660 
+usbdev.* 0:0 0660 */etc/mdev/usb.sh
 vcs.* 0:5 0660 
 zero 0:0 0666 
  





More information about the Openembedded-commits mailing list