Bug#820260: nvidia-kernel-source: Module does not build with make-kpkg (kernel-package)

Andreas Beckmann anbe at debian.org
Fri Apr 8 13:58:03 UTC 2016


On 2016-04-08 03:04, Kevin Locke wrote:
> Perhaps the rationale for removing support for KSRC can shed some light
> on the tradeoffs for this fix vs reverting the commit.

passing KSRC=/lib/modules/KVERS/build (as done by m-a) does not work for
the "split" header packages shipped in Debian. There is
/lib/modules/KVERS/source, too, and it is *different* from .../build .
So we would have to pass SYSSRC and SYSOUT to the NVIDIA build system -
or just KERNEL_UNAME (and let the build system figure out the correct
paths).
Of course that broke your case (unified, but not installed, kernel
source) I've tried something in branches/304 that seems to work ...

That KVERS alone is not working seems to be specific to the NVIDIA
kernel module - and their assumptions about kernel source layout in
their conftest.sh script (instead of leaving such details totally to
Kbuild). But I'm much happier now that we can use conftest.sh directly
and we no longer have to maintain our custom conftest.h that substituted
conftest.sh

What's likely not going to get working is the dkms build with
non-installed kernel headers (i.e. not available via
/lib/modules/KVERS/{build,source})


Andreas



More information about the pkg-nvidia-devel mailing list