DKMS cannot build nvidia-graphics-drivers against a custom kernel using a separate build ouput directory

Bug #570323 reported by Philip Langdale on 2010-04-26
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DKMS
Undecided
Unassigned
nvidia-graphics-drivers (Ubuntu)
Wishlist
Unassigned

Bug Description

When building against a custom kernel using a separate build output directory, the source directory (/lib/modules/<version>/source) should be passed to the nvidia makefile as SYSSRC and the build output directory (/lib/modules/<version>/build) as SYSOUT.

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.

Philip Langdale (langdalepl) wrote :

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.

Bryce Harrington (bryce) wrote :

Would bug #569237 be basically a dupe of this issue?

Changed in nvidia-graphics-drivers (Ubuntu):
importance: Undecided → High
status: New → Triaged
Philip Langdale (langdalepl) wrote :

It's likely but he doesn't say if he used a separate build output directory or not.

Robert Hooker (sarvatt) wrote :

Marking this as wishlist since it doesn't apply to kernels created the debian way (with make-kpkg or the ubuntu kernel build system).

Changed in nvidia-graphics-drivers (Ubuntu):
importance: High → Wishlist
Mario Limonciello (superm1) wrote :

Marking the DKMS task invalid. I'd say this should be something set by individual packages.

Changed in dkms:
status: New → Invalid
Philip Langdale (langdalepl) wrote :

The new 319.12 driver's makefile has been improved so that the dkms build can work with split source/build-output but the command line arguments have to change.

The attachment "Merge nvidia's fix for split dkms builds." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers