wok-current annotate broadcom-wl64/receipt @ rev 25687
Up expat CVE-2024-28757
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 07:23:20 2024 +0000 (5 months ago) |
parents | 0f3d33956b41 |
children |
rev | line source |
---|---|
pascal@20393 | 1 # SliTaz package receipt. |
pascal@20393 | 2 |
pascal@20393 | 3 PACKAGE="broadcom-wl64" |
shann@25643 | 4 VERSION="6_30_223_271" |
pascal@20393 | 5 CATEGORY="network" |
shann@25643 | 6 MAINTAINER="maintainer@slitaz.org" |
pascal@20393 | 7 LICENSE="other" |
pascal@20393 | 8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers" |
shann@25643 | 9 WEB_SITE="https://www.broadcom.com/support/download-search/?pf=Wireless+LAN+Infrastructure" |
shann@25643 | 10 TARBALL="hybrid-v35_64-nodebug-pcoem-$VERSION.tar.gz" |
shann@25643 | 11 WGET_URL="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/$TARBALL" |
pascal@20393 | 12 TAGS="wireless wifi driver" |
pascal@20393 | 13 PROVIDE="broadcom-wl:linux64" |
pascal@20393 | 14 |
shann@25644 | 15 DEPENDS="linux64" |
shann@25673 | 16 BUILD_DEPENDS="git xz sysfsutils-dev findutils diffutils \ |
shann@25673 | 17 libtool kmod bc elfutils-dev openssl-dev" |
pascal@20393 | 18 |
pascal@20393 | 19 # Rules to configure and make the package. |
pascal@20393 | 20 compile_rules() |
pascal@20393 | 21 { |
shann@25643 | 22 # Use wlan instead eth |
shann@25643 | 23 sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c |
shann@25643 | 24 |
shann@25643 | 25 while read file; do |
shann@25643 | 26 [ -f done.$file ] && continue |
shann@25643 | 27 echo "Apply $file..." |
shann@25643 | 28 patch -p1 < $stuff/$file || return 1 |
shann@25643 | 29 cp $stuff/$file done.$file |
shann@25643 | 30 done <<EOT |
shann@25643 | 31 001-null-pointer-fix.patch |
shann@25643 | 32 002-rdtscl.patch |
shann@25643 | 33 003-linux47.patch |
shann@25643 | 34 004-linux48.patch |
shann@25643 | 35 005-debian-fix-kernel-warnings.patch |
shann@25643 | 36 006-linux411.patch |
shann@25643 | 37 007-linux412.patch |
shann@25643 | 38 008-linux415.patch |
shann@25643 | 39 009-fix_mac_profile_discrepancy.patch |
shann@25643 | 40 014-linux414.patch |
shann@25673 | 41 017-linux56.patch |
shann@25673 | 42 018-linux59.patch |
shann@25643 | 43 EOT |
shann@25643 | 44 |
shann@25643 | 45 # Use cross toolchain x86_64 |
shann@25643 | 46 export PATH=$PATH:/cross/x86_64/tools/bin |
shann@25643 | 47 |
shann@25673 | 48 # linux64-module-headers seem not enought for build module |
shann@25673 | 49 # Use linux kernel source and modules_prepare |
shann@25673 | 50 tar xf $SRC/linux-$kvers.tar.xz |
shann@25673 | 51 cd linux-$kvers |
shann@25673 | 52 cp $WOK/linux/stuff/linux-slitaz.config64 .config |
shann@25673 | 53 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- modules_prepare |
shann@25673 | 54 cp $WOK/linux/install/linux64/usr/src/linux-$kvers-slitaz64/Module.symvers . |
shann@25673 | 55 cd - |
shann@25673 | 56 |
shann@25643 | 57 KBUILD_NOPEDANTIC=1 make ARCH=x86_64 CROSS_COMPILE=x86_64-slitaz-linux- \ |
shann@25673 | 58 -C ./linux-$kvers M=`pwd` |
shann@25643 | 59 xz wl.ko |
pascal@20393 | 60 } |
pascal@20393 | 61 |
pascal@20393 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20393 | 63 genpkg_rules() |
pascal@20393 | 64 { |
shann@25643 | 65 EXTRAVERSION=_${kvers} |
shann@25643 | 66 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless |
shann@25643 | 67 # Compress and install module |
shann@25643 | 68 install -o root -m 0644 $src/wl.ko.xz \ |
shann@25643 | 69 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz |
pascal@20393 | 70 } |
pascal@20393 | 71 |
pascal@20393 | 72 # Post install/remove commands for Tazpkg. |
pascal@20393 | 73 post_install() |
pascal@20393 | 74 { |
shann@25643 | 75 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@20393 | 76 } |
pascal@20393 | 77 |
pascal@20393 | 78 post_remove() |
pascal@20393 | 79 { |
shann@25643 | 80 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@20393 | 81 } |