# HG changeset patch # User Christophe Lincoln # Date 1235778375 -3600 # Node ID 5764ab6c83b0057bf99488bcfde809c3583dde58 # Parent 696b892c24d86a573f212b41b7c42e0dd9bd8047 Add rt2860sta Wireless module (used on some EeePC) diff -r 696b892c24d8 -r 5764ab6c83b0 rt2860sta/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rt2860sta/receipt Sat Feb 28 00:46:15 2009 +0100 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="rt2860sta" +VERSION="1.8.0.0" +CATEGORY="system-tools" +SHORT_DESC="Kernel module rt2860sta (Wireless driver used on EeePC)." +DEPENDS="linux wireless_tools" +BUILD_DEPENDS="linux-source" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://www.ralinktech.com/ralink/Home/Support/Linux.html" +WGET_URL="http://mirror.slitaz.org/sources/packages/r/$TARBALL" +KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'` +EXTRAVERSION=_${KVER} + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p0 < ../stuff/RT2860-Makefile.patch || exit 1 + make + find $src/os/linux -name "*.ko" -exec lzma e '{}' '{}'.gz \; +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860 + cp $src/os/linux/rt2860sta.ko.gz \ + $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860 +} + +post_install() +{ + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz +} diff -r 696b892c24d8 -r 5764ab6c83b0 rt2860sta/stuff/RT2860-Makefile.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rt2860sta/stuff/RT2860-Makefile.patch Sat Feb 28 00:46:15 2009 +0100 @@ -0,0 +1,20 @@ +--- Makefile Thu Sep 18 04:26:56 2008 ++++ Makefile Thu Feb 26 01:16:24 2009 +@@ -136,16 +136,7 @@ + endif + else + cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile +- make -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules +-ifeq ($(RT28xx_MODE),AP) +- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)ap.ko /tftpboot +-else +-ifeq ($(RT28xx_MODE),APSTA) +- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)apsta.ko /tftpboot +-else +- cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko /tftpboot +-endif +-endif ++ make -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules + endif + + clean: