[packages/xorg-driver-video-nvidia-legacy-390xx] - some build fixes, still fails on 4.14

baggins baggins at pld-linux.org
Mon Apr 6 00:39:05 CEST 2020


commit 0d7fb07ce3966f41caa8aa318969f37ac15a01f3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Apr 6 00:36:31 2020 +0200

    - some build fixes, still fails on 4.14

 kernel-5.6.patch                           | 11 ++++++++---
 xorg-driver-video-nvidia-legacy-390xx.spec |  7 -------
 2 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/xorg-driver-video-nvidia-legacy-390xx.spec b/xorg-driver-video-nvidia-legacy-390xx.spec
index a62483c..3b8ec6b 100644
--- a/xorg-driver-video-nvidia-legacy-390xx.spec
+++ b/xorg-driver-video-nvidia-legacy-390xx.spec
@@ -240,13 +240,6 @@ sterownik nVidii dla Xorg/XFree86.\
 
 %define build_kernel_pkg()\
 cd kernel\
-#cat >> Makefile <<'EOF'\
-#\
-#$(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin\
-#	cp $< $@\
-#EOF\
-#mv nv-kernel.o{,.bin}\
-#build_kernel_modules -m nvidia\
 %{__make} SYSSRC=%{_kernelsrcdir} clean\
 %{__make} SYSSRC=%{_kernelsrcdir} IGNORE_CC_MISMATCH=1 NV_VERBOSE=1 CC=%{__cc} module\
 cd ..\
diff --git a/kernel-5.6.patch b/kernel-5.6.patch
index bc1968d..0958acb 100644
--- a/kernel-5.6.patch
+++ b/kernel-5.6.patch
@@ -83,15 +83,20 @@ diff --git a/kernel/common/inc/nv-time.h b/kernel/common/inc/nv-time.h
 index 2c799c9..0206062 100644
 --- a/kernel/common/inc/nv-time.h
 +++ b/kernel/common/inc/nv-time.h
-@@ -30,7 +30,12 @@
+@@ -30,7 +30,17 @@
  #include <linux/ktime.h>
  #endif
  
 -static inline void nv_gettimeofday(struct timeval *tv)
++#include <linux/version.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
++#define nv_timeval timeval
++#else
 +struct nv_timeval {
 +    __kernel_long_t      tv_sec;
 +    __kernel_suseconds_t tv_usec;
 +};
++#endif
 +
 +static inline void nv_gettimeofday(struct nv_timeval *tv)
  {
@@ -156,10 +161,10 @@ index ec9e093..463a464 100755
 +            int conftest_ktime_get_raw_ts64(void) {
 +                struct timespec64 ts = {0};
 +
-+                ktime_get_raw_ts64(&ts64);
++                ktime_get_raw_ts64(&ts);
 +            }"
 +
-+            compile_check_conftest "$CODE" "NV_KTIME_GET_RAW_TS64_PRESENT" "" "functions"
++            compile_check_conftest "$CODE" "NV_KTIME_GET_RAW_TS64_PRESENT" "" "types"
 +        ;;
 +
          efi_enabled)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia-legacy-390xx.git/commitdiff/0d7fb07ce3966f41caa8aa318969f37ac15a01f3



More information about the pld-cvs-commit mailing list