nvidia: fix the fix again (no patch for i686)
This commit is contained in:
parent
e2aa8b2960
commit
b09d2b8267
2 changed files with 2 additions and 22 deletions
|
@ -1,17 +0,0 @@
|
|||
Since linux-4.14.9 there has been some kernel headers reordering.
|
||||
Fix that issue by including linux/sched/task_stack.h for kernels
|
||||
newer than 4.14.9.
|
||||
|
||||
--- NVIDIA-Linux-x86-384.98/kernel/nvidia-uvm/uvm8_va_block.c 2017-10-27 01:19:54.000000000 +0200
|
||||
+++ NVIDIA-Linux-x86-384.98/kernel/nvidia-uvm/uvm8_va_block.c 2018-01-02 02:50:05.260588964 +0100
|
||||
@@ -36,6 +36,10 @@
|
||||
#include "uvm8_perf_prefetch.h"
|
||||
#include "uvm8_mem.h"
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,9)
|
||||
+#include <linux/sched/task_stack.h>
|
||||
+#endif
|
||||
+
|
||||
typedef enum
|
||||
{
|
||||
BLOCK_PTE_OP_MAP,
|
|
@ -39,14 +39,11 @@ do_extract() {
|
|||
./${_pkg}.run --extract-only
|
||||
rm -f ${_pkg}.run
|
||||
#
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
cp ${FILESDIR}/nvidia-x86-uvm8_va_block-linux_4_14_9.patch \
|
||||
nvidia-uvm8_va_block-linux_4_14_9.patch
|
||||
else
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
cp ${FILESDIR}/nvidia-x86_64-uvm8_va_block-linux_4_14_9.patch \
|
||||
nvidia-uvm8_va_block-linux_4_14_9.patch
|
||||
patch -p0 < nvidia-uvm8_va_block-linux_4_14_9.patch
|
||||
fi
|
||||
patch -p0 < nvidia-uvm8_va_block-linux_4_14_9.patch
|
||||
}
|
||||
|
||||
pre_install() {
|
||||
|
|
Loading…
Reference in a new issue