meta-digi: use udev for all images (minimal and graphical)

https://jira.digi.com/browse/DEL-856
https://jira.digi.com/browse/DEL-898

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-12-27 13:20:26 +01:00
parent 92beaacbda
commit 57ff70da45
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,15 @@
# Copyright (C) 2013 Digi International.
do_install_append () {
# On the fly fix udev init script and config file to avoid udev failing
# on boot a read-only NFSROOT:
# bind failed: No such file or directory
# bind failed: Address already in use
# error binding udev control socket
sed -i -e '/mkdir.*pts/a\ [ -e /dev/run ] || mkdir -m 0755 /dev/run' ${D}${sysconfdir}/init.d/udev
sed -i -e '/^udev_run=/c\udev_run="/dev/run/udev"' ${D}${sysconfdir}/udev/udev.conf
}
# Add 'udev-extraconf' recommendation as most of the imx/mxs settings are in
# that package.
RRECOMMENDS_${PN} += "udev-extraconf"

View File

@ -32,4 +32,7 @@ IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "bluetooth", "dey-blueto
IMAGE_ROOTFS_SIZE = "8192"
# Do not install udev-cache
BAD_RECOMMENDATIONS += "udev-cache"
ROOTFS_POSTPROCESS_COMMAND += "dey_rootfs_tuning;"

View File

@ -18,6 +18,7 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
# Distro can override the following VIRTUAL-RUNTIME providers:
VIRTUAL-RUNTIME_dev_manager ?= "udev"
VIRTUAL-RUNTIME_login_manager ?= ""
VIRTUAL-RUNTIME_passwd_manager ?= "shadow"
VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
@ -25,7 +26,6 @@ VIRTUAL-RUNTIME_initscripts ?= "initscripts"
VIRTUAL-RUNTIME_keymaps ?= "keymaps"
# Set virtual runtimes depending on X11 feature
VIRTUAL-RUNTIME_dev_manager ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'udev', 'busybox-mdev', d)}"
VIRTUAL-RUNTIME_touchscreen ?= "${@base_contains('DISTRO_FEATURES', 'x11', '', 'tslib-calibrate tslib-tests', d)}"
RDEPENDS_${PN} = "\