When kernel was built with "make O=/some/output/dir", nvidia-drivers fails to detect the correct kernel directories unless explizitely given on the command line, like KBUILD_OUTPUT=/lib/modules/2.6.25.2/build KERNEL_DIR=/lib/modules/2.6.25.2/source paludis -i nvidia-drivers The linux-mod.eclass should detect this by itself (by evaluating the symlinks in /lib/modules/<kernel-version>), instead of relying on the /usr/src/linux symlink. Reproducible: Always Steps to Reproduce: 1. build kernel with "make O=/some/dir" and install it 2. reboot 3. emerge nvidia-drivers
That assumes that you've installed the kernel you're building against, I don't think we're prepared to make that assumption. Also the level at which we use this (linux-info) does not require a modular kernel at all The documented way of using another output directory is documented in linux-info.eclass # KBUILD_OUTPUT <string> This is passed on commandline, or can be set from # the kernel makefile. This contains the directory # which is to be used as the kernel object directory.