I`m using koutput on an x86 system with the gentoo-2.6.9-r9 kernel. I tried emerging nvidia-kernel after compiling my kernel but it exited with an error that the .config configuration file could not be found. After copying .config to /usr/src/linux everything worked fine. I believe there is a bug here. The configuration file should have been sought at /var/tmp/kernel-output/... Reproducible: Always Steps to Reproduce: 1.update kernel to latest version 2. Enable koutput 3. emerge nvidia-kernel
There are two ways this is supported 1) you have KBUILD_OUTPUT set in your environment then this should work. 2) the build process looks in /usr/src/linux/Makefile for KBUILD_OUTPUT 1) is unlikely in your case, so can you please check the Makefile is correct. However if you specified the output using O= on the CLI when compiling your kernel then you will need to do so again to merge nvidia-kernel.
I am also affected by this bug. I checked the kernel makefile as suggested by Andrew Bevitt, and KBUILD_OUTPUT is indeed defined correctly there. This used to work without problems until December 5th, the last time I had nvidia-kernel build successfully. Since then, I didn't change anything in my kernel configuration, so this must a bug introduced recently, probably in some eclass file.
John: You wanted some test cases :)
could you please do me a favour and attach your kernel Makefile and .config please also state your version of make (make -v), and the sources you are using. passing O= for the record wont work for modules in the portage tree, since O is already defined in the portage environment and cannot be reused. if we are passing anything, it should be KBUILD_OUTPUT. Cheers.
Problem was added with a patch which I didn't fully check before applying. My apologies. Has now been fixed as of 1.8
Unfortunately, now I'm getting this: x86 * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.9-gentoo-r9 * getfilevar requires 2 variables, with the second a valid file. * getfilevar <VARIABLE> <CONFIGFILE> * Could not find a usable .config in the kernel source directory. * Please ensure that /usr/src/linux points to a configured set of Linux sources !!! ERROR: media-video/nvidia-kernel-1.0.6629 failed. !!! Function get_version, Line 231, Exitcode 0 !!! .config not found in /usr/src/linux !!! If you need support, post the topmost build error, NOT this status message.
Well, I decided to delete my kernel output dir, and rerun config-kernel --make-koutput. After compiling the kernel, it just plain worked! Case closed (I hope!).