From aa32e6daf3f0f27976e3d63fef0e906b123b0ba6 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 10 Oct 2010 23:12:42 +0200 Subject: [PATCH] new package: add initial WLAN driver RTL8192SE Signed-off-by: Stephan Raue --- packages/drivers/install | 11 +++++++++++ packages/drivers/rtl8192se/build | 6 ++++++ packages/drivers/rtl8192se/install | 19 +++++++++++++++++++ packages/drivers/rtl8192se/meta | 15 +++++++++++++++ .../rtl8192se-add_missing_include-0.1.diff | 11 +++++++++++ packages/linux/meta | 2 +- projects/ATV/options | 6 ++++++ projects/ION/options | 6 ++++++ projects/generic/options | 6 ++++++ projects/intel/options | 6 ++++++ 10 files changed, 87 insertions(+), 1 deletion(-) create mode 100755 packages/drivers/install create mode 100755 packages/drivers/rtl8192se/build create mode 100755 packages/drivers/rtl8192se/install create mode 100644 packages/drivers/rtl8192se/meta create mode 100644 packages/drivers/rtl8192se/patches/rtl8192se-add_missing_include-0.1.diff diff --git a/packages/drivers/install b/packages/drivers/install new file mode 100755 index 0000000000..aa6fa92f87 --- /dev/null +++ b/packages/drivers/install @@ -0,0 +1,11 @@ +#!/bin/sh + +. config/options $1 + +for drivers in "$ADDITIONAL_DRIVERS"; do + + [ "$drivers" = rtl8192se ] && $SCRIPTS/install rtl8192se + +done + +exit 0 diff --git a/packages/drivers/rtl8192se/build b/packages/drivers/rtl8192se/build new file mode 100755 index 0000000000..0bc556844e --- /dev/null +++ b/packages/drivers/rtl8192se/build @@ -0,0 +1,6 @@ +#!/bin/sh + +. config/options $1 + +cd $PKG_BUILD/HAL/rtl8192 + make V=1 CC=$CC KSRC=$(kernel_path) modules diff --git a/packages/drivers/rtl8192se/install b/packages/drivers/rtl8192se/install new file mode 100755 index 0000000000..cb80dafd28 --- /dev/null +++ b/packages/drivers/rtl8192se/install @@ -0,0 +1,19 @@ +#!/bin/sh + +. config/options $1 + +$SCRIPTS/build busybox-hosttools + +VER=`ls $BUILD/linux*/modules/lib/modules` + +mkdir -p $INSTALL/lib/modules/$VER/rtl8192se + cp $PKG_BUILD/HAL/rtl8192/r8192se_pci.ko $INSTALL/lib/modules/$VER/rtl8192se + + for MOD in `find $INSTALL/lib/modules/$VER/rtl8192se -name *.ko`; do + $STRIP --strip-debug $MOD + done + + $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/drivers/rtl8192se/meta b/packages/drivers/rtl8192se/meta new file mode 100644 index 0000000000..6b9f4bdeb2 --- /dev/null +++ b/packages/drivers/rtl8192se/meta @@ -0,0 +1,15 @@ +PKG_NAME="rtl8192se" +PKG_VERSION="0017.0705.2010" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="nonfree" +PKG_SITE="http://www.realtek.com/" +PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain linux" +PKG_PRIORITY="optional" +PKG_SECTION="driver" +PKG_SHORTDESC="rtl8192se: Realtek RTL8191SE, RTL8192SE WLAN driver" +PKG_LONGDESC="Realtek RTL8191SE, RTL8192SE WLAN driver" +PKG_IS_ADDON="no" + diff --git a/packages/drivers/rtl8192se/patches/rtl8192se-add_missing_include-0.1.diff b/packages/drivers/rtl8192se/patches/rtl8192se-add_missing_include-0.1.diff new file mode 100644 index 0000000000..18797fecfd --- /dev/null +++ b/packages/drivers/rtl8192se/patches/rtl8192se-add_missing_include-0.1.diff @@ -0,0 +1,11 @@ +diff -Naur rtl8192se-0017.0705.2010/rtllib/rtllib.h rtl8192se-0017.0705.2010.patch/rtllib/rtllib.h +--- rtl8192se-0017.0705.2010/rtllib/rtllib.h 2010-05-07 04:31:32.000000000 +0200 ++++ rtl8192se-0017.0705.2010.patch/rtllib/rtllib.h 2010-10-10 21:24:50.861572432 +0200 +@@ -35,6 +35,7 @@ + #endif + #include + #include ++#include + + #include + #include diff --git a/packages/linux/meta b/packages/linux/meta index 7f3299f17f..4af4859c66 100644 --- a/packages/linux/meta +++ b/packages/linux/meta @@ -5,7 +5,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.kernel.org" PKG_URL="http://www.kernel.org/pub/linux/kernel/v2.6/testing/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="busybox linux-firmware" +PKG_DEPENDS="busybox linux-firmware drivers" PKG_BUILD_DEPENDS="toolchain busybox-hosttools" PKG_PRIORITY="optional" PKG_SECTION="linux" diff --git a/projects/ATV/options b/projects/ATV/options index 89df26db17..61523e3185 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -80,6 +80,12 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# additional drivers to install: +# rtl8192se: Realtek RTL8192SE WLAN driver +# Space separated list is supported, +# e.g. ADDITIONAL_DRIVERS="rtl8192se" + ADDITIONAL_DRIVERS="" + # build with network support (yes / no) NETWORK="yes" diff --git a/projects/ION/options b/projects/ION/options index 1994b77350..8d0cf8ccc4 100644 --- a/projects/ION/options +++ b/projects/ION/options @@ -80,6 +80,12 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# additional drivers to install: +# rtl8192se: Realtek RTL8192SE WLAN driver +# Space separated list is supported, +# e.g. ADDITIONAL_DRIVERS="rtl8192se" + ADDITIONAL_DRIVERS="rtl8192se" + # build with network support (yes / no) NETWORK="yes" diff --git a/projects/generic/options b/projects/generic/options index 6489c03029..7ddc9013c2 100644 --- a/projects/generic/options +++ b/projects/generic/options @@ -80,6 +80,12 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# additional drivers to install: +# rtl8192se: Realtek RTL8192SE WLAN driver +# Space separated list is supported, +# e.g. ADDITIONAL_DRIVERS="rtl8192se" + ADDITIONAL_DRIVERS="rtl8192se" + # build with network support (yes / no) NETWORK="yes" diff --git a/projects/intel/options b/projects/intel/options index 3efb23ec20..0ce26933c3 100644 --- a/projects/intel/options +++ b/projects/intel/options @@ -80,6 +80,12 @@ # FAAC is an MPEG-4 and MPEG-2 AAC encoder (yes / no) FAAC_SUPPORT="yes" +# additional drivers to install: +# rtl8192se: Realtek RTL8192SE WLAN driver +# Space separated list is supported, +# e.g. ADDITIONAL_DRIVERS="rtl8192se" + ADDITIONAL_DRIVERS="rtl8192se" + # build with network support (yes / no) NETWORK="yes"