summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/udev/udev.inc
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2016-03-01 02:52:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-02 22:39:43 +0000
commit3e5e540513665105b963262c2eaf33f197a0a36c (patch)
tree3ce445ae80c50cd303040a810ae478e0fdf1080d /meta/recipes-core/udev/udev.inc
parent674e55f4169de8080b8453f951a4f68fc4b3fcd8 (diff)
downloadpoky-3e5e540513665105b963262c2eaf33f197a0a36c.tar.gz
eudev: Replaces udev with eudev for compatibility when using sysvinit on newer kernels
udev has started to fail on new kernels (4.4), due to being deprecated in favor of systemd's udev implementation. To maintain a sysvinit alternative we also need to provide an alternative to udev. Eudev is a fork of systemds udev, this new eudev recipe provides upstream udev 220 funcitonality. - Removes patches that dont apply anymore - ToDo: eudev-ptest? [YOCTO #8998] (From OE-Core rev: a22797f7c37a865420837b5c29b270f73ee4c6ce) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev/udev.inc')
-rw-r--r--meta/recipes-core/udev/udev.inc112
1 files changed, 0 insertions, 112 deletions
diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
deleted file mode 100644
index 93d736941d..0000000000
--- a/meta/recipes-core/udev/udev.inc
+++ /dev/null
@@ -1,112 +0,0 @@
1SUMMARY = "/dev/ and hotplug management daemon"
2DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \
3/dev/, handles hotplug events and loads drivers at boot time."
4HOMEPAGE = "http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html"
5LICENSE = "GPLv2.0+ & LGPLv2.1+"
6LICENSE_${PN} = "GPLv2.0+"
7LICENSE_libudev = "LGPLv2.1+"
8LICENSE_libgudev = "LGPLv2.1+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10 file://src/COPYING;md5=17c4e5fb495e6707ac92a3864926f979 \
11 file://src/gudev/COPYING;md5=fb494485a7d0505308cb68e4997cc266"
12
13LDFLAGS += "-lrt"
14
15DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux"
16RPROVIDES_${PN} = "hotplug"
17
18PROVIDES = "libgudev"
19
20SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
21 file://0001-Fixing-keyboard_force_release.sh-shell-script-path.patch \
22 file://avoid-mouse-autosuspend.patch \
23 file://run.rules \
24 file://udev.rules \
25 file://devfs-udev.rules \
26 file://links.conf \
27 file://permissions.rules \
28 file://local.rules \
29 file://udev-cache \
30 file://udev-cache.default \
31 file://add-install-ptest.patch \
32 file://fix_rule-syntax-regex-ptest.patch \
33 file://run-ptest \
34 file://init \
35 file://0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch \
36 file://0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch \
37 "
38
39inherit autotools pkgconfig update-rc.d ptest
40RDEPENDS_${PN}-ptest += "make perl python"
41
42libexecdir = "${base_libdir}"
43EXTRA_OECONF = "--disable-introspection \
44 --with-rootlibdir=${base_libdir} \
45 --with-pci-ids-path=${datadir}/pci.ids \
46 ac_cv_file__usr_share_pci_ids=no \
47 ac_cv_file__usr_share_hwdata_pci_ids=no \
48 ac_cv_file__usr_share_misc_pci_ids=yes \
49 --sbindir=${base_sbindir} \
50 --libexecdir=${nonarch_base_libdir} \
51 --with-rootlibdir=${base_libdir} \
52 --with-rootprefix= \
53 --without-systemdsystemunitdir \
54 "
55
56PACKAGES =+ "udev-cache"
57PACKAGES =+ "libudev"
58PACKAGES =+ "libgudev"
59
60INITSCRIPT_PACKAGES = "udev udev-cache"
61INITSCRIPT_NAME_udev = "udev"
62INITSCRIPT_PARAMS_udev = "start 04 S ."
63INITSCRIPT_NAME_udev-cache = "udev-cache"
64INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
65
66FILES_${PN} += "${libexecdir} ${libdir}/ConsoleKit ${nonarch_base_libdir}/udev ${bindir}/udevadm"
67RRECOMMENDS_${PN} += "udev-cache"
68
69# udev-utils has been removed as a package. Note that udev conflicts with udev-utils so that
70# udev-utils is removed from systems on upgrade.
71RCONFLICTS_${PN} += "udev-utils"
72RREPLACES_${PN} += "udev-utils"
73
74FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
75 ${includedir}/libudev.h ${libdir}/libudev.so ${libdir}/libudev.la \
76 ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc \
77 ${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libgudev*.la \
78 ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc"
79FILES_libudev = "${base_libdir}/libudev.so.*"
80FILES_libgudev = "${base_libdir}/libgudev*.so.* ${libdir}/libgudev*.so.*"
81FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
82
83do_install_append () {
84 install -d ${D}${sysconfdir}/init.d
85 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
86 install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
87 sed -i s%@UDEVD@%${nonarch_base_libdir}/udev/udevd% ${D}${sysconfdir}/init.d/udev
88 sed -i s%@UDEVD@%${nonarch_base_libdir}/udev/udevd% ${D}${sysconfdir}/init.d/udev-cache
89
90 install -d ${D}${sysconfdir}/default
91 install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache
92
93 touch ${D}${sysconfdir}/udev/cache.data
94
95 install -d ${D}${sysconfdir}/udev/rules.d/
96
97 install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
98
99 # hid2hci has moved to bluez4. removed in udev as of version 169
100 rm -f ${D}${base_libdir}/udev/hid2hci
101
102 echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
103}
104
105# As systemd also builds udev, skip this package if we're doing a systemd build.
106python () {
107 if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
108 raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
109}
110do_compile_ptest() {
111 oe_runmake test-udev
112}