diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-04-29 22:16:05 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-29 22:16:05 +0000 |
commit | fb4bf48db5e1a3bed0ef9e490656357c70ae2088 (patch) | |
tree | 7c9cdea26321ccea1944d0774df8ec3157f83c3a /packages/modutils | |
parent | a3c05f2af07d2c0b02c74667f00d2d6045a4bb72 (diff) |
Install depmod-2.4 and depmod-2.6 in cross staging instead of plain depmod so 2.4 and 2.6 kernel builds can coexist with multimachine (bug 581)
Diffstat (limited to 'packages/modutils')
-rw-r--r-- | packages/modutils/modutils-cross_2.4.27.bb | 3 | ||||
-rw-r--r-- | packages/modutils/modutils_2.4.27.bb | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/modutils/modutils-cross_2.4.27.bb b/packages/modutils/modutils-cross_2.4.27.bb index 2b301d7d09..9ecdfba5da 100644 --- a/packages/modutils/modutils-cross_2.4.27.bb +++ b/packages/modutils/modutils-cross_2.4.27.bb @@ -1,6 +1,6 @@ SECTION = "base" include modutils_${PV}.bb -PR = "r6" +PR = "r7" inherit cross S = "${WORKDIR}/modutils-${PV}" DEPENDS = "" @@ -19,6 +19,7 @@ CFLAGS_prepend_mipseb = "-D__MIPSEB__" do_stage () { oe_runmake install + mv ${bindir}/${TARGET_PREFIX}-depmod ${bindir}/${TARGET_PREFIX}-depmod-2.4 } do_install () { diff --git a/packages/modutils/modutils_2.4.27.bb b/packages/modutils/modutils_2.4.27.bb index 9fa7cef105..56420f7de0 100644 --- a/packages/modutils/modutils_2.4.27.bb +++ b/packages/modutils/modutils_2.4.27.bb @@ -39,10 +39,10 @@ for f in sbin/insmod sbin/modprobe sbin/rmmod bin/lsmod; do done if test -n "$D"; then D="-r $D" - if test -n "`which ${TARGET_PREFIX}depmod`"; then + 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 -a -b ${IMAGE_ROOTFS} -C ${IMAGE_ROOTFS}/${sysconfdir}/modules.conf -r $kernelver + ${TARGET_PREFIX}depmod-2.4 -a -b ${IMAGE_ROOTFS} -C ${IMAGE_ROOTFS}/${sysconfdir}/modules.conf -r $kernelver done fi fi |