diff options
author | Edward W. Koenig <kingbeowulf@gmail.com> | 2015-12-30 18:43:00 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-30 18:43:00 +0700 |
commit | ee6758bf9b86f4074b290f525a4d40b9935db8ce (patch) | |
tree | 3495cbe0a2d7132b66cd9338630f8559f1b64be3 /system/nvidia-kernel | |
parent | fe5017026065094906bdd993eff08b2a4f5e5142 (diff) |
system/nvidia-kernel: Fix crash on x86 architecture.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-kernel')
-rw-r--r-- | system/nvidia-kernel/nvidia-kernel.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/system/nvidia-kernel/nvidia-kernel.SlackBuild b/system/nvidia-kernel/nvidia-kernel.SlackBuild index 8932f1abb3058..1d12dbd730c72 100644 --- a/system/nvidia-kernel/nvidia-kernel.SlackBuild +++ b/system/nvidia-kernel/nvidia-kernel.SlackBuild @@ -29,7 +29,7 @@ PRGNAM=nvidia-kernel VERSION=${VERSION:-352.63} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} KERNEL=${KERNEL:-$(uname -r)} @@ -79,15 +79,20 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Nvidia removed uvm module from 32-bit (cd kernel || exit 1 make SYSSRC=$KERNELPATH module || exit 1 - cd uvm - make SYSSRC=$KERNELPATH module || exit 1 + if [ "$ARCH" = "x86_64" ]; then + cd uvm + make SYSSRC=$KERNELPATH module || exit 1 + fi ) mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video install -m 0664 kernel/nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ -install -m 0664 kernel/uvm/nvidia-uvm.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ +if [ "$ARCH" = "x86_64" ]; then + install -m 0664 kernel/uvm/nvidia-uvm.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/ +fi # Make sure the X is specified to automagically load the # correct driver, since I always forget. You can remove |