diff --git a/packages/linux-drivers/AF9035/build b/packages/linux-drivers/AF9035/build new file mode 100755 index 0000000000..9eb2940283 --- /dev/null +++ b/packages/linux-drivers/AF9035/build @@ -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 + +cd $PKG_BUILD + +# fix some directives after unpacking +sed -i "s|KDIR = .*|KDIR = $(kernel_path)|" Makefile +sed -i "s|KSRC = .*|KSRC = \$KDIR|" Makefile +sed -i "s|KINS = .*|KINS = \./modules|" Makefile + +make CC=$CC diff --git a/packages/linux-drivers/AF9035/install b/packages/linux-drivers/AF9035/install new file mode 100755 index 0000000000..e235427b8c --- /dev/null +++ b/packages/linux-drivers/AF9035/install @@ -0,0 +1,35 @@ +#!/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/AF9035 + cp $PKG_BUILD/dvb-usb-af9035.ko $INSTALL/lib/modules/$VER/AF9035 + cp $PKG_BUILD/tua9001.ko $INSTALL/lib/modules/$VER/AF9035 + cp $PKG_BUILD/af9033.ko $INSTALL/lib/modules/$VER/AF9035 + +$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/AF9035/meta b/packages/linux-drivers/AF9035/meta new file mode 100644 index 0000000000..67803f5d29 --- /dev/null +++ b/packages/linux-drivers/AF9035/meta @@ -0,0 +1,35 @@ +################################################################################ +# 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="AF9035" +PKG_VERSION="2.6.38" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.abclinuxu.cz/hardware/pridavne-karty/televizni-karty/dvb-t/usb/aver-tv-volar-hd-a835" +PKG_URL="http://xgazza.altervista.org/Linux/DVB/Drivers/${PKG_NAME}_${PKG_VERSION}.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain linux busybox-hosttools" +PKG_PRIORITY="optional" +PKG_SECTION="driver" +PKG_SHORTDESC="AF9035 driver: Afa Technologies Inc. AF9035A USB Device" +PKG_LONGDESC="AF9035 driver: Afa Technologies Inc. AF9035A USB Device" +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" diff --git a/projects/ATV/options b/projects/ATV/options index 02454c17e2..1581304405 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Fusion/options b/projects/Fusion/options index d64ce1f8c6..1d658390f2 100644 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Generic/options b/projects/Generic/options index ffaacafa52..ff1405b176 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Generic_OSS/options b/projects/Generic_OSS/options index 59a37bfcde..2a791110dd 100644 --- a/projects/Generic_OSS/options +++ b/projects/Generic_OSS/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/ION/options b/projects/ION/options index 17b86a1718..2c4269e4f2 100644 --- a/projects/ION/options +++ b/projects/ION/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Intel/options b/projects/Intel/options index 69588f338a..8e6aedc619 100644 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes" diff --git a/projects/Ultra/options b/projects/Ultra/options index 8878924975..6484625081 100644 --- a/projects/Ultra/options +++ b/projects/Ultra/options @@ -138,10 +138,11 @@ BLURAY_SUPPORT="yes" # additional drivers to install: +# AF9035: Afa Technologies Inc. AF9035A USB DVB Device # asix-ax887xx: Asix AX887xx USB LAN Driver # Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="asix-ax887xx" - ADDITIONAL_DRIVERS="asix-ax887xx" +# e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" + ADDITIONAL_DRIVERS="asix-ax887xx AF9035" # build with network support (yes / no) NETWORK="yes"