aboutsummaryrefslogtreecommitdiff
path: root/system/openrazer-kernel
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-05-16 09:31:07 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-21 08:25:02 +0700
commitcf9c38ee0c59a46079d3085be6c7a3e0372ac900 (patch)
treebee233c3b231dd62bdc0f86a8a65ac8937442f34 /system/openrazer-kernel
parent6f958f23e2c6efa423cd74da14e962179dfb16d0 (diff)
system/openrazer-kernel: Allow building for $KERNEL.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/openrazer-kernel')
-rw-r--r--system/openrazer-kernel/openrazer-kernel.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/openrazer-kernel/openrazer-kernel.SlackBuild b/system/openrazer-kernel/openrazer-kernel.SlackBuild
index e4b7f6d82c67..75acf00871f7 100644
--- a/system/openrazer-kernel/openrazer-kernel.SlackBuild
+++ b/system/openrazer-kernel/openrazer-kernel.SlackBuild
@@ -85,11 +85,11 @@ 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 {} \;
-make setup_dkms DESTDIR=$PKG
+make setup_dkms DESTDIR=$PKG KERNELDIR=/lib/modules/$KERNEL/build MODULEDIR=/lib/modules/$KERNEL/kernel/drivers/hid
# Build and install kernel modules
mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/hid
-make -C $PKG/usr/src/$SRCNAM-driver-$VERSION
+make -C $PKG/usr/src/$SRCNAM-driver-$VERSION KERNELDIR=/lib/modules/$KERNEL/build MODULEDIR=/lib/modules/$KERNEL/kernel/drivers/hid
install -m 0664 $PKG/usr/src/$SRCNAM-driver-$VERSION/driver/*.ko $PKG/lib/modules/$KERNEL/kernel/drivers/hid
# Once the modules are built, we don't need to keep the dkms stuff.