diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-01-19 12:31:12 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-01-30 15:15:06 +0100 |
commit | 4eb9cc06d888cefa1fd75be14b53b8c8401382f9 (patch) | |
tree | acc1ffce05bb46522f702eb0b75f801ecdac63e4 /meta-oe | |
parent | a76fff17ea8420686ef81b35f80efac1bef21649 (diff) | |
download | meta-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.bb | 89 |
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 @@ | |||
1 | DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \ | ||
2 | /dev/, handles hotplug events and loads drivers at boot time." | ||
3 | |||
4 | DEFAULT_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 | |||
9 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
10 | LICENSE_${PN} = "GPLv2+" | ||
11 | LICENSE_libudev = "LGPLv2.1+" | ||
12 | LICENSE_libgudev = "LGPLv2.1+" | ||
13 | LIC_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 | ||
20 | DEPENDS = "gperf-native usbutils acl glib-2.0 util-linux kmod" | ||
21 | |||
22 | # f13289ffdf077f75c8710e977ffe538b66885762 -> 180 tag | ||
23 | SRCREV = "f13289ffdf077f75c8710e977ffe538b66885762" | ||
24 | |||
25 | # version specific SRC_URI | ||
26 | SRC_URI = "git://git.kernel.org/pub/scm/linux/hotplug/udev.git;protocol=git \ | ||
27 | file://gtk-doc.make" | ||
28 | |||
29 | # generic SRC_URI | ||
30 | SRC_URI += " \ | ||
31 | file://touchscreen.rules \ | ||
32 | file://modprobe.rules \ | ||
33 | " | ||
34 | |||
35 | S = "${WORKDIR}/git" | ||
36 | |||
37 | # Machine specific udev rules should be in their own recipe that ${PN} can add to RRECOMMENDS | ||
38 | |||
39 | inherit autotools | ||
40 | |||
41 | EXTRA_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 | |||
55 | do_configure_prepend() { | ||
56 | cp ${WORKDIR}/gtk-doc.make ${S} | ||
57 | } | ||
58 | |||
59 | PACKAGES =+ "${PN}-systemd libudev libgudev udev-consolekit udev-utils" | ||
60 | |||
61 | FILES_${PN}-systemd = "${base_libdir}/systemd" | ||
62 | RDEPENDS_${PN}-systemd += "udev" | ||
63 | |||
64 | FILES_libudev = "${base_libdir}/libudev.so.*" | ||
65 | FILES_libgudev = "${base_libdir}/libgudev*.so.*" | ||
66 | |||
67 | RDEPENDS_${PN} += "udev-utils" | ||
68 | RPROVIDES_${PN} = "hotplug" | ||
69 | FILES_${PN} += "${usrbindir}/* ${usrsbindir}/udevd" | ||
70 | FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug" | ||
71 | |||
72 | # udev installs binaries under $(udev_prefix)/lib/udev, even if ${libdir} | ||
73 | # is ${prefix}/lib64 | ||
74 | FILES_${PN} += "/lib/udev*" | ||
75 | FILES_${PN}-dbg += "/lib/udev/.debug" | ||
76 | |||
77 | FILES_${PN}-consolekit += "${libdir}/ConsoleKit" | ||
78 | RDEPENDS_${PN}-consolekit += "consolekit" | ||
79 | |||
80 | FILES_udev-utils = "${bindir}/udevadm" | ||
81 | |||
82 | do_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 | |||