aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy340-kernel
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-05-16 14:11:03 +0200
committerMatteo Bernardini <ponce@slackbuilds.org>2022-05-16 14:11:03 +0200
commit8e316f74b7ec8aebe3fd786fcea11bcedc936676 (patch)
tree871eea0af832e9c9581e064e0c4809c4b05ba9f7 /system/nvidia-legacy340-kernel
parentdaf6a07fb29d07e32f567d8cdb5946d39090faa2 (diff)
system/nvidia-legacy340-kernel: Fix package ARCH.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy340-kernel')
-rw-r--r--system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild b/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
index 8700e2a20a23..7d33eb34d14d 100644
--- a/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
+++ b/system/nvidia-legacy340-kernel/nvidia-legacy340-kernel.SlackBuild
@@ -58,15 +58,13 @@ elif [ "$ARCH" = "x86_64" ]; then
TARGET="x86_64"
fi
-unset ARCH
-
SRCNAM=NVIDIA-Linux-$TARGET-${VERSION}
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.$PKGTYPE"
+ echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -91,7 +89,9 @@ find -L . \
for i in $CWD/patches/* ; do patch -p1 < $i ; done
-(cd kernel || exit 1
+(
+ unset ARCH
+ 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
@@ -124,4 +124,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.$PKGTYPE
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE