Skip to content

Commit

Permalink
nvidia-drivers: Split amd64 and arm64 driver version
Browse files Browse the repository at this point in the history
The R535 driver branch, which is LTS, does not compile on arm64 with GCC
14/kernel 6.6. Keep amd64 on R535 and switch arm64 to R570 by default.
R570 is the first driver version that I found that is currently
supported and works for arm64.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
  • Loading branch information
jepio committed Mar 7, 2025
1 parent 21665e5 commit 76585b7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NVIDIA_DRIVER_VERSION=535.216.01
NVIDIA_DRIVER_VERSION=@PV@
NVIDIA_PRODUCT_TYPE=tesla
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SRC_URI=""

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm64"
KEYWORDS="amd64"
IUSE=""

# no source directory
Expand All @@ -23,6 +23,8 @@ src_install() {
exeinto "/usr/lib/nvidia/bin"
doexe "${FILESDIR}/bin/install-nvidia"
doexe "${FILESDIR}/bin/setup-nvidia"
cp "${FILESDIR}/nvidia-metadata" nvidia-metadata || die "cp failed"
sed -i -e "s/@PV@/${PV}/" nvidia-metadata
insinto "/usr/share/flatcar"
doins "${FILESDIR}/nvidia-metadata"
doins nvidia-metadata
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (c) 2020 Kinvolk GmbH. All rights reserved.
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit systemd

DESCRIPTION="NVIDIA drivers"
HOMEPAGE=""
SRC_URI=""

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="arm64"
IUSE=""

# no source directory
S="${WORKDIR}"

src_install() {
systemd_dounit "${FILESDIR}/units/nvidia.service"
systemd_enable_service multi-user.target nvidia.service
exeinto "/usr/lib/nvidia/bin"
doexe "${FILESDIR}/bin/install-nvidia"
doexe "${FILESDIR}/bin/setup-nvidia"
cp "${FILESDIR}/nvidia-metadata" nvidia-metadata || die "cp failed"
sed -i -e "s/@PV@/${PV}/" nvidia-metadata
insinto "/usr/share/flatcar"
doins nvidia-metadata
}

0 comments on commit 76585b7

Please # to comment.