summaryrefslogtreecommitdiff
path: root/udev/udev_032.oe
blob: edc3a881cfc9915478b58a29079aded60f1fd426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PR = "r1"
SECTION = "base"
DESCRIPTION = " udev is a program which dynamically creates and removes device nodes from \
/dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel."

SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
	   file://flags.patch;patch=1 \
	   file://tmpfs.patch;patch=1 \
	   file://noasmlinkage.patch;patch=1"

usrbindir := "${bindir}"
bindir = "/bin"
sbindir = "/sbin"
libdir = "/lib"
udevdir ?= "/udev"

FILES_${PN} += "${usrbindir}"

EXTRA_OEMAKE_append = " 'prefix=${prefix}' \
		'udevdir=${udevdir}' \
		'exec_prefix=${prefix}' \
		'etcdir=${sysconfdir}' \
		'sbindir=${sbindir}' \
		'usrbindir=${usrbindir}' \
		'mandir=${mandir}' \
		'hotplugdir=${sysconfdir}/hotplug.d/default' \
		'configdir=${sysconfdir}/udev/'"
export LD = "${CC}"

do_install () {
	oe_runmake 'DESTDIR=${D}' install
	if [ "${udevdir}" == "/dev" ]; then
		install -m 0755 ${S}/extras/start_udev ${D}/etc/init.d/start_udev
		install -d ${D}/etc/rcS.d
		ln -s /etc/init.d/start_udev ${D}/etc/rcS.d/S03start_udev
	else
		chmod 0755 ${D}/etc/init.d/udev
	fi
}