summary refs log tree commit diff
path: root/pkgs/os-specific/linux/nvidia-x11
diff options
context:
space:
mode:
authorilian <ilian@tuta.io>2021-01-24 22:54:52 +0100
committerilian <ilian@tuta.io>2021-01-24 23:15:24 +0100
commitd3b3fa80a9a423217c2f694ee0b5c69d33865035 (patch)
tree5b09beac994e1608823e887cfcec9751f1cf0c84 /pkgs/os-specific/linux/nvidia-x11
parent35be8e34fee7f85280eb2460c4d3fcb9d854f822 (diff)
downloadnixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.tar
nixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.tar.gz
nixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.tar.bz2
nixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.tar.lz
nixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.tar.xz
nixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.tar.zst
nixpkgs-d3b3fa80a9a423217c2f694ee0b5c69d33865035.zip
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! ***
Diffstat (limited to 'pkgs/os-specific/linux/nvidia-x11')
-rwxr-xr-xpkgs/os-specific/linux/nvidia-x11/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/nvidia-x11/builder.sh b/pkgs/os-specific/linux/nvidia-x11/builder.sh
index 5baa4aa51e5..70fc5126a93 100755
--- a/pkgs/os-specific/linux/nvidia-x11/builder.sh
+++ b/pkgs/os-specific/linux/nvidia-x11/builder.sh
@@ -20,7 +20,7 @@ buildPhase() {
         sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source)
         sysOut=$(echo $kernel/lib/modules/$kernelVersion/build)
         unset src # used by the nv makefile
-        make SYSSRC=$sysSrc SYSOUT=$sysOut module -j$NIX_BUILD_CORES
+        make IGNORE_PREEMPT_RT_PRESENCE=1 SYSSRC=$sysSrc SYSOUT=$sysOut module -j$NIX_BUILD_CORES
 
         cd ..
     fi