summaryrefslogtreecommitdiff
path: root/recipes/udev/udev_124.bb
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-04-22 16:43:02 +0000
committerDenys Dmytriyenko <denis@denix.org>2009-04-23 22:41:02 -0400
commit5677ff24dfa105e2aaee777c1652fb1a66c1e7a5 (patch)
tree387f916d0b9d795b725a3ca07bbd191fe655be71 /recipes/udev/udev_124.bb
parentf8f96581f7eda437dcc97bd65e5d95e4f73144eb (diff)
udev 124: add cache invalidation logic on kernel change or its bootargs/cmdline/atags
also add /etc/default/udev with the option to disable device caching Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Tom Rini <trini@embeddedalley.com> Acked-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/udev/udev_124.bb')
-rw-r--r--recipes/udev/udev_124.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/udev/udev_124.bb b/recipes/udev/udev_124.bb
index 37dc3a7dbe..e5d9d73f89 100644
--- a/recipes/udev/udev_124.bb
+++ b/recipes/udev/udev_124.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
/dev/, handles hotplug events and loads drivers at boot time. It replaces \
the hotplug package and requires a kernel not older than 2.6.12."
RPROVIDES_${PN} = "hotplug"
-PR = "r15"
+PR = "r16"
SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
file://noasmlinkage.patch;patch=1 \
@@ -12,6 +12,7 @@ SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
file://libvolume-id-soname.patch;patch=1 \
file://mount.blacklist \
file://run.rules \
+ file://default \
"
SRC_URI_append_h2200 = " file://50-hostap_cs.rules "
@@ -33,6 +34,9 @@ do_install () {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
+ install -d ${D}${sysconfdir}/default
+ install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/udev
+
install -d ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/mount.blacklist ${D}${sysconfdir}/udev/
@@ -45,6 +49,10 @@ do_install () {
install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules
fi
+ touch ${D}${sysconfdir}/udev/saved.uname
+ touch ${D}${sysconfdir}/udev/saved.cmdline
+ touch ${D}${sysconfdir}/udev/saved.atags
+
install -d ${D}${sysconfdir}/udev/scripts/
install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh