aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.