wok-current annotate broadcom-wl/receipt @ rev 13215

broadcom-wl: update compile-rules for rescent kernels
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 10 17:00:01 2012 +0200 (2012-08-10)
parents 7759df4ad853
children ab6b8c6c469c
rev   line source
jozee@4487 1 # SliTaz package receipt.
jozee@4487 2
jozee@4487 3 PACKAGE="broadcom-wl"
pascal@12764 4 VERSION="5_100_82_112"
jozee@4487 5 CATEGORY="network"
jozee@4487 6 MAINTAINER="jozee@slitaz.org"
jozee@4487 7 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
jozee@4487 8 DEPENDS="linux"
slaxemulator@7133 9 BUILD_DEPENDS="linux-module-headers"
jozee@4487 10 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
pascal@12768 11 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
jozee@4487 12 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
jozee@4932 13 TAGS="wireless wifi driver"
jozee@4487 14
jozee@4487 15 # Rules to configure and make the package.
jozee@4487 16
jozee@4487 17 compile_rules() {
jozee@4487 18
jozee@4487 19 cd $WOK/$PACKAGE
jozee@4487 20 mkdir -p $PACKAGE-$VERSION
jozee@4487 21 mv lib src Makefile $PACKAGE-$VERSION
jozee@4487 22 cd $src
pascal@13215 23 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
pascal@5446 24 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
pankso@9699 25 patch -Np1 -i $stuff/semaphore.patch
slaxemulator@7133 26 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
jozee@4487 27 }
jozee@4487 28
jozee@4487 29 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4487 30 genpkg_rules()
jozee@4487 31 {
jozee@4487 32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
jozee@4487 33 EXTRAVERSION=_$KERNEL_VERSION
jozee@4487 34
jozee@4487 35 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
jozee@4487 36
jozee@4487 37 # Compress and install module
jozee@4487 38 lzma e $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
jozee@4487 39 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
jozee@4487 40 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
jozee@4487 41 }
jozee@4487 42
jozee@4487 43 # Post install/remove commands for Tazpkg.
jozee@4487 44 post_install()
jozee@4487 45 {
jozee@4487 46 echo "Processing post-install commands..."
jozee@4487 47 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4487 48 }
jozee@4487 49
jozee@4487 50 post_remove()
jozee@4487 51 {
jozee@4487 52 echo "Processing post-remove commands..."
slaxemulator@8308 53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4487 54 }