diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/modutils/modutils_2.4.27.bb | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/modutils/modutils_2.4.27.bb')
-rw-r--r-- | recipes/modutils/modutils_2.4.27.bb | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/recipes/modutils/modutils_2.4.27.bb b/recipes/modutils/modutils_2.4.27.bb new file mode 100644 index 0000000000..9cedecaa9a --- /dev/null +++ b/recipes/modutils/modutils_2.4.27.bb @@ -0,0 +1,89 @@ +SECTION = "base" +DESCRIPTION = "These utilities are intended to make a Linux modular kernel \ +manageable for all users, administrators and distribution maintainers." +LICENSE = "GPLv2" +DEPENDS = "bison-native" +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/files" +PR = "r8" + +SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/modutils/v2.4/modutils-${PV}.tar.bz2 \ + file://lex.l.diff;patch=1 \ + file://modutils-notest.patch;patch=1 \ + file://configure.patch;patch=1 \ + file://program_prefix.patch;patch=1 \ + file://armeb.patch;patch=1 \ + file://gcc4.patch;patch=1" + +inherit autotools + +# modutils go in /sbin +sbindir = "/sbin" +EXTRA_OECONF = "--disable-strip" +export BUILDCC = "${BUILD_CC}" +export BUILDCFLAGS = "${BUILD_CFLAGS}" + +do_install () { + oe_runmake 'DESTDIR=${D}' install + install -d ${D}${sysconfdir} + rm ${D}${base_sbindir}/lsmod + install -d ${D}${base_bindir}/ + ln -s ../sbin/insmod ${D}${base_bindir}/lsmod + for f in bin/lsmod sbin/insmod sbin/rmmod sbin/modprobe sbin/modinfo sbin/depmod; do mv ${D}/$f ${D}/$f.24 + done +} + +pkg_postinst_modutils () { +#!/bin/sh +for f in sbin/insmod sbin/modprobe sbin/rmmod bin/lsmod; do + bn=`basename $f` + update-alternatives --install /$f $bn /$f.24 10 +done +if test -n "$D"; then + D="-r $D" + if test -n "`which ${TARGET_PREFIX}depmod-2.4`"; then + for kerneldir in `ls -p ${IMAGE_ROOTFS}/lib/modules|grep /`; do + kernelver=`basename $kerneldir` + ${TARGET_PREFIX}depmod-2.4 -a -b ${IMAGE_ROOTFS} -C ${IMAGE_ROOTFS}/${sysconfdir}/modules.conf -r $kernelver + done + fi +fi +update-rc.d $D modutils.sh start 20 S . +} + +pkg_prerm_modutils () { +#!/bin/sh +for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo bin/lsmod; do +bn=`basename $f` + update-alternatives --remove $bn /$f.24 +done +if test -n "$D"; then + D="-r $D" +fi +update-rc.d $D modutils.sh remove +} + +pkg_postinst_modutils-depmod() { +#!/bin/sh +update-alternatives --install /sbin/depmod depmod /sbin/depmod.24 10 +} + +pkg_postinst_modutils-modinfo() { +#!/bin/sh +update-alternatives --install /sbin/modinfo modinfo /sbin/modinfo.24 10 +} + +pkg_prerm_modutils-depmod() { +#!/bin/sh +update-alternatives --remove depmod /sbin/depmod.24 +} + +pkg_prerm_modutils-modinfo() { +#!/bin/sh +update-alternatives --remove modinfo /sbin/modinfo.24 +} + +PACKAGES = "${PN}-dbg modutils-depmod modutils-modinfo modutils-doc modutils" + +FILES_modutils-depmod = "sbin/depmod.24" +FILES_modutils-modinfo = "sbin/modinfo.24" +RDEPENDS_modutils = "modutils-depmod" |