x11-drivers/nvidia-kmod-340.108 does not compile if CONFIG_AGP=n in kernel
Last phase of the build breaks because of missing symbols related to agp in nvidia modules. When I set CONFIG_AGP=y and recompiled the kernel, nvidia-kmod compiled successfully.
While this is a solution, the cards still in use are not only AGP.
I'm using linux-5.11.3-ck, but this looks like it'll be an issue with all kernel versions.
Find the build log attached.build.zip
Regards