summarylogtreecommitdiffstats
path: root/linux-rt.patch
blob: 34d7292a07f43cb3ba03186c78349d733a695b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From d678bd8e0594a4ff7749f6b4f79ff9d4958f420c Mon Sep 17 00:00:00 2001
From: Cabopust <cabopust@yandex.ru>
Date: Tue, 26 Jan 2021 20:18:58 +0300
Subject: [PATCH] Fixing compatibility with the RT kernel

---
 kernel/conftest.sh | 4 ++--
 kernel/dkms.conf   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/conftest.sh b/kernel/conftest.sh
index 7479cb2..4d9d46f 100755
--- a/kernel/conftest.sh
+++ b/kernel/conftest.sh
@@ -4599,9 +4599,9 @@ case "$5" in
         fi
 
         if test_configuration_option CONFIG_PREEMPT_RT; then
-            PREEMPT_RT_PRESENT=1
+            PREEMPT_RT_PRESENT=0
         elif test_configuration_option CONFIG_PREEMPT_RT_FULL; then
-            PREEMPT_RT_PRESENT=1
+            PREEMPT_RT_PRESENT=0
         fi
 
         if [ "$PREEMPT_RT_PRESENT" != "0" ]; then
diff --git a/kernel/dkms.conf b/kernel/dkms.conf
index 877a01b..26657c3 100644
--- a/kernel/dkms.conf
+++ b/kernel/dkms.conf
@@ -6,7 +6,7 @@ AUTOINSTALL="yes"
 # this will cause the kernel module build to infer that it was invoked via
 # Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
 # the 'make' command name to suppress this behavior.
-MAKE[0]="'make' -j`nproc` NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=${kernelver} IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules"
+MAKE[0]="'make' -j`nproc` IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=${kernelver} IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules"
 
 # The list of kernel modules will be generated by nvidia-installer at runtime.
 BUILT_MODULE_NAME[0]="nvidia"
-- 
2.30.0