DKMS cannot build nvidia-graphics-drivers against a custom kernel using a separate build ouput directory
Bug #570323 reported by
Philip Langdale
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DKMS |
Invalid
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
When building against a custom kernel using a separate build output directory, the source directory (/lib/modules/
Currently dkms passes the build output directory as SYSSRC - which will only work if the build was done inside the source directory, for obvious reasons.
I don't know if this is a dkms bug (ie: dkms cannot express the two directories) or an nvidia packaging bug.
To post a comment you must log in.
Changing the make invocation in dkms.conf to:
"make module KERNDIR= /lib/modules/ $kernelver IGNORE_ XEN_PRESENCE= 1 IGNORE_ CC_MISMATCH= 1 SYSSRC= "/lib/modules/ $kernelver/ source" SYSOUT= $kernel_ source_ dir"
fixes the problem.
DKMS sets $kernel_source_dir to the build dir and has no specific variable for the source dir.