diff options
author | Lenard Spencer <lenardrspencer@gmai.com> | 2020-12-26 11:29:05 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-12-26 11:29:17 +0700 |
commit | 9685fdb8966431b726f4a07d191bb8f147dd713c (patch) | |
tree | c6538780f3077a1dec49d5fe2c973945413a78bd /system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild | |
parent | 0c0be152aa4f11fbe69a06d6224bbcbeeeb6ed9c (diff) |
system/nvidia-legacy390-kernel: Added patches to build for 5.10+.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild')
-rw-r--r-- | system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild b/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild index fba0d38bd0b6d..6737648d36866 100644 --- a/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild +++ b/system/nvidia-legacy390-kernel/nvidia-legacy390-kernel.SlackBuild @@ -29,7 +29,7 @@ PRGNAM=nvidia-legacy390-kernel VERSION=${VERSION:-390.138} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} KERNEL=${KERNEL:-$(uname -r)} @@ -49,10 +49,8 @@ fi if [ "$ARCH" = "i586" ]; then TARGET="x86" - SRCSUFFIX="" elif [ "$ARCH" = "i686" ]; then TARGET="x86" - SRCSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then TARGET="x86_64" fi @@ -79,6 +77,17 @@ 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 {} \; +# Patches for the newer kernels: +patch -p1 < $CWD/patches/kernel-4.16.patch +patch -p1 < $CWD/patches/kernel-5.8.patch +if [ "$TARGET" = "x86" ]; then + patch -p1 < $CWD/patches/kernel-5.9-x86.patch +else + patch -p1 < $CWD/patches/kernel-5.8-license-bypass.patch + patch -p1 < $CWD/patches/kernel-5.9-x86_64.patch +fi +patch -p1 < $CWD/patches/kernel-5.10.patch + (cd kernel || exit 1 make SYSSRC=$KERNELPATH module || exit 1 ) @@ -92,6 +101,10 @@ if [ "$TARGET" = "x86_64" ]; then install -m 0664 kernel/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 +# this file if you have an equivilent entry in /etc/X11/xorg.d + mkdir -p $PKG/usr/share/X11/xorg.conf.d/ cat $TMP/$SRCNAM/nvidia-drm-outputclass.conf > $PKG/usr/share/X11/xorg.conf.d/10-nvidia.conf |