wok-current view broadcom-wl/receipt @ rev 20286
broadcom-wl: add some kernel compatibility patches from debian
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 02 11:19:24 2018 +0200 (2018-04-02) |
parents | 86d61e110274 |
children | 10a263b71ff0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="5_100_82_112"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
10 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
11 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
12 TAGS="wireless wifi driver"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers xz"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
21 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
22 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 ; do
23 patch -Np1 -i $stuff/$i.patch
24 done
25 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
26 xz wl.ko
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 EXTRAVERSION=_${kvers}
33 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
34 # Compress and install module
35 install -o root -m 0644 $src/wl.ko.xz \
36 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
37 }
39 # Post install/remove commands for Tazpkg.
40 post_install()
41 {
42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
43 }
45 post_remove()
46 {
47 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
48 }