wok-6.x rev 4588
Add linmodem-intel536ep
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Dec 10 13:28:03 2009 +0000 (2009-12-10) |
parents | af5f033d754f |
children | a08d80807ccd |
files | linmodem-intel-536ep/receipt linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.30.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linmodem-intel-536ep/receipt Thu Dec 10 13:28:03 2009 +0000 1.3 @@ -0,0 +1,60 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linmodem-intel-536ep" 1.7 +VERSION="2.56.76.0" 1.8 +CATEGORY="network" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="Intel Modem Drivers for 536EP chipset" 1.11 +BUILD_DEPENDS="linux lzma" 1.12 +WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/" 1.13 +TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2" 1.14 +WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL" 1.15 +TAGS="" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 + 1.19 +compile_rules() { 1.20 + 1.21 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.22 + [ -d $WOK/linux/taz ] || tazwok cook linux 1.23 + cd $WOK/$PACKAGE/intel-536-537 1.24 + 1.25 + while read file; do 1.26 + [ -f done.$file ] && continue 1.27 + echo "Apply $file..." 1.28 + patch -p1 < ../stuff/$PACKAGE-$file || return 1 1.29 + touch done.$file 1.30 + done <<EOT 1.31 +kernel-2.6.30.patch 1.32 +EOT 1.33 + # Bypass linux source package check 1.34 + sed -i 's/@bash config_check/#@bash config_check/' makefile 1.35 + make KERNEL_SOURCE_PATH=$WOK/linux/linux-$KERNEL_VERSION KDIR=$WOK/linux/linux-$KERNEL_VERSION MODEM_TYPE=536 536 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.42 + EXTRAVERSION=_$KERNEL_VERSION 1.43 + 1.44 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.45 + 1.46 + # Compress and install module 1.47 + lzma e $WOK/$PACKAGE/intel-536-537/Intel536.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.48 + chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.49 + chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.50 +} 1.51 + 1.52 +post_install() 1.53 +{ 1.54 + echo "Processing post-install commands..." 1.55 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.56 +} 1.57 + 1.58 +post_remove() 1.59 +{ 1.60 + echo "Processing post-remove commands..." 1.61 + depmod -a 1.62 +} 1.63 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.30.patch Thu Dec 10 13:28:03 2009 +0000 2.3 @@ -0,0 +1,20 @@ 2.4 +--- intel-536-537/coredrv/softserial.c.orig Fri Jul 3 17:58:30 2009 2.5 ++++ intel-536-537/coredrv/softserial.c Thu Nov 5 16:26:13 2009 2.6 +@@ -362,7 +362,7 @@ 2.7 + { 2.8 + if( (ptty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && 2.9 + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26) 2.10 +- (ptty->ldisc.ops->write_wakeup != NULL)) 2.11 ++ (ptty->ldisc->ops->write_wakeup != NULL)) 2.12 + #else 2.13 + (ptty->ldisc.write_wakeup != NULL)) 2.14 + #endif 2.15 +@@ -371,7 +371,7 @@ 2.16 + printk("ss_bg_eh:ldisc wakeup\n"); 2.17 + #endif 2.18 + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26) 2.19 +- (ptty->ldisc.ops->write_wakeup)(ptty); 2.20 ++ (ptty->ldisc->ops->write_wakeup)(ptty); 2.21 + #else 2.22 + (ptty->ldisc.write_wakeup)(ptty); 2.23 + #endif