diff options
-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 8932f1abb3..1d12dbd730 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 |