[pkg-nvidia-devel] Bug#520706: Bug#520706: nvidia-kernel-source: It is a KERNEL_SOURCE vs KERNEL_OUTPUT issue

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Tue Apr 7 20:23:53 UTC 2009


On Mon, Apr 06, 2009 at 10:19:33AM +0200, Ita?? BEN YAACOV wrote:
> Package: nvidia-kernel-source
> Version: 180.29-1
> Severity: normal
> 
> After looking for several complicated solutions I found a relatively easy one -
> (after copying the Makefile_32.cpu file of course)
> you just need to set the KERNEL_SOURCES to the -common directory and
> KERNEL_OUTPUT to the -686 (in my case) directory.
> For example, I did something ugly like defining KCOM to the -common dir and 
> then modifying the debian/rules file to 
> 
> IGNORE_CC_MISMATCH=1 CC="$(CC)" $(MAKE) -C $(CURDIR)/$(dirname) -f Makefile SYSSRC=$(KCOM) KERNEL_OUTPUT=$(KSRC) $(KPKG_EXTRAV_ARG) KBUILD_PARAMS=$(KBUILD_PARAMS) module;

Yep that is pretty much what it needs.  I cleaned up a lot more though
to make it work with other things too.

> the debian/rules file can probably be modified more intelligently to figure the -common dir from the
> flavoured headers dir by itself.  In any case, this worked for me...

I just posted a patch to the mailing list that makes 180.29 build
perfectly with 2.6.29-2 and also works with linux-modules-nonfree-2.6,
which is something we have been trying to get going for a while now.

It doesn't involve any clever business with trying to guess if -common
is needed or not.  It just uses pure kbuild and nothing else and relies
on the headers to do the right thing.

-- 
Len Sorensen





More information about the Pkg-nvidia-devel mailing list