diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-19 17:47:28 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-19 17:47:28 +0100 |
commit | 14cba802f2ddd4af9ba9423a6a149ec0deee4769 (patch) | |
tree | 4d16740788ba85bb8a188636c2a3a21c74a28df2 /meta/packages/udev/udev_141.bb | |
parent | d6cfaee4556c505de512867ba7acc0d5df94f15f (diff) | |
download | poky-14cba802f2ddd4af9ba9423a6a149ec0deee4769.tar.gz |
udev: Add 141
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/udev/udev_141.bb')
-rw-r--r-- | meta/packages/udev/udev_141.bb | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta/packages/udev/udev_141.bb b/meta/packages/udev/udev_141.bb new file mode 100644 index 0000000000..a25ed7e868 --- /dev/null +++ b/meta/packages/udev/udev_141.bb | |||
@@ -0,0 +1,72 @@ | |||
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. It replaces \ | ||
3 | the hotplug package and requires a kernel not older than 2.6.12." | ||
4 | RPROVIDES_${PN} = "hotplug" | ||
5 | |||
6 | PR = "r2" | ||
7 | |||
8 | #DEFAULT_PREFERENCE = "-1" | ||
9 | |||
10 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ | ||
11 | file://noasmlinkage.patch;patch=1 \ | ||
12 | file://unbreak.patch;patch=1 \ | ||
13 | file://run.rules \ | ||
14 | " | ||
15 | |||
16 | SRC_URI_append_h2200 = " file://50-hostap_cs.rules " | ||
17 | PACKAGE_ARCH_h2200 = "h2200" | ||
18 | |||
19 | require udev.inc | ||
20 | |||
21 | #DEFAULT_PREFERENCE = "-1" | ||
22 | |||
23 | INITSCRIPT_PARAMS = "start 03 S ." | ||
24 | |||
25 | FILES_${PN} += "${base_libdir}/udev/*" | ||
26 | FILES_${PN}-dbg += "${base_libdir}/udev/.debug" | ||
27 | UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/" | ||
28 | #EXTRA_OEMAKE += "libudevdir=/lib/udev libdir=${base_libdir} prefix=" | ||
29 | |||
30 | exec_prefix = "" | ||
31 | |||
32 | EXTRA_OECONF = "--with-udev-prefix=" | ||
33 | |||
34 | do_install () { | ||
35 | install -d ${D}${usrsbindir} \ | ||
36 | ${D}${sbindir} | ||
37 | oe_runmake 'DESTDIR=${D}' INSTALL=install install | ||
38 | install -d ${D}${sysconfdir}/init.d | ||
39 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | ||
40 | |||
41 | install -d ${D}${sysconfdir}/udev/rules.d/ | ||
42 | |||
43 | cp ${S}/rules/rules.d/* ${D}${sysconfdir}/udev/rules.d/ | ||
44 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules | ||
45 | #install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules | ||
46 | #install -m 0644 ${WORKDIR}/run.rules ${D}${sysconfdir}/udev/rules.d/run.rules | ||
47 | #install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules | ||
48 | install -m 0644 ${WORKDIR}/links.conf ${D}${sysconfdir}/udev/links.conf | ||
49 | #if [ "${UDEV_DEVFS_RULES}" = "1" ]; then | ||
50 | # install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules | ||
51 | #fi | ||
52 | |||
53 | # Remove some default rules that don't work well on embedded devices | ||
54 | #rm ${D}${sysconfdir}/udev/rules.d/60-persistent-input.rules | ||
55 | #rm ${D}${sysconfdir}/udev/rules.d/60-persistent-storage.rules | ||
56 | #rm ${D}${sysconfdir}/udev/rules.d/60-persistent-storage-tape.rules | ||
57 | |||
58 | install -d ${D}${sysconfdir}/udev/scripts/ | ||
59 | |||
60 | install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh | ||
61 | install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts | ||
62 | |||
63 | install -d ${D}${base_libdir}/udev/ | ||
64 | } | ||
65 | |||
66 | do_install_append_h2200() { | ||
67 | install -m 0644 ${WORKDIR}/50-hostap_cs.rules ${D}${sysconfdir}/udev/rules.d/50-hostap_cs.rules | ||
68 | } | ||
69 | |||
70 | do_stage () { | ||
71 | autotools_stage_all | ||
72 | } \ No newline at end of file | ||