diff --git a/packages/linux-drivers/asix-ax887xx/build b/packages/linux-drivers/asix-ax887xx/build new file mode 100755 index 0000000000..6af8ed7859 --- /dev/null +++ b/packages/linux-drivers/asix-ax887xx/build @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD + make V=1 CC=$CC KDIR=$(kernel_path) \ No newline at end of file diff --git a/packages/linux-drivers/asix-ax887xx/install b/packages/linux-drivers/asix-ax887xx/install new file mode 100755 index 0000000000..22d7f9193e --- /dev/null +++ b/packages/linux-drivers/asix-ax887xx/install @@ -0,0 +1,33 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +VER=`ls $BUILD/linux*/modules/lib/modules` + +mkdir -p $INSTALL/lib/modules/$VER/asix-ax887xx + cp $PKG_BUILD/asix.ko $INSTALL/lib/modules/$VER/asix-ax887xx + +$ROOT/$TOOLCHAIN/sbin/depmod -b $INSTALL $VER > /dev/null +for i in `ls $INSTALL/lib/modules/*/modules.* | grep -v modules.dep | grep -v modules.alias | grep -v modules.symbols`; do + rm -f $i +done diff --git a/packages/linux-drivers/asix-ax887xx/meta b/packages/linux-drivers/asix-ax887xx/meta new file mode 100644 index 0000000000..ca5f5d3835 --- /dev/null +++ b/packages/linux-drivers/asix-ax887xx/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="asix-ax887xx" +PKG_VERSION="4.1.0" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.asix.com.tw" +PKG_URL="$OPENELEC_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain linux busybox-hosttools" +PKG_PRIORITY="optional" +PKG_SECTION="driver" +PKG_SHORTDESC="asix-ax887xx: ASIX AX88772B/772A/760/772/178 Linux USB LANDriver" +PKG_LONGDESC="ASIX AX88772B/772A/760/772/178 Linux USB LANDriver" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/linux-drivers/asix-ax887xx/need_unpack b/packages/linux-drivers/asix-ax887xx/need_unpack new file mode 100755 index 0000000000..5d6df529ff --- /dev/null +++ b/packages/linux-drivers/asix-ax887xx/need_unpack @@ -0,0 +1,32 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +STAMP=$STAMPS/$1/unpack + +test $PKG_DIR/config/linux.$TARGET_ARCH.conf -nt $STAMP -o \ + $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf -nt $STAMP -o \ + $PKG_DIR/url -nt $STAMP -o \ + $PKG_DIR/meta -nt $STAMP && rm -f $STAMP + +exit 0 diff --git a/packages/linux-drivers/asix-ax887xx/patches/asix-ax887xx-4.1.0-Makefile.patch b/packages/linux-drivers/asix-ax887xx/patches/asix-ax887xx-4.1.0-Makefile.patch new file mode 100644 index 0000000000..9f28af7795 --- /dev/null +++ b/packages/linux-drivers/asix-ax887xx/patches/asix-ax887xx-4.1.0-Makefile.patch @@ -0,0 +1,12 @@ +diff -Naur asix-ax887xx-4.1.0/Makefile asix-ax887xx-4.1.0.patch/Makefile +--- asix-ax887xx-4.1.0/Makefile 2011-02-22 01:54:38.000000000 +0100 ++++ asix-ax887xx-4.1.0.patch/Makefile 2011-06-14 03:58:46.714369862 +0200 +@@ -2,7 +2,7 @@ + TARGET = asix + OBJS = asix.o + MDIR = drivers/net/usb +-KDIR = /lib/modules/$(CURRENT)/build ++KDIR := /lib/modules/$(CURRENT)/build + SUBLEVEL= $(shell uname -r | cut -d '.' -f 3 | cut -d '.' -f 1 | cut -d '-' -f 1 | cut -d '_' -f 1) + + ifneq (,$(filter $(SUBLEVEL),14 15 16 17 18 19 20 21)) diff --git a/packages/linux-drivers/install b/packages/linux-drivers/install index c2c754f9b8..b9b3b4dd2f 100755 --- a/packages/linux-drivers/install +++ b/packages/linux-drivers/install @@ -23,6 +23,7 @@ . config/options for drivers in "$ADDITIONAL_DRIVERS"; do + [ $drivers = asix-ax887xx ] && $SCRIPTS/install asix-ax887xx [ $drivers = bcm_sta ] && $SCRIPTS/install bcm_sta [ $drivers = rtl8192se ] && $SCRIPTS/install rtl8192se done diff --git a/projects/ATV/linux/linux.i386.conf b/projects/ATV/linux/linux.i386.conf index 3661a5c1c5..15cb1a5375 100644 --- a/projects/ATV/linux/linux.i386.conf +++ b/projects/ATV/linux/linux.i386.conf @@ -1023,7 +1023,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/ATV/options b/projects/ATV/options index ccc3da31a2..14db1d873d 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -117,10 +117,11 @@ DVDCSS_SUPPORT="yes" # additional drivers to install: +# asix-ax887xx: Asix AX887xx USB LAN Driver # bcm_sta: Broadcom STA WLAN Driver # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="bcm_sta" - ADDITIONAL_DRIVERS="bcm_sta" + ADDITIONAL_DRIVERS="asix-ax887xx bcm_sta" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Fusion/linux/linux.i386.conf b/projects/Fusion/linux/linux.i386.conf index c2f51c4caa..d1f610657c 100644 --- a/projects/Fusion/linux/linux.i386.conf +++ b/projects/Fusion/linux/linux.i386.conf @@ -1048,7 +1048,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/Fusion/options b/projects/Fusion/options index d0654052b9..d7b354dbee 100644 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -117,10 +117,11 @@ DVDCSS_SUPPORT="yes" # additional drivers to install: +# asix-ax887xx: Asix AX887xx USB LAN Driver # bcm_sta: Broadcom STA WLAN Driver # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="bcm_sta" - ADDITIONAL_DRIVERS="" + ADDITIONAL_DRIVERS="asix-ax887xx" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Generic/linux/linux.i386.conf b/projects/Generic/linux/linux.i386.conf index af472a4612..5d45dddc2f 100644 --- a/projects/Generic/linux/linux.i386.conf +++ b/projects/Generic/linux/linux.i386.conf @@ -1185,7 +1185,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/Generic/options b/projects/Generic/options index 2d6a437ce2..7c949cb39f 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -117,10 +117,11 @@ DVDCSS_SUPPORT="yes" # additional drivers to install: +# asix-ax887xx: Asix AX887xx USB LAN Driver # bcm_sta: Broadcom STA WLAN Driver # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="bcm_sta" - ADDITIONAL_DRIVERS="rtl8192se" + ADDITIONAL_DRIVERS="asix-ax887xx rtl8192se" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/ION/linux/linux.i386.conf b/projects/ION/linux/linux.i386.conf index 3f3cd3c6c0..09985f9ec2 100644 --- a/projects/ION/linux/linux.i386.conf +++ b/projects/ION/linux/linux.i386.conf @@ -1089,7 +1089,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/ION/linux/linux.x86_64.conf b/projects/ION/linux/linux.x86_64.conf index a5d1da5b61..61a6e95cc4 100644 --- a/projects/ION/linux/linux.x86_64.conf +++ b/projects/ION/linux/linux.x86_64.conf @@ -1038,7 +1038,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/ION/options b/projects/ION/options index 1bd8a646c5..05ec154cf8 100644 --- a/projects/ION/options +++ b/projects/ION/options @@ -117,10 +117,11 @@ DVDCSS_SUPPORT="yes" # additional drivers to install: +# asix-ax887xx: Asix AX887xx USB LAN Driver # bcm_sta: Broadcom STA WLAN Driver # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="bcm_sta" - ADDITIONAL_DRIVERS="rtl8192se" + ADDITIONAL_DRIVERS="asix-ax887xx rtl8192se" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Intel/linux/linux.i386.conf b/projects/Intel/linux/linux.i386.conf index 82d0d4d710..be04a4efb8 100644 --- a/projects/Intel/linux/linux.i386.conf +++ b/projects/Intel/linux/linux.i386.conf @@ -1103,7 +1103,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/Intel/linux/linux.x86_64.conf b/projects/Intel/linux/linux.x86_64.conf index 8b9ef2f43c..af8141d217 100644 --- a/projects/Intel/linux/linux.x86_64.conf +++ b/projects/Intel/linux/linux.x86_64.conf @@ -1053,7 +1053,7 @@ CONFIG_ZD1211RW=m # CONFIG_USB_PEGASUS is not set # CONFIG_USB_RTL8150 is not set CONFIG_USB_USBNET=m -CONFIG_USB_NET_AX8817X=m +# CONFIG_USB_NET_AX8817X is not set # CONFIG_USB_NET_CDCETHER is not set # CONFIG_USB_NET_CDC_EEM is not set # CONFIG_USB_NET_CDC_NCM is not set diff --git a/projects/Intel/options b/projects/Intel/options index b0e9b8c4bb..148d847ee8 100644 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -117,10 +117,11 @@ DVDCSS_SUPPORT="yes" # additional drivers to install: +# asix-ax887xx: Asix AX887xx USB LAN Driver # bcm_sta: Broadcom STA WLAN Driver # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="bcm_sta" - ADDITIONAL_DRIVERS="" + ADDITIONAL_DRIVERS="asix-ax887xx" # build with network support (yes / no) NETWORK="yes"