diff options
Diffstat (limited to '0002-linux-rt.patch')
-rw-r--r-- | 0002-linux-rt.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/0002-linux-rt.patch b/0002-linux-rt.patch new file mode 100644 index 000000000000..34d7292a07f4 --- /dev/null +++ b/0002-linux-rt.patch @@ -0,0 +1,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 + |