nvidia: update to 525.60.11

Firmware is moved to its own package since it will be needed when we add
`nvidia-open`.
This commit is contained in:
Andrew Benson 2022-12-02 18:45:57 -06:00 committed by Andrew Benson
parent 72542738d7
commit 10db13b443
2 changed files with 19 additions and 8 deletions

1
srcpkgs/nvidia-firmware Symbolic link
View File

@ -0,0 +1 @@
nvidia

View File

@ -3,8 +3,8 @@
_desc="NVIDIA drivers for linux" _desc="NVIDIA drivers for linux"
pkgname=nvidia pkgname=nvidia
version=515.86.01 version=525.60.11
revision=3 revision=1
maintainer="Andrew Benson <abenson+void@gmail.com>" maintainer="Andrew Benson <abenson+void@gmail.com>"
license="custom:NVIDIA Proprietary" license="custom:NVIDIA Proprietary"
homepage="https://www.nvidia.com/en-us/drivers/unix/" homepage="https://www.nvidia.com/en-us/drivers/unix/"
@ -19,12 +19,13 @@ conflicts="xserver-abi-video>25_1 nvidia470>=0 nvidia390>=0"
_pkg="NVIDIA-Linux-x86_64-${version}" _pkg="NVIDIA-Linux-x86_64-${version}"
distfiles="http://uk.download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run" distfiles="http://uk.download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run"
checksum=141777e1ca2f11e97d8d33260213f1be327eb73922ae22f4ddab404bb2ef4664 checksum=816ee6c2e0813ccc3d4a7958f71fc49a37c60efe1d51d6146c1ce72403983d5d
# subpackages need to be processed in this specific order # subpackages need to be processed in this specific order
subpackages="nvidia-gtklibs nvidia-dkms nvidia-opencl nvidia-libs nvidia-libs-32bit" subpackages="nvidia-gtklibs nvidia-dkms nvidia-firmware nvidia-opencl nvidia-libs nvidia-libs-32bit"
depends="nvidia-libs-${version}_${revision} depends="nvidia-libs-${version}_${revision}
nvidia-gtklibs-${version}_${revision} nvidia-gtklibs-${version}_${revision}
nvidia-dkms-${version}_${revision}" nvidia-dkms-${version}_${revision}
nvidia-firmware-${version}_${revision}"
_install_libs() { _install_libs() {
local libdir=$1 local libdir=$1
@ -116,7 +117,9 @@ do_install() {
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers
# firmware # firmware
vinstall firmware/gsp.bin 644 usr/lib/firmware/nvidia/${version} for fw in gsp_tu10x.bin gsp_ad10x.bin; do
vinstall "firmware/${fw}" 644 "usr/lib/firmware/nvidia/${version}"
done
# GLX extension module for X # GLX extension module for X
vinstall libglxserver_nvidia.so.${version} 755 usr/lib/nvidia/xorg vinstall libglxserver_nvidia.so.${version} 755 usr/lib/nvidia/xorg
@ -126,8 +129,8 @@ do_install() {
${DESTDIR}/usr/lib/nvidia/xorg/libglxserver_nvidia.so.1 ${DESTDIR}/usr/lib/nvidia/xorg/libglxserver_nvidia.so.1
# Wayland/GBM # Wayland/GBM
vinstall libnvidia-egl-wayland.so.1.1.9 755 usr/lib vinstall libnvidia-egl-wayland.so.1.1.10 755 usr/lib
ln -sf libnvidia-egl-wayland.so.1.1.9 \ ln -sf libnvidia-egl-wayland.so.1.1.10 \
${DESTDIR}/usr/lib/libnvidia-egl-wayland.so.1 ${DESTDIR}/usr/lib/libnvidia-egl-wayland.so.1
vinstall libnvidia-egl-gbm.so.1.1.0 755 usr/lib vinstall libnvidia-egl-gbm.so.1.1.0 755 usr/lib
ln -sf libnvidia-egl-gbm.so.1.1.0 \ ln -sf libnvidia-egl-gbm.so.1.1.0 \
@ -328,3 +331,10 @@ nvidia-opencl_package() {
vmove etc/OpenCL vmove etc/OpenCL
} }
} }
nvidia-firmware_package() {
short_desc="${_desc} - Firmware"
pkg_install() {
vmove usr/lib/firmware
}
}