network/rtl8188fu: Build for $KERNEL.

The slackbuild was setting checking $KERNEL, but was not passing
it through to make. I've adjusted this and you can now build the
kernel module after installing a new kernel, even if it is not the
running kernel.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2024-06-23 11:03:30 +09:00 committed by Willy Sudiarto Raharjo
parent 9a79545db5
commit 755c326920
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,3 @@
if [ -x sbin/depmod ]; then
chroot . /sbin/depmod -a 1> /dev/null 2> /dev/null
chroot . /sbin/depmod -a @KERNEL@ 1> /dev/null 2> /dev/null
fi

View file

@ -10,11 +10,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rtl8188fu
VERSION=${VERSION:-1.0+20231018_68ced40}
COMMIT=68ced40d862d13663294496bac2e9a91ffa0e5c7
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
KERNEL=${KERNEL:-$(uname -r)}
KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build}
PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
if [ -z "$ARCH" ]; then
@ -46,7 +47,7 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
make
env -u ARCH make KVER=$KERNEL KDIR=$KERNELPATH
install -D -m0644 rtl8188fu.ko \
$PKG/lib/modules/$KERNEL/kernel/drivers/net/wireless/rtl8188fu.ko
@ -74,7 +75,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE