From d3b3fa80a9a423217c2f694ee0b5c69d33865035 Mon Sep 17 00:00:00 2001 From: ilian Date: Sun, 24 Jan 2021 22:54:52 +0100 Subject: [PATCH] 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! *** --- pkgs/os-specific/linux/nvidia-x11/builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/builder.sh b/pkgs/os-specific/linux/nvidia-x11/builder.sh index 5baa4aa51e59..70fc5126a939 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