Понимаю, что вопрос платиновый, но всёже.
Собрал пока nouveau, чтобы создать тему
sh-4.4# emerge --ask nvidia-drivers
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-drivers/nvidia-drivers-304.135
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/nvidia-drivers-304.135
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.11.1-gentoo/build
* Found sources for kernel version:
* 4.11.1-gentoo
* Gentoo supports kernels which are supported by NVIDIA
* which are limited to the following kernels:
* <sys-kernel/gentoo-sources-4.10
* <sys-kernel/vanilla-sources-4.10
*
* You are free to utilize eapply_user to provide whatever
* support you feel is appropriate, but will not receive
* support as a result of those changes.
*
* Do not file a bug report about this.
*
* Checking for suitable kernel configuration options... [ ok ]
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-304.135::gentoo
* NVIDIA-Linux-x86_64-304.135.run SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* nvidia-settings-304.135.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Determining the location of the kernel source code
Бла-бла-бла
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.135/work ...
* Preparing nvidia module
make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/4.11.1-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...
make -C /lib/modules/4.11.1-gentoo/build KBUILD_SRC=/usr/src/linux-4.11.1-gentoo \
-f /usr/src/linux-4.11.1-gentoo/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
[b] echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)[/b]
mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-304.135/work/kernel/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-304.135/work/kernel/.tmp_versions/*
make -f /usr/src/linux-4.11.1-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-304.135/work/kernel
бла-бла-бла
Дальше собирается, но не работает. С 4.9 тоже.
cd /usr/src/linux
make oldconfig && make prepare
sh-4.4# eselect kernel list
Available kernel symlink targets:
[1] linux-4.9.16-gentoo
[2] linux-4.11.1-gentoo *