commit 3aae4e8dfc645618a98bc5f8ad39cd7c484c3da6
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Nov 23 11:47:18 2020 +0100
Allow to disable the build of nvidia_{modeset,uvm}
nvidia-kmod.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index a0cbac5..af1bbdb 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -47,6 +47,13 @@ for kernel_version in %{?kernel_versions} ; do
done
%build
+%if 0%{?_without_nvidia_uvm:1}
+export NV_EXCLUDE_KERNEL_MODULES="${NV_EXCLUDE_KERNEL_MODULES} nvidia_uvm "
+%endif
+%if 0%{?_without_nvidia_modeset:1}
+export NV_EXCLUDE_KERNEL_MODULES="${NV_EXCLUDE_KERNEL_MODULES} nvidia_modeset
"
+%endif
+
for kernel_version in %{?kernel_versions}; do
pushd _kmod_build_${kernel_version%%___*}/
make V=1 %{?_smp_mflags} \
Show replies by date