Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382615 - Nvidia-drivers can't figure out kernel version with 3.0.x kernel & separate output dir
Summary: Nvidia-drivers can't figure out kernel version with 3.0.x kernel & separate o...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 18:06 UTC by Joe Kowalski
Modified: 2012-02-14 16:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log (1315761257-install-x11-drivers_nvidia-drivers-275.09.07:0::gentoo.out,4.75 KB, text/plain)
2011-09-11 18:08 UTC, Joe Kowalski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kowalski 2011-09-11 18:06:52 UTC
I use git to manage my kernel sources, so I like to keep my output build files in a separate directory in my home folder. I have KBUILD_OUTPUT specified in my configuration and pointing to the appropriate directory. With kernel versions less than 3.0, this has worked perfectly and the nvidia driver has handled this fine.

Now with 3.0.x however, the nvidia driver is only able to determine the version when the kernel is built in the same directory as the sources and KBUILD_OUTPUT is unset. It probably has something to do with the Makefile in my build directory looking like this:


# Automatically generated by /usr/src/linux-2.6/scripts/mkmakefile: don't edit

VERSION = 3
PATCHLEVEL = 0

lastword = $(word $(words $(1)),$(1))
makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))

MAKEARGS := -C /usr/src/linux-2.6
MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))

MAKEFLAGS += --no-print-directory

.PHONY: all $(MAKECMDGOALS)

all     := $(filter-out all Makefile,$(MAKECMDGOALS))

all:
        $(MAKE) $(MAKEARGS) $(all)

Makefile:;

$(all): all
        @:

%/: all
        @:

As the Makefile there only has a Version and a Patchlevel, the nvidia driver make system can't make out the version.


Reproducible: Always
Comment 1 Joe Kowalski 2011-09-11 18:08:20 UTC
Created attachment 286141 [details]
Build Log
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2011-09-14 17:37:28 UTC
No current release supports 3.0. Additionally, we don't support git kernels.