summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-01-19 12:31:12 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2012-01-30 15:15:06 +0100
commit4eb9cc06d888cefa1fd75be14b53b8c8401382f9 (patch)
treeacc1ffce05bb46522f702eb0b75f801ecdac63e4 /meta-oe
parenta76fff17ea8420686ef81b35f80efac1bef21649 (diff)
downloadmeta-openembedded-4eb9cc06d888cefa1fd75be14b53b8c8401382f9.tar.gz
udev: add 180
* 'blkid' isn't needed anymore, since 176 udev links against libblkid * 'modprobe' and 'depmod' aren't needed anymore, udev now links against libkmod * The entire source including the license files were re-indented hence the LIC_FILES_CHKSUM changes Runtime tested on beagleboard/angstrom Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-core/udev/udev_180.bb89
1 files changed, 89 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/udev/udev_180.bb b/meta-oe/recipes-core/udev/udev_180.bb
new file mode 100644
index 000000000..4d3b0ed24
--- /dev/null
+++ b/meta-oe/recipes-core/udev/udev_180.bb
@@ -0,0 +1,89 @@
1DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \
2/dev/, handles hotplug events and loads drivers at boot time."
3
4DEFAULT_PREFERENCE = "-1"
5
6# udev 169 and up require kernel 2.6.36 for ARM:
7# http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=67a77c8bf299f6264f001677becd056316ebce2f
8
9LICENSE = "GPLv2+ & LGPLv2.1+"
10LICENSE_${PN} = "GPLv2+"
11LICENSE_libudev = "LGPLv2.1+"
12LICENSE_libgudev = "LGPLv2.1+"
13LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
14 file://src/COPYING;md5=17c4e5fb495e6707ac92a3864926f979 \
15 file://src/extras/gudev/COPYING;md5=fb494485a7d0505308cb68e4997cc266"
16
17# glib-2.0: Needed for udev-extras
18# util-linux: Needed for libblkid
19# kmod: needed for libkmod
20DEPENDS = "gperf-native usbutils acl glib-2.0 util-linux kmod"
21
22# f13289ffdf077f75c8710e977ffe538b66885762 -> 180 tag
23SRCREV = "f13289ffdf077f75c8710e977ffe538b66885762"
24
25# version specific SRC_URI
26SRC_URI = "git://git.kernel.org/pub/scm/linux/hotplug/udev.git;protocol=git \
27 file://gtk-doc.make"
28
29# generic SRC_URI
30SRC_URI += " \
31 file://touchscreen.rules \
32 file://modprobe.rules \
33"
34
35S = "${WORKDIR}/git"
36
37# Machine specific udev rules should be in their own recipe that ${PN} can add to RRECOMMENDS
38
39inherit autotools
40
41EXTRA_OECONF += " \
42 --disable-introspection \
43 --with-pci-ids-path=/usr/share/misc \
44 ac_cv_file__usr_share_pci_ids=no \
45 ac_cv_file__usr_share_hwdata_pci_ids=no \
46 ac_cv_file__usr_share_misc_pci_ids=yes \
47 --sbindir=${base_sbindir} \
48 --libexecdir=${base_libdir} \
49 --with-rootlibdir=${base_libdir} \
50 --with-rootprefix= \
51 --disable-gtk-doc-html \
52 --with-systemdsystemunitdir=${base_libdir}/systemd/system/ \
53"
54
55do_configure_prepend() {
56 cp ${WORKDIR}/gtk-doc.make ${S}
57}
58
59PACKAGES =+ "${PN}-systemd libudev libgudev udev-consolekit udev-utils"
60
61FILES_${PN}-systemd = "${base_libdir}/systemd"
62RDEPENDS_${PN}-systemd += "udev"
63
64FILES_libudev = "${base_libdir}/libudev.so.*"
65FILES_libgudev = "${base_libdir}/libgudev*.so.*"
66
67RDEPENDS_${PN} += "udev-utils"
68RPROVIDES_${PN} = "hotplug"
69FILES_${PN} += "${usrbindir}/* ${usrsbindir}/udevd"
70FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"
71
72# udev installs binaries under $(udev_prefix)/lib/udev, even if ${libdir}
73# is ${prefix}/lib64
74FILES_${PN} += "/lib/udev*"
75FILES_${PN}-dbg += "/lib/udev/.debug"
76
77FILES_${PN}-consolekit += "${libdir}/ConsoleKit"
78RDEPENDS_${PN}-consolekit += "consolekit"
79
80FILES_udev-utils = "${bindir}/udevadm"
81
82do_install () {
83 install -d ${D}${usrsbindir} \
84 ${D}${sbindir}
85 oe_runmake 'DESTDIR=${D}' INSTALL=install install
86
87 install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/
88}
89