blob: 9c32595a878469ad69391a7597f46529d6064809 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
PR = "r1"
DESCRIPTION = "These utilities are intended to make a Linux modular kernel \
manageable for all users, administrators and distribution \
maintainers."
FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/files"
SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.4/modutils-${PV}.tar.bz2 \
file://modutils-notest.patch;patch=1 \
file://configure.patch;patch=1 \
file://program_prefix.patch;patch=1 \
file://collie/modules \
file://collie/modules.conf \
file://corgi/modules \
file://corgi/modules.conf \
file://h3600/modules \
file://h3600/modules.conf \
file://husky/modules \
file://husky/modules.conf \
file://poodle/modules \
file://poodle/modules.conf \
file://ramses/modules \
file://ramses/modules.conf \
file://shepherd/modules \
file://shepherd/modules.conf \
file://simpad/modules \
file://simpad/modules.conf \
file://modutils"
inherit autotools
# modutils go in /sbin
sbindir = "/sbin"
EXTRA_OECONF = "--disable-strip"
export BUILDCC = "${BUILD_CC}"
do_install () {
oe_runmake 'DESTDIR=${D}' install
install -d ${D}/${sysconfdir}
oe_machinstall -m 0644 ${WORKDIR}/modules ${D}/${sysconfdir}/modules
oe_machinstall -m 0644 ${WORKDIR}/modules.conf ${D}/${sysconfdir}/modules.conf
}
pkg_postinst_modutils () {
if test -n "$D"; then
D="-r $D"
if test -n "`which ${TARGET_PREFIX}depmod`"; then
for kerneldir in `ls -p ${IMAGE_ROOTFS}/lib/modules|grep /`; do
kernelver=`basename $kerneldir`
${TARGET_PREFIX}depmod -a -b ${IMAGE_ROOTFS} -C ${IMAGE_ROOTFS}/${sysconfdir}/modules.conf -r $kernelver
done
fi
fi
update-rc.d $D modutils start 20 S .
}
pkg_prerm_modutils () {
if test -n "$D"; then
D="-r $D"
fi
update-rc.d $D modutils remove
}
PACKAGES = "modutils-depmod modutils"
FILES_modutils-depmod = "sbin/depmod"
RDEPENDS_modutils = "modutils-depmod"
|