diff --git a/packages/linux-drivers/RTL8192DU/package.mk b/packages/linux-drivers/RTL8192DU/package.mk new file mode 100644 index 0000000000..9875f662c7 --- /dev/null +++ b/packages/linux-drivers/RTL8192DU/package.mk @@ -0,0 +1,51 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# +# OpenELEC 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 of the License, or +# (at your option) any later version. +# +# OpenELEC 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. If not, see . +################################################################################ + +PKG_NAME="RTL8192DU" +PKG_VERSION="085e206" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://github.com/lwfinger/rtl8192du" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS_TARGET="toolchain linux" +PKG_NEED_UNPACK="$LINUX_DEPENDS" +PKG_PRIORITY="optional" +PKG_SECTION="driver" +PKG_SHORTDESC="Realtek RTL8192DU Linux 3.x driver" +PKG_LONGDESC="Realtek RTL8192DU Linux 3.x driver" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +pre_make_target() { + unset LDFLAGS +} + +make_target() { + make V=1 \ + ARCH=$TARGET_ARCH \ + KSRC=$(kernel_path) \ + CROSS_COMPILE=$TARGET_PREFIX \ + CONFIG_POWER_SAVING=n +} + +makeinstall_target() { + mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME + cp *.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME +} diff --git a/projects/ATV/options b/projects/ATV/options index 490fde3154..3f323446ad 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -173,7 +173,7 @@ # for a list of additinoal drivers see packages/linux-drivers # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" - ADDITIONAL_DRIVERS="RTL8192CU RTL8188EU RTL8723AU dvbhdhomerun bcm_sta" + ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8188EU RTL8723AU dvbhdhomerun bcm_sta" # build and install bluetooth support (yes / no) BLUETOOTH_SUPPORT="yes" diff --git a/projects/Cuboxi/options b/projects/Cuboxi/options index 87c8ceec8d..a15ffac5f4 100644 --- a/projects/Cuboxi/options +++ b/projects/Cuboxi/options @@ -174,7 +174,7 @@ # for a list of additinoal drivers see packages/linux-drivers # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" -# ADDITIONAL_DRIVERS="RTL8192CU RTL8188EU RTL8723AU dvbhdhomerun" +# ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8188EU RTL8723AU dvbhdhomerun" ADDITIONAL_DRIVERS="RTL8188EU" # build and install bluetooth support (yes / no) diff --git a/projects/Generic/options b/projects/Generic/options index 33bc10c51a..7d66647291 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -173,7 +173,7 @@ # for a list of additinoal drivers see packages/linux-drivers # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" - ADDITIONAL_DRIVERS="RTL8192CU RTL8188EU RTL8723AU dvbhdhomerun" + ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8188EU RTL8723AU dvbhdhomerun" # build and install bluetooth support (yes / no) BLUETOOTH_SUPPORT="yes" diff --git a/projects/RPi/options b/projects/RPi/options index 670773b13e..0a2b307c46 100644 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -174,7 +174,7 @@ # for a list of additinoal drivers see packages/linux-drivers # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" - ADDITIONAL_DRIVERS="RTL8192CU RTL8188EU RTL8723AU dvbhdhomerun" + ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8188EU RTL8723AU dvbhdhomerun" # build and install bluetooth support (yes / no) BLUETOOTH_SUPPORT="yes"