nvidia-x11: ignore linux-rt sanity check
Ignore the sanity check that prevents the Nvidia drivers from
being built for kernels with real-time patches.
Even though the driver might not be officially supported by
Nvidia for linux-rt, it seems to work without issues.
Attempting to install the driver for linux-rt fails with the
following error message:
The kernel you are installing for is a PREEMPT_RT kernel!
The NVIDIA driver does not support real-time kernels. If you
are using a stock distribution kernel, please install
a variant of this kernel that does not have the PREEMPT_RT
patch set applied; if this is a custom kernel, please
install a standard Linux kernel. Then try installing the
NVIDIA kernel module again.
*** Failed PREEMPT_RT sanity check. Bailing out! ***
commitd3b3fa80a9a423217c2f694ee0b5c69d33865035
authorilian <ilian@tuta.io>
dateSun 24 Jan 2021, 22:54 (6 years ago)
parent35be8e3
pkgs/os-specific/linux/nvidia-x11/builder.sh+1−1
@@ -20,7 +20,7 @@ buildPhase() {
2020 sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source)
2121 sysOut=$(echo $kernel/lib/modules/$kernelVersion/build)
2222 unset src # used by the nv makefile
23− make SYSSRC=$sysSrc SYSOUT=$sysOut module -j$NIX_BUILD_CORES
23+ make IGNORE_PREEMPT_RT_PRESENCE=1 SYSSRC=$sysSrc SYSOUT=$sysOut module -j$NIX_BUILD_CORES
2424
2525 cd ..
2626 fi