summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/modutils/modutils_2.4.27.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/modutils/modutils_2.4.27.bb')
-rw-r--r--meta/recipes-kernel/modutils/modutils_2.4.27.bb93
1 files changed, 0 insertions, 93 deletions
diff --git a/meta/recipes-kernel/modutils/modutils_2.4.27.bb b/meta/recipes-kernel/modutils/modutils_2.4.27.bb
deleted file mode 100644
index 9f2add30b1..0000000000
--- a/meta/recipes-kernel/modutils/modutils_2.4.27.bb
+++ /dev/null
@@ -1,93 +0,0 @@
1SECTION = "base"
2SUMMARY = "Kernel module utilities"
3DESCRIPTION = "These utilities are intended to make a Linux modular kernel \
4manageable for all users, administrators and distribution maintainers."
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
7DEPENDS = "bison-native"
8PR = "r10"
9
10SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/modutils/v2.4/modutils-${PV}.tar.bz2 \
11 file://lex.l.diff;patch=1 \
12 file://modutils-notest.patch;patch=1 \
13 file://configure.patch;patch=1 \
14 file://program_prefix.patch;patch=1 \
15 file://armeb.patch;patch=1 \
16 file://gcc4.patch;patch=1"
17
18SRC_URI[md5sum] = "bac989c74ed10f3bf86177fc5b4b89b6"
19SRC_URI[sha256sum] = "ab4c9191645f9ffb455ae7c014d8c45339c13a1d0f6914817cfbf30a0bc56bf0"
20
21inherit autotools
22
23# modutils go in /sbin
24sbindir = "/sbin"
25EXTRA_OECONF = "--disable-strip"
26export BUILDCC = "${BUILD_CC}"
27export BUILDCFLAGS = "${BUILD_CFLAGS}"
28
29do_install () {
30 oe_runmake 'DESTDIR=${D}' install
31 install -d ${D}${sysconfdir}
32 rm ${D}${base_sbindir}/lsmod
33 install -d ${D}${base_bindir}/
34 ln -s ../sbin/insmod ${D}${base_bindir}/lsmod
35 for f in bin/lsmod sbin/insmod sbin/rmmod sbin/modprobe sbin/modinfo sbin/depmod; do mv ${D}/$f ${D}/$f.24
36 done
37}
38
39pkg_postinst_modutils () {
40#!/bin/sh
41for f in sbin/insmod sbin/modprobe sbin/rmmod bin/lsmod; do
42 bn=`basename $f`
43 update-alternatives --install /$f $bn /$f.24 10
44done
45if test -n "$D"; then
46 D="-r $D"
47 if test -n "`which ${TARGET_PREFIX}depmod-2.4`"; then
48 for kerneldir in `ls -p $D/lib/modules|grep /`; do
49 kernelver=`basename $kerneldir`
50 ${TARGET_PREFIX}depmod-2.4 -a -b $D -C ${IMAGE_ROOTFS}/${sysconfdir}/modules.conf -r $kernelver
51 done
52 fi
53fi
54update-rc.d $D modutils.sh start 20 S .
55}
56
57pkg_prerm_modutils () {
58#!/bin/sh
59for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo bin/lsmod; do
60bn=`basename $f`
61 update-alternatives --remove $bn /$f.24
62done
63if test -n "$D"; then
64 D="-r $D"
65fi
66update-rc.d $D modutils.sh remove
67}
68
69pkg_postinst_modutils-depmod() {
70#!/bin/sh
71update-alternatives --install /sbin/depmod depmod /sbin/depmod.24 10
72}
73
74pkg_postinst_modutils-modinfo() {
75#!/bin/sh
76update-alternatives --install /sbin/modinfo modinfo /sbin/modinfo.24 10
77}
78
79pkg_prerm_modutils-depmod() {
80#!/bin/sh
81update-alternatives --remove depmod /sbin/depmod.24
82}
83
84pkg_prerm_modutils-modinfo() {
85#!/bin/sh
86update-alternatives --remove modinfo /sbin/modinfo.24
87}
88
89PACKAGES = "${PN}-dbg modutils-depmod modutils-modinfo modutils-doc modutils"
90
91FILES_modutils-depmod = "sbin/depmod.24"
92FILES_modutils-modinfo = "sbin/modinfo.24"
93RDEPENDS_modutils = "modutils-depmod"