summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-24 13:46:48 +0100
committerJonathan Bauer2014-03-24 13:46:48 +0100
commit9a89fc12fc005a5cf1eba86f4ae302950266f078 (patch)
tree0f54c42609358a5412eb7db88a1f1c49cdc4d07e /remote
parent[kernel] adapted .build to new kernel functions (diff)
downloadtm-scripts-9a89fc12fc005a5cf1eba86f4ae302950266f078.tar.gz
tm-scripts-9a89fc12fc005a5cf1eba86f4ae302950266f078.tar.xz
tm-scripts-9a89fc12fc005a5cf1eba86f4ae302950266f078.zip
[nvidia_kernel] adapted .build to new kernel functions
Diffstat (limited to 'remote')
-rw-r--r--remote/modules/nvidia_kernel/nvidia_kernel.build3
-rw-r--r--remote/modules/nvidia_kernel/nvidia_kernel.conf3
2 files changed, 4 insertions, 2 deletions
diff --git a/remote/modules/nvidia_kernel/nvidia_kernel.build b/remote/modules/nvidia_kernel/nvidia_kernel.build
index bde06c60..a1275c70 100644
--- a/remote/modules/nvidia_kernel/nvidia_kernel.build
+++ b/remote/modules/nvidia_kernel/nvidia_kernel.build
@@ -7,7 +7,6 @@ fetch_source() {
build() {
local ROOTUPPERDIR="$MODULE_DIR/rootupper"
- local KERNELSRCDIR="$MODULES_DIR/kernel/ksrc" # kernel sources
local NVIDIA="$MODULE_DIR/src/$REQUIRED_NVIDIA"
local NVIDIAEXTRACTDIR="$ROOTUPPERDIR/NVIDIA"
@@ -29,7 +28,7 @@ build() {
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 /"$KERNELSRCDIR" # Do the work!
+ /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
diff --git a/remote/modules/nvidia_kernel/nvidia_kernel.conf b/remote/modules/nvidia_kernel/nvidia_kernel.conf
index 34e66b99..9880100d 100644
--- a/remote/modules/nvidia_kernel/nvidia_kernel.conf
+++ b/remote/modules/nvidia_kernel/nvidia_kernel.conf
@@ -5,3 +5,6 @@ REQUIRED_URL="http://download.nvidia.com/XFree86/Linux-x86_64/$REQUIRED_VERSION/
REQUIRED_DIRECTORIES="
/lib/modules/nvidia
"
+REQUIRED_MODULES="
+ kernel
+"