wok-next annotate broadcom-wl/receipt @ rev 20194

Up irrlicht (1.8.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 03 11:27:16 2017 +0100 (2017-11-03)
parents 86d61e110274
children d247e85339a4
rev   line source
jozee@4487 1 # SliTaz package receipt.
jozee@4487 2
jozee@4487 3 PACKAGE="broadcom-wl"
pascal@19730 4 VERSION="6_30_223_271"
jozee@4487 5 CATEGORY="network"
jozee@4487 6 MAINTAINER="jozee@slitaz.org"
pascal@15610 7 LICENSE="other"
jozee@4487 8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
jozee@4487 9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
pascal@19730 10 TARBALL="hybrid-v35-nodebug-pcoem-$VERSION.tar.gz"
pascal@19730 11 WGET_URL="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$TARBALL"
jozee@4932 12 TAGS="wireless wifi driver"
jozee@4487 13
pascal@15056 14 DEPENDS="linux"
pascal@15056 15 BUILD_DEPENDS="linux-module-headers xz"
pascal@15056 16
jozee@4487 17 # Rules to configure and make the package.
pascal@15056 18 compile_rules()
pascal@15056 19 {
pascal@19730 20 sed -i 's/IEEE80211_BAND_/NL80211_BAND_/g' src/wl/sys/wl_cfg80211_hybrid.c
pascal@19730 21 sed -i 's/rdtscl(cycles)/cycles = (u32)rdtsc()/' src/shared/linux_osl.c # for kernel > 4.3.0
slaxemulator@7133 22 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
pascal@15621 23 xz wl.ko
jozee@4487 24 }
jozee@4487 25
jozee@4487 26 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4487 27 genpkg_rules()
jozee@4487 28 {
pankso@15855 29 EXTRAVERSION=_${kvers}
pankso@15855 30 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
jozee@4487 31 # Compress and install module
pankso@15855 32 install -o root -m 0644 $src/wl.ko.xz \
pankso@15855 33 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
jozee@4487 34 }
jozee@4487 35
jozee@4487 36 # Post install/remove commands for Tazpkg.
jozee@4487 37 post_install()
jozee@4487 38 {
al@18673 39 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4487 40 }
jozee@4487 41
jozee@4487 42 post_remove()
jozee@4487 43 {
al@18673 44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4487 45 }