summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-16 14:49:54 +0100
committerSimon Rettberg2024-01-16 14:49:54 +0100
commita2dc425b293819b566dc842791634c2801a6702c (patch)
tree4ad526ce642b3103fc24c84530dec6df3f202904
parent[nvidia-common] Add libglvnd-dev (diff)
downloadmltk-a2dc425b293819b566dc842791634c2801a6702c.tar.gz
mltk-a2dc425b293819b566dc842791634c2801a6702c.tar.xz
mltk-a2dc425b293819b566dc842791634c2801a6702c.zip
[nvidia-common] Try downloading installer bundle from local server first
We now host a patched version of 390.xx that will compile on Kernel versions up to 6.6.
-rw-r--r--core/modules/nvidia-common/module.build9
-rw-r--r--core/modules/nvidia-common/module.conf7
2 files changed, 13 insertions, 3 deletions
diff --git a/core/modules/nvidia-common/module.build b/core/modules/nvidia-common/module.build
index 806b223e..1dae11ce 100644
--- a/core/modules/nvidia-common/module.build
+++ b/core/modules/nvidia-common/module.build
@@ -1,10 +1,15 @@
#!/bin/bash
fetch_source() {
- local version
+ local version url
mkdir -p src
cde src
for version in $NVIDIA_VERSIONS; do
- download "${REQUIRED_URL//%VERSION%/$version}" "${version}.run"
+ for url in $REQUIRED_URL; do
+ url="${url//%VERSION%/$version}"
+ pinfo "Downloading '$url'"
+ wget -O "${version}.run" "$url" && continue 2
+ done
+ perror "Could not download installer for $version"
done
}
diff --git a/core/modules/nvidia-common/module.conf b/core/modules/nvidia-common/module.conf
index f1327ca8..13c1a5b0 100644
--- a/core/modules/nvidia-common/module.conf
+++ b/core/modules/nvidia-common/module.conf
@@ -1,5 +1,10 @@
#!/bin/bash
-REQUIRED_URL="http://download.nvidia.com/XFree86/Linux-x86_64/%VERSION%/NVIDIA-Linux-x86_64-%VERSION%.run"
+
+#First working URL will be used
+REQUIRED_URL="
+ http://132.230.4.17/install/mltk/NVIDIA-Linux-x86_64-%VERSION%.run
+ http://download.nvidia.com/XFree86/Linux-x86_64/%VERSION%/NVIDIA-Linux-x86_64-%VERSION%.run
+"
REQUIRED_HTML="http://download.nvidia.com/XFree86/Linux-x86_64/%VERSION%/README/supportedchips.html"
REQUIRED_MODULES="