wok-current view broadcom-wl-pae/receipt @ rev 25673

Up broadcom-wl drivers, add miss driver for mesa-dri (iris, crocus, virtio)
author Stanislas Leduc <shann@slitaz.org>
date Mon Mar 04 16:57:21 2024 +0000 (9 months ago)
parents 0f3d33956b41
children
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 016-linux51.patch
41 017-linux56.patch
42 018-linux59.patch
43 EOT
45 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
46 xz wl.ko
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 EXTRAVERSION=_${kvers}
53 mkdir -p $fs/lib/modules/${kvers}-slitaz-pae/kernel/drivers/net/wireless
54 # Compress and install module
55 install -o root -m 0644 $src/wl.ko.xz \
56 $fs/lib/modules/${kvers}-slitaz-pae/kernel/drivers/net/wireless/wl.ko.xz
57 }
59 # Post install/remove commands for Tazpkg.
60 post_install()
61 {
62 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz-pae
63 }
65 post_remove()
66 {
67 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz-pae
68 }