summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-05-23 13:13:02 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-05-23 16:13:18 +0200
commit896ba39f88c36b6f335066d06393dd86c15d3d03 (patch)
tree58cb4498b3964d62b7ed8666bf72767501784ed7 /meta-oe
parentc1da9cf13b2e25ba6640e76c3a8a3556696c9652 (diff)
downloadmeta-openembedded-896ba39f88c36b6f335066d06393dd86c15d3d03.tar.gz
udev: remove udev.inc since it was not being in use
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-core/udev/udev.inc101
1 files changed, 0 insertions, 101 deletions
diff --git a/meta-oe/recipes-core/udev/udev.inc b/meta-oe/recipes-core/udev/udev.inc
deleted file mode 100644
index 0c8a66229..000000000
--- a/meta-oe/recipes-core/udev/udev.inc
+++ /dev/null
@@ -1,101 +0,0 @@
1DESCRIPTION ?= "udev is a program which dynamically creates and removes device nodes from \
2/dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel."
3
4LICENSE = "GPLv2+"
5
6SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
7 file://udev.rules \
8 file://devfs-udev.rules \
9 file://links.conf \
10 file://permissions.rules \
11 file://mount.sh \
12 file://network.sh \
13 file://local.rules \
14 file://init \
15 file://udev-compat-wrapper-patch"
16
17INC_PR = "r30"
18
19inherit update-rc.d autotools pkgconfig
20
21PARALLEL_MAKE = ""
22UDEV_DEVFS_RULES ?= "0"
23PKG_libvolume-id-dev = "libvolume-id-dev"
24
25RDEPENDS_${PN} += "module-init-tools-depmod udev-utils"
26
27INITSCRIPT_NAME = "udev"
28INITSCRIPT_PARAMS = "start 03 S ."
29
30export CROSS = "${TARGET_PREFIX}"
31export HOSTCC = "${BUILD_CC}"
32export udevdir ?= "/dev"
33# Put stuff in /lib and /sbin
34export bindir := "${base_bindir}"
35export sbindir := "${base_sbindir}"
36export usrbindir := "${bindir}"
37export usrsbindir := "${sbindir}"
38export etcdir := "${sysconfdir}"
39
40TARGET_CC_ARCH += "${LDFLAGS}"
41UDEV_EXTRAS = "<override me>"
42EXTRA_OEMAKE = "-e \
43 'EXTRAS=${UDEV_EXTRAS}' \
44 'STRIP=echo'"
45
46RPROVIDES_udev_append = " udev-compat-wrapper"
47RDEPENDS_udev_spitz += "udev-compat"
48do_unpack_append_spitz() {
49 bb.build.exec_func('do_apply_compat_wrapper', d)
50}
51RDEPENDS_udev_akita += "udev-compat"
52do_unpack_append_akita() {
53 bb.build.exec_func('do_apply_compat_wrapper', d)
54}
55RDEPENDS_udev_c7x0 += "udev-compat"
56do_unpack_append_c7x0() {
57 bb.build.exec_func('do_apply_compat_wrapper', d)
58}
59RDEPENDS_udev_poodle += "udev-compat"
60do_unpack_append_poodle() {
61 bb.build.exec_func('do_apply_compat_wrapper', d)
62}
63
64# Modify init script on platforms that need to boot old kernels:
65do_apply_compat_wrapper() {
66 cd ${WORKDIR}
67 sed -i "s:/sbin/udevd:\$UDEVD:g;s:/sbin/udevadm:\$UDEVADM:g" init
68 patch <udev-compat-wrapper-patch
69 cd -
70}
71
72do_install () {
73 install -d ${D}${usrsbindir} \
74 ${D}${sbindir}
75 oe_runmake 'DESTDIR=${D}' INSTALL=install install
76 install -d ${D}${sysconfdir}/init.d
77 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
78
79 install -d ${D}${sysconfdir}/udev/rules.d/
80
81 install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
82 install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules
83 install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules
84 if [ "${UDEV_DEVFS_RULES}" = "1" ]; then
85 install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules
86 fi
87
88 install -d ${D}${sysconfdir}/udev/scripts/
89
90 install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh
91 install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts
92 install -m 0644 ${S}/extras/volume_id/lib/libvolume_id.h ${D}${includedir}
93 oe_libinstall -C extras/volume_id/lib libvolume_id ${D}${libdir}
94}
95
96PACKAGES =+ "udev-utils libvolume-id libvolume-id-dev"
97FILES_libvolume-id-dev = "${includedir}/libvolume_id.h ${libdir}/libvolume_id.a ${libdir}/libvolume_id.so ${libdir}/pkgconfig/libvolume_id.pc"
98FILES_udev-utils = "${usrbindir}/udevinfo ${usrbindir}/udevtest ${sbindir}/udevadm"
99FILES_libvolume-id = "${base_libdir}/libvolume_id.so.*"
100FILES_${PN} += "${usrbindir}/* ${usrsbindir}/udevd"
101FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"