nvidia-stable: build the nvidia-uvm kernel module required by CUDA.
Also re-add the 3.18 patch, this seems to be still necessary.
This commit is contained in:
parent
4f8c78048d
commit
e8e538b84c
1 changed files with 9 additions and 1 deletions
|
@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux (long-lived series)"
|
|||
|
||||
pkgname=nvidia-stable
|
||||
version=340.76
|
||||
revision=1
|
||||
revision=2
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="Propietary NVIDIA license"
|
||||
homepage="http://www.nvidia.com"
|
||||
|
@ -35,6 +35,10 @@ do_extract() {
|
|||
./${_pkg}.run --extract-only
|
||||
rm -f ${_pkg}.run
|
||||
}
|
||||
do_configure() {
|
||||
cd ${_pkg}
|
||||
patch -sNp0 -i ${XBPS_SRCPKGDIR}/nvidia/files/linux-3.18.patch
|
||||
}
|
||||
do_install() {
|
||||
cd ${_pkg}
|
||||
|
||||
|
@ -140,12 +144,16 @@ do_install() {
|
|||
|
||||
# dkms pkg
|
||||
vmkdir usr/src/nvidia-${version}
|
||||
# add nvidia-uvm dkms submodule too.
|
||||
cat kernel/uvm/dkms.conf.fragment >> kernel/dkms.conf
|
||||
vcopy "kernel/*" usr/src/nvidia-${version}
|
||||
|
||||
# systemd modules-load.d(5) file.
|
||||
vmkdir usr/lib/modules-load.d
|
||||
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
echo "nvidia-uvm" > ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
|
||||
# Blacklist nouveau.
|
||||
vmkdir usr/lib/modprobe.d
|
||||
|
|
Loading…
Reference in a new issue