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

Michael Ditum mike at mikeditum.co.uk
Wed Dec 14 18:51:07 CET 2005

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...


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?


-------------- 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

More information about the linux-dvb mailing list