wok-next rev 2325
Add rt2860sta Wireless module (used on some EeePC)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 28 00:46:15 2009 +0100 (2009-02-28) |
parents | 696b892c24d8 |
children | 7b7ae0225f49 |
files | rt2860sta/receipt rt2860sta/stuff/RT2860-Makefile.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rt2860sta/receipt Sat Feb 28 00:46:15 2009 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="rt2860sta" 1.7 +VERSION="1.8.0.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Kernel module rt2860sta (Wireless driver used on EeePC)." 1.10 +DEPENDS="linux wireless_tools" 1.11 +BUILD_DEPENDS="linux-source" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +MAINTAINER="pankso@slitaz.org" 1.14 +WEB_SITE="http://www.ralinktech.com/ralink/Home/Support/Linux.html" 1.15 +WGET_URL="http://mirror.slitaz.org/sources/packages/r/$TARBALL" 1.16 +KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.17 +EXTRAVERSION=_${KVER} 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + patch -p0 < ../stuff/RT2860-Makefile.patch || exit 1 1.24 + make 1.25 + find $src/os/linux -name "*.ko" -exec lzma e '{}' '{}'.gz \; 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860 1.32 + cp $src/os/linux/rt2860sta.ko.gz \ 1.33 + $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860 1.34 +} 1.35 + 1.36 +post_install() 1.37 +{ 1.38 + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz 1.39 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/rt2860sta/stuff/RT2860-Makefile.patch Sat Feb 28 00:46:15 2009 +0100 2.3 @@ -0,0 +1,20 @@ 2.4 +--- Makefile Thu Sep 18 04:26:56 2008 2.5 ++++ Makefile Thu Feb 26 01:16:24 2009 2.6 +@@ -136,16 +136,7 @@ 2.7 + endif 2.8 + else 2.9 + cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile 2.10 +- make -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules 2.11 +-ifeq ($(RT28xx_MODE),AP) 2.12 +- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)ap.ko /tftpboot 2.13 +-else 2.14 +-ifeq ($(RT28xx_MODE),APSTA) 2.15 +- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)apsta.ko /tftpboot 2.16 +-else 2.17 +- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko /tftpboot 2.18 +-endif 2.19 +-endif 2.20 ++ make -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules 2.21 + endif 2.22 + 2.23 + clean: