mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/nvidia-kernel: Fix crash on x86 architecture.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
fe50170260
commit
ee6758bf9b
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue