aboutsummaryrefslogtreecommitdiff
path: root/network/broadcom-sta/broadcom-sta.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-03-09 12:38:55 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-03-20 14:08:07 -0500
commit40bff32947b78638eb9bad140d533ee8f067f04e (patch)
tree0ec2520977476ccace87fb1dad2cf6fd878efd6e /network/broadcom-sta/broadcom-sta.SlackBuild
parent21cbd209c6bda1507a527c0908b18ef909e2899f (diff)
network/broadcom-sta: Fixed build with 2.6.37.x kernels
http://bugs.gentoo.org/350196 Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/broadcom-sta/broadcom-sta.SlackBuild')
-rw-r--r--network/broadcom-sta/broadcom-sta.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/network/broadcom-sta/broadcom-sta.SlackBuild b/network/broadcom-sta/broadcom-sta.SlackBuild
index f9fc7e57d9847..c6e96516b59eb 100644
--- a/network/broadcom-sta/broadcom-sta.SlackBuild
+++ b/network/broadcom-sta/broadcom-sta.SlackBuild
@@ -5,7 +5,7 @@
PRGNAM=broadcom-sta
VERSION=5.100.82.38
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
@@ -42,6 +42,9 @@ mkdir -p $TMP $WORKDIR $PKG $OUTPUT
cd $WORKDIR
tar xvf $CWD/hybrid-portsrc_${MY_ARCH}-v$(printf $VERSION|tr . _).tar.gz
+# Fix API change in newer kernels
+patch -p1 < $CWD/wl_linux.c-semaphore.patch
+
# Build the module
make -C /lib/modules/$KERNEL/build M=$WORKDIR clean
make -C /lib/modules/$KERNEL/build M=$WORKDIR