git: 4aa7e5605dd8 - main - x11/nvidia-driver: Prepare for GSP firmware in 560

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Sun, 29 Sep 2024 09:40:47 UTC
The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4aa7e5605dd808709154e842895ac3401e097d6b

commit 4aa7e5605dd808709154e842895ac3401e097d6b
Author:     Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
AuthorDate: 2024-09-29 07:16:53 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-29 09:40:10 +0000

    x11/nvidia-driver: Prepare for GSP firmware in 560
    
    PR:             280772
    Approved by:    maintainer timeout
---
 x11/nvidia-driver/Makefile  | 4 ++++
 x11/nvidia-driver/pkg-plist | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 3fd6e3722bb8..ba87e2a0088d 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -372,6 +372,10 @@ post-install: .SILENT
 .if ${NVVERSION} < 545.000
 	${REINPLACE_CMD} -e '/libnvidia-gpucomp\.so/d' ${TMPPLIST}
 .endif
+.if ${NVVERSION} < 560.02803
+	${REINPLACE_CMD} -e '/nvidia_gsp_ga10x_fw\.ko/d' ${TMPPLIST}
+	${REINPLACE_CMD} -e '/nvidia_gsp_tu10x_fw\.ko/d' ${TMPPLIST}
+.endif
 
 .if ${NVVERSION} < 410.057
 # Rename some libraries and install a libmap file to resolve conflict with
diff --git a/x11/nvidia-driver/pkg-plist b/x11/nvidia-driver/pkg-plist
index 973dc8193b11..3c61dc2818ce 100644
--- a/x11/nvidia-driver/pkg-plist
+++ b/x11/nvidia-driver/pkg-plist
@@ -107,3 +107,5 @@ share/vulkan/implicit_layer.d/nvidia_layers.json
 %%MODULESDIR%%/extensions/libglxserver_nvidia.so.1
 /%%KMODDIR%%/nvidia.ko
 /%%KMODDIR%%/nvidia-modeset.ko
+/%%KMODDIR%%/nvidia_gsp_ga10x_fw.ko
+/%%KMODDIR%%/nvidia_gsp_tu10x_fw.ko