aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-05-14 19:58:58 +0200
committerMatteo Bernardini <ponce@slackbuilds.org>2022-05-14 19:58:58 +0200
commitdaf6a07fb29d07e32f567d8cdb5946d39090faa2 (patch)
tree7c0296c9ed1f3c4fa0963b8594ba6232bcce614a /system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
parent73c827ffdc0a7d7133a81f57d98527af17084b75 (diff)
system/nvidia-legacy340-kernel: Patch for the newer kernels.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild')
-rw-r--r--system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild b/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
index f4d17cc03d06a..8700e2a20a238 100644
--- a/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
+++ b/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
@@ -74,6 +74,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
@@ -90,6 +92,7 @@ find -L . \
for i in $CWD/patches/* ; do patch -p1 < $i ; done
(cd kernel || exit 1
+ sed -i "s|-DNDEBUG$|-DNDEBUG -Wno-error=return-type -Wno-error=implicit-function-declaration|" Makefile
make SYSSRC=$KERNELPATH module || exit 1
cd uvm
sed -i "s|-O2$|-O2 -Wno-error=incompatible-pointer-types|" Makefile