aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/udev/udev_154.bb
diff options
context:
space:
mode:
authorStanislav Brabec <sbrabec@suse.cz>2010-07-24 15:37:21 +0200
committerStanislav Brabec <sbrabec@suse.cz>2010-07-24 15:37:21 +0200
commitbf242510ce91aef3472a1ac4521410a867ea0964 (patch)
treeeee010f06431e2b9567b19d1bfadeb5f034b62cc /recipes/udev/udev_154.bb
parente5dd04945be46561a37f9c4401f4169cb63a7598 (diff)
downloadopenembedded-bf242510ce91aef3472a1ac4521410a867ea0964.tar.gz
openembedded-bf242510ce91aef3472a1ac4521410a867ea0964.tar.bz2
openembedded-bf242510ce91aef3472a1ac4521410a867ea0964.zip
udev: Added support for udev-compat.
* http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-July/021662.html Signed-off-by: Stanislav Brabec <utx@penguin.cz> Acked-by: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'recipes/udev/udev_154.bb')
-rw-r--r--recipes/udev/udev_154.bb17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/udev/udev_154.bb b/recipes/udev/udev_154.bb
index 5e90e88f58..60322151f3 100644
--- a/recipes/udev/udev_154.bb
+++ b/recipes/udev/udev_154.bb
@@ -30,6 +30,7 @@ SRC_URI += " \
file://default \
file://init \
file://cache \
+ file://udev-compat-wrapper-patch \
"
SRC_URI_append_h2200 = " file://50-hostap_cs.rules "
@@ -75,6 +76,22 @@ FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"
FILES_${PN} += "/lib/udev* ${libdir}/ConsoleKit"
FILES_${PN}-dbg += "/lib/udev/.debug"
+RPROVIDES_udev_spitz = "udev-compat-wrapper"
+do_unpack_append_spitz() {
+ bb.build.exec_func('do_apply_compat_wrapper', d)
+}
+RPROVIDES_udev_akita = "udev-compat-wrapper"
+do_unpack_append_akita() {
+ bb.build.exec_func('do_apply_compat_wrapper', d)
+}
+# Modify init script on platforms that need to boot old kernels:
+do_apply_compat_wrapper() {
+ cd ${WORKDIR}
+ sed -i "s:/sbin/udevd:\$UDEVD:g;s:/sbin/udevadm:\$UDEVADM:g" init
+ patch <udev-compat-wrapper-patch
+ cd -
+}
+
do_install () {
install -d ${D}${usrsbindir} \
${D}${sbindir}