mirror of
https://github.com/archlinux-jerry/nvidia-340xx
synced 2024-11-27 18:10:40 +08:00
Update to 340.108-2
This commit is contained in:
parent
7438396df4
commit
18bd064d26
3 changed files with 27 additions and 3 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,7 +1,7 @@
|
|||
pkgbase = nvidia-340xx-lts
|
||||
pkgdesc = NVIDIA drivers for linux-lts, 340xx legacy branch
|
||||
pkgver = 340.108
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://www.nvidia.com/
|
||||
arch = x86_64
|
||||
license = custom
|
||||
|
@ -12,8 +12,10 @@ pkgbase = nvidia-340xx-lts
|
|||
options = !strip
|
||||
source = https://us.download.nvidia.com/XFree86/Linux-x86_64/340.108/NVIDIA-Linux-x86_64-340.108-no-compat32.run
|
||||
source = unfuck-340.108-build-fix.patch
|
||||
source = fix_multi_core_build.patch
|
||||
sha256sums = 995d44fef587ff5284497a47a95d71adbee0c13020d615e940ac928f180f5b77
|
||||
sha256sums = 2b7e3ef24846a40f4492e749be946e4f7f70ebed054bc2c9079f6cbdcbfabe57
|
||||
sha256sums = 82d14e9e6ec47c345d225d9f398238b7254cd5ae581c70e8521b9157ec747890
|
||||
|
||||
pkgname = nvidia-340xx-lts
|
||||
pkgdesc = NVIDIA drivers for linux-lts, 340xx legacy branch.
|
||||
|
|
6
PKGBUILD
6
PKGBUILD
|
@ -6,7 +6,7 @@
|
|||
pkgbase=nvidia-340xx-lts
|
||||
pkgname=(nvidia-340xx-lts nvidia-340xx-lts-dkms)
|
||||
pkgver=340.108
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="NVIDIA drivers for linux-lts, 340xx legacy branch"
|
||||
arch=('x86_64')
|
||||
url="https://www.nvidia.com/"
|
||||
|
@ -16,9 +16,11 @@ license=('custom')
|
|||
options=(!strip)
|
||||
source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
|
||||
unfuck-340.108-build-fix.patch
|
||||
fix_multi_core_build.patch
|
||||
)
|
||||
sha256sums=('995d44fef587ff5284497a47a95d71adbee0c13020d615e940ac928f180f5b77'
|
||||
'2b7e3ef24846a40f4492e749be946e4f7f70ebed054bc2c9079f6cbdcbfabe57')
|
||||
'2b7e3ef24846a40f4492e749be946e4f7f70ebed054bc2c9079f6cbdcbfabe57'
|
||||
'82d14e9e6ec47c345d225d9f398238b7254cd5ae581c70e8521b9157ec747890')
|
||||
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
|
||||
|
||||
# default is 'linux' substitute custom name here
|
||||
|
|
20
fix_multi_core_build.patch
Normal file
20
fix_multi_core_build.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
This patch will allow the call to make by dkms to use all host cpu cores.
|
||||
See: https://github.com/dell/dkms/issues/100
|
||||
|
||||
--- a/dkms.conf 2019-12-11 17:04:24.000000000 -0500
|
||||
+++ b/dkms.conf 2020-01-10 12:47:44.770501121 -0500
|
||||
@@ -1,7 +1,13 @@
|
||||
+if [ -x /usr/bin/nproc ]; then
|
||||
+ num_cpu_cores=$(nproc)
|
||||
+else
|
||||
+ num_cpu_cores=1
|
||||
+fi
|
||||
+
|
||||
PACKAGE_NAME="nvidia"
|
||||
PACKAGE_VERSION="340.108"
|
||||
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
|
||||
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
|
||||
-MAKE[0]="make module KERNEL_UNAME=${kernelver}"
|
||||
+MAKE[0]="make -j$num_cpu_cores module KERNEL_UNAME=${kernelver}"
|
||||
CLEAN="make clean"
|
||||
AUTOINSTALL="yes"
|
Loading…
Reference in a new issue