nvidia_340/nvidia_340-340.108-dkms-rename_nvidia_340.patch

25 lines
1.2 KiB
Diff

diff -Nru nvidia_340-340.108.orig/NVIDIA-Linux-x86_64-340.108/kernel/dkms.conf nvidia_340-340.108/NVIDIA-Linux-x86_64-340.108/kernel/dkms.conf
--- kernel/dkms.conf 2023-02-07 20:06:16.847865991 +0100
+++ kernel/dkms.conf 2023-02-07 20:07:00.366621491 +0100
@@ -4,9 +4,9 @@
num_cpu_cores=1
fi
-PACKAGE_NAME="nvidia"
+PACKAGE_NAME="nvidia_340"
PACKAGE_VERSION="340.108"
-BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
+BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
MAKE[0]="make -j$num_cpu_cores module KERNEL_UNAME=${kernelver}"
CLEAN="make clean"
diff -Nru nvidia_340-340.108.orig/NVIDIA-Linux-x86_64-340.108/kernel/uvm/dkms.conf.fragment nvidia_340-340.108/NVIDIA-Linux-x86_64-340.108/kernel/uvm/dkms.conf.fragment
--- kernel/uvm/dkms.conf.fragment 2019-12-11 23:04:24.000000000 +0100
+++ kernel/uvm/dkms.conf.fragment 2023-02-07 20:07:18.056522182 +0100
@@ -1,4 +1,4 @@
-BUILT_MODULE_NAME[1]="${PACKAGE_NAME}-uvm"
+BUILT_MODULE_NAME[1]="nvidia-uvm"
BUILT_MODULE_LOCATION[1]="uvm/"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
MAKE[0]+="; make -C uvm module KERNEL_UNAME=${kernelver} KBUILD_EXTMOD=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/uvm"