wok-next view broadcom-wl/receipt @ rev 21244
updated coova-chilli again (1.3.0 -> 1.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 15:20:58 2019 +0100 (2019-12-05) |
parents | d247e85339a4 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="6_30_223_271"
5 EXTRAVERSION="_$kvers"
6 CATEGORY="network"
7 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://www.broadcom.com/support/download-search/?pf=Wireless+LAN+Infrastructure"
12 TARBALL="hybrid-v35-nodebug-pcoem-$VERSION.tar.gz"
13 WGET_URL="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$TARBALL"
15 BUILD_DEPENDS="linux-module-headers xz"
17 compile_rules() {
18 sed -i 's/IEEE80211_BAND_/NL80211_BAND_/g' src/wl/sys/wl_cfg80211_hybrid.c
19 sed -i 's/rdtscl(cycles)/cycles = (u32)rdtsc()/' src/shared/linux_osl.c # for kernel > 4.3.0
21 KBUILD_NOPEDANTIC=1 \
22 make -C /usr/src/linux M=$(pwd)
23 xz wl.ko
24 }
26 genpkg_rules() {
27 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/wireless
28 # Compress and install module
29 install -o root -m 0644 $src/wl.ko.xz \
30 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/wireless/wl.ko.xz
31 DEPENDS="linux"
32 TAGS="wireless wifi driver"
33 }
35 post_install() {
36 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
37 }
39 post_remove() {
40 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
41 }