nvidia-drivers adopted for 4.0+ kernels.

This commit is contained in:
Kolan Sh 2015-06-26 15:27:10 +03:00
parent 9f3b2693fe
commit a308857381
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- kernel/nv-linux.h 2015-06-26 15:17:49.851273250 +0300
+++ kernel/nv-linux.h 2015-06-26 15:22:51.119150159 +0300
@@ -1864,4 +1864,9 @@
#define f_dentry f_path.dentry
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
+#define read_cr4 __read_cr4
+#define write_cr4 __write_cr4
+#endif
+
#endif /* _NV_LINUX_H_ */

View File

@ -180,6 +180,10 @@ src_prepare() {
epatch "${FILESDIR}"/3.19_kernel.patch
fi
if kernel_is gt 4 0 0 ; then
epatch "${FILESDIR}"/4.0_kernel.patch
fi
# If greater than 2.6.5 use M= instead of SUBDIR=
# convert_to_m "${NV_SRC}"/Makefile.kbuild
fi