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

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago)
parents 91035b7cc264
children
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="git xz sysfsutils-dev findutils diffutils \
17 libtool kmod bc elfutils-dev openssl-dev"
19 HOST_ARCH="i486 x86_64"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # Use wlan instead eth
25 sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
27 while read file; do
28 [ -f done.$file ] && continue
29 echo "Apply $file..."
30 patch -p1 < $stuff/$file || return 1
31 cp $stuff/$file done.$file
32 done <<EOT
33 001-null-pointer-fix.patch
34 002-rdtscl.patch
35 003-linux47.patch
36 004-linux48.patch
37 005-debian-fix-kernel-warnings.patch
38 006-linux411.patch
39 007-linux412.patch
40 008-linux415.patch
41 009-fix_mac_profile_discrepancy.patch
42 014-linux414.patch
43 017-linux56.patch
44 018-linux59.patch
45 EOT
47 # Use cross toolchain x86_64
48 export PATH=$PATH:/cross/x86_64/tools/bin
50 # linux64-module-headers seem not enought for build module
51 # Use linux kernel source and modules_prepare
52 tar xf $SRC/linux-$kvers.tar.xz
53 cd linux-$kvers
54 cp $WOK/linux/stuff/linux-slitaz.config64 .config
55 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- modules_prepare
56 cp $WOK/linux/install/linux64/usr/src/linux-$kvers-slitaz64/Module.symvers .
57 cd -
59 KBUILD_NOPEDANTIC=1 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
60 -C ./linux-$kvers M=`pwd`
61 xz wl.ko
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 EXTRAVERSION=_${kvers}
68 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless
69 # Compress and install module
70 install -o root -m 0644 $src/wl.ko.xz \
71 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz
72 }
74 # Post install/remove commands for Tazpkg.
75 post_install()
76 {
77 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
78 }
80 post_remove()
81 {
82 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
83 }