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

Mass update to fix build with gcc10 and up others packages
author Stanislas Leduc <shann@slitaz.org>
date Tue Sep 30 07:43:04 2025 +0000 (4 weeks ago)
parents 5926178cd6fa
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 fix_time_macros_gcc10.patch
46 EOT
48 # Use cross toolchain x86_64
49 export PATH=$PATH:/cross/x86_64/tools/bin
51 # linux64-module-headers seem not enought for build module
52 # Use linux kernel source and modules_prepare
53 tar xf $SRC/linux-$kvers.tar.xz
54 cd linux-$kvers
55 cp $WOK/linux/stuff/linux-slitaz.config64 .config
56 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- modules_prepare
57 cp $WOK/linux/install/linux64/usr/src/linux-$kvers-slitaz64/Module.symvers .
58 cd -
60 KBUILD_NOPEDANTIC=1 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \
61 -C ./linux-$kvers M=`pwd`
62 xz wl.ko
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 EXTRAVERSION=_${kvers}
69 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless
70 # Compress and install module
71 install -o root -m 0644 $src/wl.ko.xz \
72 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz
73 }
75 # Post install/remove commands for Tazpkg.
76 post_install()
77 {
78 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
79 }
81 post_remove()
82 {
83 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
84 }