mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
################################################################################
|
|
# 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 <http://www.gnu.org/licenses/>.
|
|
################################################################################
|
|
|
|
PKG_NAME="RTL8192CU"
|
|
PKG_VERSION="v4.0.2_9000.20130911"
|
|
PKG_REV="1"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true"
|
|
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 RTL81xxCU Linux 3.x driver"
|
|
PKG_LONGDESC="Realtek RTL81xxCU 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
|
|
}
|