mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: add package 'asix-ax887xx', remove in-kernel asix driver, enable external asix driver
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8ef1440663
commit
a96bbf3cc4
26
packages/linux-drivers/asix-ax887xx/build
Executable file
26
packages/linux-drivers/asix-ax887xx/build
Executable file
@ -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)
|
33
packages/linux-drivers/asix-ax887xx/install
Executable file
33
packages/linux-drivers/asix-ax887xx/install
Executable file
@ -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
|
36
packages/linux-drivers/asix-ax887xx/meta
Normal file
36
packages/linux-drivers/asix-ax887xx/meta
Normal file
@ -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"
|
32
packages/linux-drivers/asix-ax887xx/need_unpack
Executable file
32
packages/linux-drivers/asix-ax887xx/need_unpack
Executable file
@ -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
|
@ -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))
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user