summaryrefslogtreecommitdiffstats
path: root/remote/modules/nvidia_kernel
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/nvidia_kernel')
-rw-r--r--remote/modules/nvidia_kernel/nvidia_kernel.build55
-rw-r--r--remote/modules/nvidia_kernel/nvidia_kernel.conf10
2 files changed, 0 insertions, 65 deletions
diff --git a/remote/modules/nvidia_kernel/nvidia_kernel.build b/remote/modules/nvidia_kernel/nvidia_kernel.build
deleted file mode 100644
index a1275c70..00000000
--- a/remote/modules/nvidia_kernel/nvidia_kernel.build
+++ /dev/null
@@ -1,55 +0,0 @@
-fetch_source() {
- mkdir -p src 2>/dev/null
- cd src || perror "Could not change into src directory."
- download "$REQUIRED_URL"
-}
-
-build() {
- local ROOTUPPERDIR="$MODULE_DIR/rootupper"
-
- local NVIDIA="$MODULE_DIR/src/$REQUIRED_NVIDIA"
- local NVIDIAEXTRACTDIR="$ROOTUPPERDIR/NVIDIA"
-
- [ -d "$NVIDIAEXTRACTDIR" ] && rm -rf "$NVIDIAEXTRACTDIR"
- pinfo "Unpacking NVidia archive ($NVIDIA) ..."
- sh "$NVIDIA" --extract-only --target "$NVIDIAEXTRACTDIR" || perror "Could not extract $NVIDIA to $NVIDIAEXTRACTDIR."
-
- pinfo "Ready to chroot - compiling may take some time."
- pdebug "--- chroot ---------------------------------------------------------------------"
- pdebug "- -"
- pdebug "- Notice: This may take a while! -"
- pdebug "- -"
- pdebug "- Please keep note the Nvidia installer _will_ complain about -"
- pdebug "- several warnings and errors. It will do this in any case. -"
- pdebug "- -"
- pdebug "- This does _not_ mean the kernel module compilation was unsuccessful! -"
- pdebug "- -"
- pdebug "--------------------------------------------------------------------------------"
-
-
- chroot_run "$ROOTUPPERDIR" <<-EOF
- /NVIDIA/nvidia-installer --no-nouveau-check --no-network --no-backup --no-rpms --no-runlevel-check --no-distro-scripts --no-cc-version-check --no-x-check --no-precompiled-interface --silent --kernel-source-path /"$KERNEL_HEADERS_PATH" # Do the work!
- # fake success since the installer will exit with an error due to the module not loading properly.
- exit 0
- EOF
- pinfo "chroot terminated."
-
- pinfo "Stripping kernel modules..."
- strip -g "$ROOTUPPERDIR/NVIDIA/kernel/nvidia.ko" || \
- pwarning "Could not strip kernel module $ROOTUPPERDIR/NVIDIA/kernel/nvidia.ko."
- strip -g "$ROOTUPPERDIR/NVIDIA/kernel/uvm/nvidia-uvm.ko" || \
- pwarning "Could not strip kernel module $ROOTUPPERDIR/NVIDIA/kernel/uvm/nvidia-uvm.ko."
-
- pinfo "Copying kernel modules..."
- local NVIDIA_MODULES="$MODULE_BUILD_DIR/lib/modules/nvidia/"
- mkdir -p "$NVIDIA_MODULES"
- cp "$ROOTUPPERDIR/NVIDIA/kernel/nvidia.ko" "$NVIDIA_MODULES" || perror "Could not copy nvidia.ko!"
- cp "$ROOTUPPERDIR/NVIDIA/kernel/uvm/nvidia-uvm.ko" "$NVIDIA_MODULES" || perror "Could not copy nvidia-uvm.ko!"
-
- rm -rf "$MODULE_BUILD_DIR/NVIDIA"
-}
-
-post_copy() {
- :
-}
-
diff --git a/remote/modules/nvidia_kernel/nvidia_kernel.conf b/remote/modules/nvidia_kernel/nvidia_kernel.conf
deleted file mode 100644
index 9880100d..00000000
--- a/remote/modules/nvidia_kernel/nvidia_kernel.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-REQUIRED_VERSION="331.38"
-REQUIRED_NVIDIA="NVIDIA-Linux-x86_64-$REQUIRED_VERSION.run"
-REQUIRED_URL="http://download.nvidia.com/XFree86/Linux-x86_64/$REQUIRED_VERSION/$REQUIRED_NVIDIA"
-
-REQUIRED_DIRECTORIES="
- /lib/modules/nvidia
-"
-REQUIRED_MODULES="
- kernel
-"