diff options
Diffstat (limited to 'meta/recipes-kernel/modutils/modutils_2.4.27.bb')
-rw-r--r-- | meta/recipes-kernel/modutils/modutils_2.4.27.bb | 93 |
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 @@ | |||
1 | SECTION = "base" | ||
2 | SUMMARY = "Kernel module utilities" | ||
3 | DESCRIPTION = "These utilities are intended to make a Linux modular kernel \ | ||
4 | manageable for all users, administrators and distribution maintainers." | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" | ||
7 | DEPENDS = "bison-native" | ||
8 | PR = "r10" | ||
9 | |||
10 | SRC_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 | |||
18 | SRC_URI[md5sum] = "bac989c74ed10f3bf86177fc5b4b89b6" | ||
19 | SRC_URI[sha256sum] = "ab4c9191645f9ffb455ae7c014d8c45339c13a1d0f6914817cfbf30a0bc56bf0" | ||
20 | |||
21 | inherit autotools | ||
22 | |||
23 | # modutils go in /sbin | ||
24 | sbindir = "/sbin" | ||
25 | EXTRA_OECONF = "--disable-strip" | ||
26 | export BUILDCC = "${BUILD_CC}" | ||
27 | export BUILDCFLAGS = "${BUILD_CFLAGS}" | ||
28 | |||
29 | do_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 | |||
39 | pkg_postinst_modutils () { | ||
40 | #!/bin/sh | ||
41 | for f in sbin/insmod sbin/modprobe sbin/rmmod bin/lsmod; do | ||
42 | bn=`basename $f` | ||
43 | update-alternatives --install /$f $bn /$f.24 10 | ||
44 | done | ||
45 | if 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 | ||
53 | fi | ||
54 | update-rc.d $D modutils.sh start 20 S . | ||
55 | } | ||
56 | |||
57 | pkg_prerm_modutils () { | ||
58 | #!/bin/sh | ||
59 | for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo bin/lsmod; do | ||
60 | bn=`basename $f` | ||
61 | update-alternatives --remove $bn /$f.24 | ||
62 | done | ||
63 | if test -n "$D"; then | ||
64 | D="-r $D" | ||
65 | fi | ||
66 | update-rc.d $D modutils.sh remove | ||
67 | } | ||
68 | |||
69 | pkg_postinst_modutils-depmod() { | ||
70 | #!/bin/sh | ||
71 | update-alternatives --install /sbin/depmod depmod /sbin/depmod.24 10 | ||
72 | } | ||
73 | |||
74 | pkg_postinst_modutils-modinfo() { | ||
75 | #!/bin/sh | ||
76 | update-alternatives --install /sbin/modinfo modinfo /sbin/modinfo.24 10 | ||
77 | } | ||
78 | |||
79 | pkg_prerm_modutils-depmod() { | ||
80 | #!/bin/sh | ||
81 | update-alternatives --remove depmod /sbin/depmod.24 | ||
82 | } | ||
83 | |||
84 | pkg_prerm_modutils-modinfo() { | ||
85 | #!/bin/sh | ||
86 | update-alternatives --remove modinfo /sbin/modinfo.24 | ||
87 | } | ||
88 | |||
89 | PACKAGES = "${PN}-dbg modutils-depmod modutils-modinfo modutils-doc modutils" | ||
90 | |||
91 | FILES_modutils-depmod = "sbin/depmod.24" | ||
92 | FILES_modutils-modinfo = "sbin/modinfo.24" | ||
93 | RDEPENDS_modutils = "modutils-depmod" | ||