dkms: add IGNORE_CC_MISMATCH=1 before make command to fix build with gcc 10.1+ [release 304.137-2mamba;Fri Aug 21 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 07:46:41 +01:00
parent fabe0f9c73
commit 8f6dab9a99

View File

@ -3,7 +3,7 @@
Name: nvidia_304 Name: nvidia_304
Version: 304.137 Version: 304.137
Epoch: 1 Epoch: 1
Release: 1mamba Release: 2mamba
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -138,7 +138,7 @@ cat > %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf << _EOF
PACKAGE_NAME=%{name} PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version} PACKAGE_VERSION=%{version}
MAKE="ln -sf /usr/src/\${PACKAGE_NAME}-\${PACKAGE_VERSION}/nv-kernel.o \${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build/;\ MAKE="ln -sf /usr/src/\${PACKAGE_NAME}-\${PACKAGE_VERSION}/nv-kernel.o \${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build/;\
make -C \${kernel_source_dir} KERNEL_SOURCES=\${kernel_source_dir} M=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules" IGNORE_CC_MISMATCH=1 make -C \${kernel_source_dir} KERNEL_SOURCES=\${kernel_source_dir} M=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules"
CLEAN="make -C \${kernel_source_dir} M=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean" CLEAN="make -C \${kernel_source_dir} M=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean"
BUILT_MODULE_NAME=nvidia BUILT_MODULE_NAME=nvidia
BUILT_MODULE_LOCATION=./ BUILT_MODULE_LOCATION=./
@ -393,6 +393,9 @@ exit 0
%doc current/{LICENSE,NVIDIA_Changelog,README.txt} current/html %doc current/{LICENSE,NVIDIA_Changelog,README.txt} current/html
%changelog %changelog
* Fri Aug 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 304.137-2mamba
- dkms: add IGNORE_CC_MISMATCH=1 before make command to fix build with gcc 10.1+
* Fri Jul 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 304.137-1mamba * Fri Jul 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 304.137-1mamba
- update to 304.137 - update to 304.137