system/nvidia-kernel: Fix crash on x86 architecture.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edward W. Koenig 2015-12-30 18:43:00 +07:00 committed by Willy Sudiarto Raharjo
parent fe50170260
commit ee6758bf9b

View file

@ -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