wok-current view broadcom-wl/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 (3 months ago)
parents c783f5e13c30
children
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
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"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers xz"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Use wlan instead eth
21 sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
23 while read file; do
24 [ -f done.$file ] && continue
25 echo "Apply $file..."
26 patch -p1 < $stuff/$file || return 1
27 cp $stuff/$file done.$file
28 done <<EOT
29 001-null-pointer-fix.patch
30 002-rdtscl.patch
31 003-linux47.patch
32 004-linux48.patch
33 005-debian-fix-kernel-warnings.patch
34 006-linux411.patch
35 007-linux412.patch
36 008-linux415.patch
37 009-fix_mac_profile_discrepancy.patch
38 014-linux414.patch
39 016-linux51.patch
40 017-linux56.patch
41 018-linux59.patch
42 EOT
44 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
45 xz wl.ko
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 EXTRAVERSION=_${kvers}
52 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
53 # Compress and install module
54 install -o root -m 0644 $src/wl.ko.xz \
55 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
56 }
58 # Post install/remove commands for Tazpkg.
59 post_install()
60 {
61 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
62 }
64 post_remove()
65 {
66 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
67 }