wok-current view broadcom-wl-pae/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | c783f5e13c30 |
children | 91035b7cc264 |
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl-pae"
4 VERSION="6_30_223_271"
5 CATEGORY="network"
6 MAINTAINER="maintainer@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
9 WEB_SITE="https://www.broadcom.com/support/download-search/?pf=Wireless+LAN+Infrastructure"
10 TARBALL="hybrid-v35-nodebug-pcoem-$VERSION.tar.gz"
11 WGET_URL="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$TARBALL"
12 TAGS="wireless wifi driver"
13 PROVIDE="broadcom-wl:linux-pae"
15 DEPENDS="linux-pae"
16 BUILD_DEPENDS="linux-pae-module-headers xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Use wlan instead eth
22 sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
24 while read file; do
25 [ -f done.$file ] && continue
26 echo "Apply $file..."
27 patch -p1 < $stuff/$file || return 1
28 cp $stuff/$file done.$file
29 done <<EOT
30 001-null-pointer-fix.patch
31 002-rdtscl.patch
32 003-linux47.patch
33 004-linux48.patch
34 005-debian-fix-kernel-warnings.patch
35 006-linux411.patch
36 007-linux412.patch
37 008-linux415.patch
38 009-fix_mac_profile_discrepancy.patch
39 014-linux414.patch
40 EOT
42 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
43 xz wl.ko
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 EXTRAVERSION=_${kvers}
50 mkdir -p $fs/lib/modules/${kvers}-slitaz-pae/kernel/drivers/net/wireless
51 # Compress and install module
52 install -o root -m 0644 $src/wl.ko.xz \
53 $fs/lib/modules/${kvers}-slitaz-pae/kernel/drivers/net/wireless/wl.ko.xz
54 }
56 # Post install/remove commands for Tazpkg.
57 post_install()
58 {
59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz-pae
60 }
62 post_remove()
63 {
64 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz-pae
65 }