wok-current view broadcom-wl64/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (2 months ago) |
parents | 0f3d33956b41 |
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Use wlan instead eth
23 sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
25 while read file; do
26 [ -f done.$file ] && continue
27 echo "Apply $file..."
28 patch -p1 < $stuff/$file || return 1
29 cp $stuff/$file done.$file
30 done <<EOT
31 001-null-pointer-fix.patch
32 002-rdtscl.patch
33 003-linux47.patch
34 004-linux48.patch
35 005-debian-fix-kernel-warnings.patch
36 006-linux411.patch
37 007-linux412.patch
38 008-linux415.patch
39 009-fix_mac_profile_discrepancy.patch
40 014-linux414.patch
41 017-linux56.patch
42 018-linux59.patch
43 EOT
45 # Use cross toolchain x86_64
46 export PATH=$PATH:/cross/x86_64/tools/bin
48 # linux64-module-headers seem not enought for build module
49 # Use linux kernel source and modules_prepare
50 tar xf $SRC/linux-$kvers.tar.xz
51 cd linux-$kvers
52 cp $WOK/linux/stuff/linux-slitaz.config64 .config
53 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- modules_prepare
54 cp $WOK/linux/install/linux64/usr/src/linux-$kvers-slitaz64/Module.symvers .
55 cd -
57 KBUILD_NOPEDANTIC=1 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
58 -C ./linux-$kvers M=`pwd`
59 xz wl.ko
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 EXTRAVERSION=_${kvers}
66 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless
67 # Compress and install module
68 install -o root -m 0644 $src/wl.ko.xz \
69 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz
70 }
72 # Post install/remove commands for Tazpkg.
73 post_install()
74 {
75 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
76 }
78 post_remove()
79 {
80 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
81 }