summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-static_124.bb
blob: 7348a6ca6399ced178c2fb81bf32d847747835d5 (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
40
41
42
DESCRIPTION = "Static version of udev for devices with an old (e.g. <2.6.27) kernel"

require udev.inc

SRC_URI += "file://noasmlinkage.patch \
	    file://flags.patch \
	    file://vol_id_ld.patch \
	    file://udevtrigger_add_devname_filtering.patch \
	    file://libvolume-id-soname.patch \
	    file://mtd-exclude-persistent.patch \
	   "

PR = "${INC_PR}.0"

LD = "${CC}"

S = "${WORKDIR}/udev-${PV}"

export USE_STATIC = "true"

CFLAGS += "-DUSE_STATIC"
LDFLAGS += "-static"

# Overriding PACKAGES is bad, but we only want ${PN}
PACKAGES = "${PN}"
FILES_${PN} = "${base_sbindir}/*-${PV}-static"


UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/"
EXTRA_OEMAKE += "libudevdir=/lib/udev libdir=${base_libdir} prefix="

do_install () {
	install -d ${D}${usrsbindir} \
		   ${D}${sbindir}
	oe_runmake 'DESTDIR=${D}' INSTALL=install install

	mv ${D}${base_sbindir}/udevd ${D}${base_sbindir}/udevd-${PV}-static
	mv ${D}${base_sbindir}/udevadm ${D}${base_sbindir}/udevadm-${PV}-static
}

SRC_URI[md5sum] = "2ea9229208154229c5d6df6222f74ad7"
SRC_URI[sha256sum] = "cc9f58ff58fbd3f5868e1f1e368e3c93e1f441afd0ac1dcbd5d01a9ce5b5b0d7"