From b492bc894a53cdfacaf669a763b25bfd10db76f4 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 12 Apr 2014 01:59:55 +0200 Subject: [PATCH] new package: add package 'RTL8812AU' Signed-off-by: Stephan Raue --- packages/linux-drivers/RTL8812AU/package.mk | 51 +++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 packages/linux-drivers/RTL8812AU/package.mk diff --git a/packages/linux-drivers/RTL8812AU/package.mk b/packages/linux-drivers/RTL8812AU/package.mk new file mode 100644 index 0000000000..fccb4e7177 --- /dev/null +++ b/packages/linux-drivers/RTL8812AU/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="RTL8812AU" +PKG_VERSION="b22cbdf" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="git@github.com:wuzzeb/rtl8812AU_8821AU_linux.git" +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 RTL8812AU Linux 3.x driver" +PKG_LONGDESC="Realtek RTL8812AU 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 +}