From dde4283baddbfbcbfa1261c26e86c236f958ee61 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 21 Dec 2011 03:04:21 +0100 Subject: [PATCH] new package: add package 'RTL2832' (to be tested) Signed-off-by: Stephan Raue --- packages/linux-drivers/RTL2832/build | 26 ++++++++++++++ packages/linux-drivers/RTL2832/install | 28 +++++++++++++++ packages/linux-drivers/RTL2832/meta | 36 +++++++++++++++++++ packages/linux-drivers/RTL2832/need_unpack | 32 +++++++++++++++++ ...ernel-3.0.0-enable_linux_3.2_support.patch | 16 +++++++++ projects/ATV/options | 2 +- projects/Fusion/options | 2 +- projects/Generic/options | 2 +- projects/Generic_OSS/options | 2 +- projects/ION/options | 2 +- projects/Intel/options | 2 +- projects/Ultra/options | 2 +- 12 files changed, 145 insertions(+), 7 deletions(-) create mode 100755 packages/linux-drivers/RTL2832/build create mode 100755 packages/linux-drivers/RTL2832/install create mode 100644 packages/linux-drivers/RTL2832/meta create mode 100755 packages/linux-drivers/RTL2832/need_unpack create mode 100644 packages/linux-drivers/RTL2832/patches/RTL2832-2.2.2_kernel-3.0.0-enable_linux_3.2_support.patch diff --git a/packages/linux-drivers/RTL2832/build b/packages/linux-drivers/RTL2832/build new file mode 100755 index 0000000000..6af8ed7859 --- /dev/null +++ b/packages/linux-drivers/RTL2832/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/RTL2832/install b/packages/linux-drivers/RTL2832/install new file mode 100755 index 0000000000..d21d9aa31c --- /dev/null +++ b/packages/linux-drivers/RTL2832/install @@ -0,0 +1,28 @@ +#!/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/RTL2832U + cp $PKG_BUILD/*.ko $INSTALL/lib/modules/$VER/RTL2832U diff --git a/packages/linux-drivers/RTL2832/meta b/packages/linux-drivers/RTL2832/meta new file mode 100644 index 0000000000..4faf57d615 --- /dev/null +++ b/packages/linux-drivers/RTL2832/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="RTL2832" +PKG_VERSION="2.2.2_kernel-3.0.0" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://github.com/ambrosa/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain linux" +PKG_PRIORITY="optional" +PKG_SECTION="driver" +PKG_SHORTDESC="Original Realtek RTL2832U chipset (DVB/DAB) Linux 2.6.x driver rel. 2.2.2 , "full" version" +PKG_LONGDESC="Original Realtek RTL2832U chipset (DVB/DAB) Linux 2.6.x driver rel. 2.2.2 , "full" version" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/linux-drivers/RTL2832/need_unpack b/packages/linux-drivers/RTL2832/need_unpack new file mode 100755 index 0000000000..5d6df529ff --- /dev/null +++ b/packages/linux-drivers/RTL2832/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/RTL2832/patches/RTL2832-2.2.2_kernel-3.0.0-enable_linux_3.2_support.patch b/packages/linux-drivers/RTL2832/patches/RTL2832-2.2.2_kernel-3.0.0-enable_linux_3.2_support.patch new file mode 100644 index 0000000000..bd1424a2e4 --- /dev/null +++ b/packages/linux-drivers/RTL2832/patches/RTL2832-2.2.2_kernel-3.0.0-enable_linux_3.2_support.patch @@ -0,0 +1,16 @@ +diff -Naur RTL2832-2.2.2_kernel-3.0.0/Makefile RTL2832-2.2.2_kernel-3.0.0.patch/Makefile +--- RTL2832-2.2.2_kernel-3.0.0/Makefile 2011-12-20 19:27:43.000000000 +0100 ++++ RTL2832-2.2.2_kernel-3.0.0.patch/Makefile 2011-12-20 20:30:31.412007850 +0100 +@@ -4,10 +4,10 @@ + # Choose here wich include file to use: from kernel 3.0.0 (good for 3.1.0) or from kernel 3.2.0 + + # kernel 3.0.0 / 3.1.0 +-INCLUDE_EXTRA_DVB := include-300 ++#INCLUDE_EXTRA_DVB := include-300 + + # kernel 3.2.0 +-#INCLUDE_EXTRA_DVB := include-320 ++INCLUDE_EXTRA_DVB := include-320 + + # ---------------------------------------- + diff --git a/projects/ATV/options b/projects/ATV/options index eb803fbcba..f11a3eb966 100755 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx bcm_sta" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no) diff --git a/projects/Fusion/options b/projects/Fusion/options index c3e27d7105..5d20f36e32 100755 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no) diff --git a/projects/Generic/options b/projects/Generic/options index 27d86dc514..bbcb73ce6f 100755 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no) diff --git a/projects/Generic_OSS/options b/projects/Generic_OSS/options index b10f158bb8..7e44facc8e 100755 --- a/projects/Generic_OSS/options +++ b/projects/Generic_OSS/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no) diff --git a/projects/ION/options b/projects/ION/options index 5cb030864a..e4178b0888 100755 --- a/projects/ION/options +++ b/projects/ION/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no) diff --git a/projects/Intel/options b/projects/Intel/options index c8fd3a11d6..a0a3c87734 100755 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no) diff --git a/projects/Ultra/options b/projects/Ultra/options index 13c5991322..c91646f696 100755 --- a/projects/Ultra/options +++ b/projects/Ultra/options @@ -160,7 +160,7 @@ # e.g. ADDITIONAL_DRIVERS="asix-ax887xx AF9035" ADDITIONAL_DRIVERS="asix-ax887xx" if [ "$PVR" = yes ]; then - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS AF9035 A867 aver_h826d RTL2832" fi # build with network support (yes / no)