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

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

 



On 12/14/05, Michael Ditum <mike@xxxxxxxxxxxxxxx> wrote:
> 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?

This looks like it can be safely applied without any trouble.... Only
one problem:  Your patch doesn't show any context... Please regenerate
it using the -up options.

cvs diff -up > depmod.patch

-Mike


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

  Powered by Linux