aboutsummaryrefslogtreecommitdiff
path: root/network/rtl8812bu
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2023-07-30 18:11:01 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-08-05 10:08:47 +0700
commit1f6356d860aba5161fca9eb08cba68fd0368bc38 (patch)
tree5fbc80106463ce18e8df43e6bbce06890168572d /network/rtl8812bu
parenta618920ebfad48393fcba047ad0a0364d72a056b (diff)
network/rtl8812bu: Fix 32bit build.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/rtl8812bu')
-rw-r--r--network/rtl8812bu/rtl8812bu.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/network/rtl8812bu/rtl8812bu.SlackBuild b/network/rtl8812bu/rtl8812bu.SlackBuild
index e09952ae9f552..3993198d61063 100644
--- a/network/rtl8812bu/rtl8812bu.SlackBuild
+++ b/network/rtl8812bu/rtl8812bu.SlackBuild
@@ -52,7 +52,13 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
export KVER=$KERNEL
-env -u ARCH make
+if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ] ; then
+ # auto detect in the Makefile does not work and sets ARCH to `uname -m`, but
+ # it only builds if it is set to i386
+ ARCH=i386 make
+else
+ env -u ARCH make
+fi
install -D -m0644 88x2bu.ko \
$PKG/lib/modules/$KERNEL/kernel/drivers/net/wireless/88x2bu.ko