wok-current view broadcom-wl64/receipt @ rev 25644

Fix wrong kernel dep for broadcom-wl64, broadcom-wl-pae
author Stanislas Leduc <shann@slitaz.org>
date Fri Jan 19 16:37:47 2024 +0000 (8 months ago)
parents c783f5e13c30
children 91035b7cc264
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl64"
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_64-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:linux64"
15 DEPENDS="linux64"
16 BUILD_DEPENDS="linux64-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 # Use cross toolchain x86_64
43 export PATH=$PATH:/cross/x86_64/tools/bin
45 KBUILD_NOPEDANTIC=1 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
46 -C /usr/src/linux M=`pwd`
47 xz wl.ko
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 EXTRAVERSION=_${kvers}
54 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless
55 # Compress and install module
56 install -o root -m 0644 $src/wl.ko.xz \
57 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz
58 }
60 # Post install/remove commands for Tazpkg.
61 post_install()
62 {
63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
64 }
66 post_remove()
67 {
68 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
69 }