[linux-dvb] depmod in v4l/Makefile when compiling for different kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to write a script to install a new kernel and then the
latest v4l-dvb drivers. This means that the kernel I am building
against will not be the current one running.

I have managed to get it building fine by adding a v4l/.version file
containing the following...

VERSION=2
PATCHLEVEL:=6
SUBLEVEL:=14
KERNELRELEASE:=2.6.14-2-smp

However when I go to do a make install I have a problem. The script
copies the modules into the correct place but then runs a `
/sbin/depmod -a`. This however runs against the current kernel so
works out the module dependencies for the 2.6.12 kernel I'm running.

I've managed to fix this by changing all instances of  /sbin/depmod -a to...

 /sbin/depmod -a ${KERNELRELEASE}

This seems to work fine.

I've attached a patch to fix this in the Makefile. Can this be
commited or is there a better way of doing this?

Thanks

Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depmod.patch
Type: text/x-patch
Size: 387 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20051214/d578530d/depmod.bin

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux