system/acpi_call: Fix for the newer kernels.

Thanks to giomat on LQ for reporting!

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2018-09-12 14:02:27 +02:00 committed by Robby Workman
parent 1f321d7129
commit 9c0961fd77
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ find -L . \
patch -p0 < $CWD/fix-acpi-include.patch
patch -p0 < $CWD/fix-5.x-kernel.patch
# Fix build with Linux >= 4.12
sed -i 's|asm/uaccess.h|linux/uaccess.h|' acpi_call.c
make KDIR=$KERNELPATH
mkdir -p $PKG/lib/modules/$KERNEL/misc