summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-14 10:33:57 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-14 10:33:57 +0100
commitbf434c621ee151cff3a6444443a818244e334029 (patch)
treea1f7511444364c22690b4a1580bd57fe18a78512 /sys-kernel/nvidia-drivers-dkms
parent8a9fee0883460449b1dc5e0de3660b1408002de1 (diff)
x11-drivers/nvidia-drivers : add SLOT 530 (v530.41.03)
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r--sys-kernel/nvidia-drivers-dkms/Manifest1
-rw-r--r--sys-kernel/nvidia-drivers-dkms/files/dkms530.patch60
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.157-r3.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.157-r2.ebuild)3
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-470.182.03-r2.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-470.182.03-r1.ebuild)3
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.105.01-r2.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.105.01-r1.ebuild)3
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-525.116.03-r1.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-525.116.03.ebuild)3
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-530.41.03.ebuild54
7 files changed, 123 insertions, 4 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/Manifest b/sys-kernel/nvidia-drivers-dkms/Manifest
index cab18f59..31c5f21d 100644
--- a/sys-kernel/nvidia-drivers-dkms/Manifest
+++ b/sys-kernel/nvidia-drivers-dkms/Manifest
@@ -2,3 +2,4 @@ DIST NVIDIA-Linux-x86_64-390.157.run 85835541 BLAKE2B 44b855cd11f3b2f231f9fb9049
DIST NVIDIA-Linux-x86_64-470.182.03.run 271685302 BLAKE2B 47acdc53dea1698558fea8e18f481341dd542b725153a83563f9da420844b59db41f69a8eb7ad7e16a22050a7a6cffc2265a9cb8832cb5a6439c6a5b0910bfce SHA512 73619d65bd3267427acaf2deee07a2c98c490df937aa13e2c95d54cfd19ce2a82a91d3a5aa886dbe88f6230251f9cf54c38f5841cfacd77e53301e8d61fa3d7d
DIST NVIDIA-Linux-x86_64-515.105.01.run 363738348 BLAKE2B b78b7e9dbc1450a7d01d9b3b75e0612ce0b71f8647dc5ee084660c9cb12a8ac4b2f278d49b195e0f4600d02f3297af796158cbca9cdaff0d27f78f56153bdefd SHA512 9b9e820754254c70aeab2bcc1cfdae396d3b30fb948198e378f764a6f0d89ad6f6687afffa2d6f48072ab726c6d180dc3c83891eef61f273c0b11f7bc2c9bd67
DIST NVIDIA-Linux-x86_64-525.116.03.run 414602354 BLAKE2B f46c88b579901cd4bf0263f046fc2915a8f147af4c4669d849fadd3df1dd6aad913a8cc27f9dde3c5ba9aa3f40df725220d06b590ccf9e185ecd720eb3977836 SHA512 684c2eddb621a18dddf047cc7d89521a4841fedbfad674e6ccb0bac7dba141a6e8e3ee77b6f2a692dab6d6e3310a88d38ea14f8198e94b21a299927e69234114
+DIST NVIDIA-Linux-x86_64-530.41.03.run 344312858 BLAKE2B bb5507afd23e6e063314532f37e5c7cc2530f96f359664d79ebac998c6a32ee238790b4aa66339a913e31114d22795e8e80aebced2260ff04b5d3589af472fc9 SHA512 90068122824322884ec8f3e4be2fe7f76bf07ee1163baf6da15d09ba3ff886e5c5ef72016509eef9f4af9d85f154ebbe051d5fb3af5e867f1f67f03af8068100
diff --git a/sys-kernel/nvidia-drivers-dkms/files/dkms530.patch b/sys-kernel/nvidia-drivers-dkms/files/dkms530.patch
new file mode 100644
index 00000000..8ea36d81
--- /dev/null
+++ b/sys-kernel/nvidia-drivers-dkms/files/dkms530.patch
@@ -0,0 +1,60 @@
+diff -Nur a/kernel/dkms.conf b/kernel/dkms.conf
+--- a/kernel/dkms.conf 2023-03-28 23:02:32.000000000 +0100
++++ b/kernel/dkms.conf 2023-05-12 18:40:21.194005773 +0100
+@@ -1,12 +1,22 @@
+-PACKAGE_NAME="nvidia"
+-PACKAGE_VERSION="__VERSION_STRING"
++PACKAGE_NAME="nvidia-drivers-dkms"
++PACKAGE_VERSION="530.41.03"
++BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-3]\.)" # only build for kernels v5.x.x up to and including v6.3.x
+ AUTOINSTALL="yes"
+
+ # By default, DKMS will add KERNELRELEASE to the make command line; however,
+ # this will cause the kernel module build to infer that it was invoked via
+ # Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
+ # the 'make' command name to suppress this behavior.
+-MAKE[0]="'make' -j__JOBS NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=${kernelver} modules"
++MAKE[0]="'make' -j`nproc` NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=${kernelver} IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules"
+
+ # The list of kernel modules will be generated by nvidia-installer at runtime.
+-__DKMS_MODULES
++BUILT_MODULE_NAME[0]="nvidia"
++DEST_MODULE_LOCATION[0]="/extra/dkms"
++BUILT_MODULE_NAME[1]="nvidia-uvm"
++DEST_MODULE_LOCATION[1]="/extra/dkms"
++BUILT_MODULE_NAME[2]="nvidia-modeset"
++DEST_MODULE_LOCATION[2]="/extra/dkms"
++BUILT_MODULE_NAME[3]="nvidia-drm"
++DEST_MODULE_LOCATION[3]="/extra/dkms"
++BUILT_MODULE_NAME[4]="nvidia-peermem"
++DEST_MODULE_LOCATION[4]="/extra/dkms"
+diff -Nur a/kernel-open/dkms.conf b/kernel-open/dkms.conf
+--- a/kernel-open/dkms.conf 2023-03-28 23:02:32.000000000 +0100
++++ b/kernel-open/dkms.conf 2023-05-12 18:40:30.254006616 +0100
+@@ -1,12 +1,22 @@
+-PACKAGE_NAME="nvidia"
+-PACKAGE_VERSION="__VERSION_STRING"
++PACKAGE_NAME="nvidia-drivers-dkms"
++PACKAGE_VERSION="530.41.03"
++BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-3]\.)" # only build for kernels v5.x.x up to and including v6.3.x
+ AUTOINSTALL="yes"
+
+ # By default, DKMS will add KERNELRELEASE to the make command line; however,
+ # this will cause the kernel module build to infer that it was invoked via
+ # Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
+ # the 'make' command name to suppress this behavior.
+-MAKE[0]="'make' -j__JOBS NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=${kernelver} modules"
++MAKE[0]="'make' -j`nproc` NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=${kernelver} IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules"
+
+ # The list of kernel modules will be generated by nvidia-installer at runtime.
+-__DKMS_MODULES
++BUILT_MODULE_NAME[0]="nvidia"
++DEST_MODULE_LOCATION[0]="/extra/dkms"
++BUILT_MODULE_NAME[1]="nvidia-uvm"
++DEST_MODULE_LOCATION[1]="/extra/dkms"
++BUILT_MODULE_NAME[2]="nvidia-modeset"
++DEST_MODULE_LOCATION[2]="/extra/dkms"
++BUILT_MODULE_NAME[3]="nvidia-drm"
++DEST_MODULE_LOCATION[3]="/extra/dkms"
++BUILT_MODULE_NAME[4]="nvidia-peermem"
++DEST_MODULE_LOCATION[4]="/extra/dkms"
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.157-r2.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.157-r3.ebuild
index 56f68d54..e5a7002f 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.157-r2.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.157-r3.ebuild
@@ -22,7 +22,8 @@ DEPEND="sys-kernel/dkms"
RDEPEND="${DEPEND}
!!sys-kernel/nvidia-drivers-dkms:470
!!sys-kernel/nvidia-drivers-dkms:515
- !!sys-kernel/nvidia-drivers-dkms:525"
+ !!sys-kernel/nvidia-drivers-dkms:525
+ !!sys-kernel/nvidia-drivers-dkms:530"
PATCHES=(
"${FILESDIR}"/dkms390.patch
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-470.182.03-r1.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-470.182.03-r2.ebuild
index c44811c5..d73c64c8 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-470.182.03-r1.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-470.182.03-r2.ebuild
@@ -22,7 +22,8 @@ DEPEND="sys-kernel/dkms"
RDEPEND="${DEPEND}
!!sys-kernel/nvidia-drivers-dkms:390
!!sys-kernel/nvidia-drivers-dkms:515
- !!sys-kernel/nvidia-drivers-dkms:525"
+ !!sys-kernel/nvidia-drivers-dkms:525
+ !!sys-kernel/nvidia-drivers-dkms:530"
PATCHES=(
"${FILESDIR}"/dkms470.patch
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.105.01-r1.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.105.01-r2.ebuild
index 45d81756..9860fde7 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.105.01-r1.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.105.01-r2.ebuild
@@ -22,7 +22,8 @@ DEPEND="sys-kernel/dkms"
RDEPEND="${DEPEND}
!!sys-kernel/nvidia-drivers-dkms:390
!!sys-kernel/nvidia-drivers-dkms:470
- !!sys-kernel/nvidia-drivers-dkms:525"
+ !!sys-kernel/nvidia-drivers-dkms:525
+ !!sys-kernel/nvidia-drivers-dkms:530"
PATCHES=(
"${FILESDIR}"/dkms515.patch
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-525.116.03.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-525.116.03-r1.ebuild
index 3723398f..be798353 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-525.116.03.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-525.116.03-r1.ebuild
@@ -22,7 +22,8 @@ DEPEND="sys-kernel/dkms"
RDEPEND="${DEPEND}
!!sys-kernel/nvidia-drivers-dkms:390
!!sys-kernel/nvidia-drivers-dkms:470
- !!sys-kernel/nvidia-drivers-dkms:515"
+ !!sys-kernel/nvidia-drivers-dkms:515
+ !!sys-kernel/nvidia-drivers-dkms:530"
PATCHES=(
"${FILESDIR}"/dkms525.patch
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-530.41.03.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-530.41.03.ebuild
new file mode 100644
index 00000000..7b49127d
--- /dev/null
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-530.41.03.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+NV_URI="http://us.download.nvidia.com/XFree86/"
+AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}"
+
+DESCRIPTION="NVIDIA driver sources for linux"
+HOMEPAGE="http://www.nvidia.com/"
+SRC_URI="amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )"
+
+LICENSE="GPL-2 NVIDIA-r2"
+SLOT="530"
+KEYWORDS="amd64"
+IUSE="kernel-open"
+
+DEPEND="sys-kernel/dkms"
+RDEPEND="${DEPEND}
+ !!sys-kernel/nvidia-drivers-dkms:390
+ !!sys-kernel/nvidia-drivers-dkms:470
+ !!sys-kernel/nvidia-drivers-dkms:515
+ !!sys-kernel/nvidia-drivers-dkms:525"
+
+PATCHES=(
+ "${FILESDIR}"/dkms530.patch
+)
+
+S="${WORKDIR}/${AMD64_NV_PACKAGE}"
+
+src_unpack() {
+ sh ${DISTDIR}/${AMD64_NV_PACKAGE}.run --extract-only
+}
+
+src_install() {
+ dodir usr/src/${P}
+ insinto usr/src/${P}
+ if use kernel-open; then
+ doins -r "${S}"/kernel-open/*
+ else
+ doins -r "${S}"/kernel/*
+ fi
+}
+
+pkg_postinst() {
+ dkms add ${PN}/${PV}
+}
+
+pkg_prerm() {
+ dkms remove ${PN}/${PV} --all
+}