mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: add initial WLAN driver RTL8192SE
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
da30fcd3c5
commit
aa32e6daf3
11
packages/drivers/install
Executable file
11
packages/drivers/install
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
for drivers in "$ADDITIONAL_DRIVERS"; do
|
||||
|
||||
[ "$drivers" = rtl8192se ] && $SCRIPTS/install rtl8192se
|
||||
|
||||
done
|
||||
|
||||
exit 0
|
6
packages/drivers/rtl8192se/build
Executable file
6
packages/drivers/rtl8192se/build
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD/HAL/rtl8192
|
||||
make V=1 CC=$CC KSRC=$(kernel_path) modules
|
19
packages/drivers/rtl8192se/install
Executable file
19
packages/drivers/rtl8192se/install
Executable file
@ -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
|
15
packages/drivers/rtl8192se/meta
Normal file
15
packages/drivers/rtl8192se/meta
Normal file
@ -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"
|
||||
|
@ -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 <linux/timer.h>
|
||||
#include <linux/sched.h>
|
||||
+#include <linux/semaphore.h>
|
||||
|
||||
#include <linux/delay.h>
|
||||
#include <linux/wireless.h>
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user