summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <sudinave@gmail.com>2021-04-03 21:02:42 +0200
committerDavid Seifert <soap@gentoo.org>2021-04-03 21:02:42 +0200
commitc724d671c026c16f7d2a5b38cd9d30af854ae551 (patch)
tree93bfee3ab5be0836bc02b936eeaf1ca5c472c0ce /x11-drivers
parentx11-drivers/nvidia-drivers: style re-arrangement and nitpicks (diff)
downloadgentoo-c724d671c026c16f7d2a5b38cd9d30af854ae551.tar.gz
gentoo-c724d671c026c16f7d2a5b38cd9d30af854ae551.tar.bz2
gentoo-c724d671c026c16f7d2a5b38cd9d30af854ae551.zip
x11-drivers/nvidia-drivers: require _PM with 460.67 for <5.10 kernels
NVIDIA sets an alternate code path so no-CONFIG_PM works with >=5.10 kernels and opted to remove the PM guard, however this breaks build with older kernels. Unless the guard is re-added in a future version this will have to be kept. Closes: https://bugs.gentoo.org/778920 Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild
index b160a613192f..5f88085c1348 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild
@@ -95,6 +95,11 @@ pkg_setup() {
Cannot be directly selected in the kernel's menuconfig, so enable
options such as CONFIG_DRM_FBDEV_EMULATION instead."
+ if kernel_is -lt 5 10; then
+ CONFIG_CHECK+=" PM" # needed since 460.67 (bug #778920)
+ local ERROR_PM="CONFIG_PM: is not set but needed with kernel version <5.10"
+ fi
+
BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"'
BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules
MODULE_NAMES="