mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
network/broadcom-sta: Patched to fix build on newer kernels
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
0dbc3a5839
commit
732050978d
2 changed files with 24 additions and 1 deletions
21
network/broadcom-sta/bc_wl_abiupdate.patch
Normal file
21
network/broadcom-sta/bc_wl_abiupdate.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- a/src/wl/sys/wl_linux.c 2009-06-19 12:30:52.000000000 -0500
|
||||
+++ b/src/wl/sys/wl_linux.c 2011-01-11 22:21:10.623044411 -0600
|
||||
|
||||
332c332
|
||||
< .ndo_set_multicast_list = wl_set_multicast_list,
|
||||
---
|
||||
> .ndo_set_rx_mode = wl_set_multicast_list,
|
||||
|
||||
|
||||
--- a/src/wl/sys/wl_linux.c
|
||||
+++ b/src/wl/sys/wl_linux.c
|
||||
@@ -40,7 +40,9 @@
|
||||
#include <linux/pci_ids.h>
|
||||
#define WLC_MAXBSSCFG 1
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
|
||||
#include <asm/system.h>
|
||||
+#endif
|
||||
#include <asm/io.h>
|
||||
#include <asm/irq.h>
|
||||
#include <asm/pgtable.h>
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
PRGNAM=broadcom-sta
|
||||
VERSION=5.100.82.112
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
KERNEL=${KERNEL:-$(uname -r)}
|
||||
|
@ -42,6 +42,8 @@ mkdir -p $TMP $WORKDIR $PKG $OUTPUT
|
|||
cd $WORKDIR
|
||||
tar xvf $CWD/hybrid-portsrc_${MY_ARCH}-v$(printf $VERSION|tr . _).tar.gz
|
||||
|
||||
patch -p1 < $CWD/bc_wl_abiupdate.patch
|
||||
|
||||
# Build the module
|
||||
make -C /lib/modules/$KERNEL/build M=$WORKDIR clean
|
||||
make -C /lib/modules/$KERNEL/build M=$WORKDIR
|
||||
|
|
Loading…
Reference in a new issue