]> git.pld-linux.org Git - packages/xorg-driver-video-nvidia-legacy-390xx.git/blobdiff - xorg-driver-video-nvidia-legacy-390xx.spec
fix build with kernel 5.10
[packages/xorg-driver-video-nvidia-legacy-390xx.git] / xorg-driver-video-nvidia-legacy-390xx.spec
index 3f15b444702ccc4d94cca6d9c63b7563c7d89334..65a27d0fdd5997b8602aeb4b01c84061d89745c5 100644 (file)
@@ -33,7 +33,7 @@ exit 1
 
 %define                no_install_post_check_so 1
 
-%define                rel     2
+%define                rel     3
 %define                pname   xorg-driver-video-nvidia-legacy-390xx
 Summary:       Linux Drivers for nVidia GeForce/Quadro Chips
 Summary(hu.UTF-8):     Linux meghajtók nVidia GeForce/Quadro chipekhez
@@ -56,6 +56,10 @@ Source5:     10-nvidia-modules.conf
 Patch0:                X11-driver-nvidia-GL.patch
 Patch1:                X11-driver-nvidia-desktop.patch
 Patch2:                kernel-5.8.patch
+Patch3:                kernel-5.8-uvm.patch
+Patch4:                kernel-5.9.patch
+Patch5:                kernel-5.9-uvm.patch
+Patch6:                kernel-5.10.patch
 URL:           http://www.nvidia.com/object/unix.html
 BuildRequires: rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -244,10 +248,8 @@ cd kernel\
 cd ..\
 %install_kernel_modules -D installed -m kernel/nvidia,kernel/nvidia-drm,kernel/nvidia-modeset -d misc\
 %ifarch %{x8664}\
-%if %{_kernel_version_code} < %{_kernel_version_magic 5 8 0}\
 %install_kernel_modules -D installed -m kernel/nvidia-uvm -d misc\
 %endif\
-%endif\
 %{nil}
 
 %{?with_kernel:%{expand:%create_kernel_packages}}
@@ -265,6 +267,12 @@ rm -rf NVIDIA-Linux-x86*-%{version}*
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch4 -p1
+%ifarch %{x8664}
+%patch3 -p1
+%patch5 -p1
+%endif
+%patch6 -p1
 echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild
 
 %build
This page took 0.101456 seconds and 4 git commands to generate.