DESCRIPTION ?= "udev is a program which dynamically creates and removes device nodes from \ /dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel." LICENSE = "GPLv2+" SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ file://udev.rules \ file://devfs-udev.rules \ file://links.conf \ file://permissions.rules \ file://mount.sh \ file://network.sh \ file://local.rules \ file://init \ file://udev-compat-wrapper-patch" INC_PR = "r28" inherit update-rc.d autotools pkgconfig PARALLEL_MAKE = "" UDEV_DEVFS_RULES ?= "0" PKG_libvolume-id-dev = "libvolume-id-dev" RDEPENDS_${PN} += "module-init-tools-depmod udev-utils" INITSCRIPT_NAME = "udev" INITSCRIPT_PARAMS = "start 03 S ." export CROSS = "${TARGET_PREFIX}" export HOSTCC = "${BUILD_CC}" export udevdir ?= "/dev" # Put stuff in /lib and /sbin export bindir := "${base_bindir}" export sbindir := "${base_sbindir}" export usrbindir := "${bindir}" export usrsbindir := "${sbindir}" export etcdir := "${sysconfdir}" TARGET_CC_ARCH += "${LDFLAGS}" UDEV_EXTRAS = "" EXTRA_OEMAKE = "-e \ 'EXTRAS=${UDEV_EXTRAS}' \ 'STRIP=echo'" RPROVIDES_udev_spitz += "udev-compat-wrapper" RDEPENDS_udev_spitz += "udev-compat" do_unpack_append_spitz() { bb.build.exec_func('do_apply_compat_wrapper', d) } RPROVIDES_udev_akita += "udev-compat-wrapper" RDEPENDS_udev_akita += "udev-compat" do_unpack_append_akita() { bb.build.exec_func('do_apply_compat_wrapper', d) } RPROVIDES_udev_c7x0 += "udev-compat-wrapper" RDEPENDS_udev_c7x0 += "udev-compat" do_unpack_append_c7x0() { bb.build.exec_func('do_apply_compat_wrapper', d) } RPROVIDES_udev_poodle += "udev-compat-wrapper" RDEPENDS_udev_poodle += "udev-compat" do_unpack_append_poodle() { 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