mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
And add the missing "linux" to PKG_DEPENDS_UNPACK while at it, the tree is required for building kernel modules.
30 lines
861 B
Makefile
30 lines
861 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="RTL8192CU"
|
|
PKG_VERSION="9a5fe3e94176c5154515834e99c00069d0bf1fd7"
|
|
PKG_SHA256="1488e6fdfc51d7a7ec8fb95d1c3b212d64f3e66e8d2f7e6637bf3dd642a75289"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/pvaret/rtl8192cu-fixes"
|
|
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
|
|
PKG_LONGDESC="Realtek RTL81xxCU Linux 3.x driver"
|
|
PKG_IS_KERNEL_PKG="yes"
|
|
|
|
pre_make_target() {
|
|
unset LDFLAGS
|
|
}
|
|
|
|
make_target() {
|
|
make V=1 \
|
|
ARCH=$TARGET_KERNEL_ARCH \
|
|
KSRC=$(kernel_path) \
|
|
CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
|
|
CONFIG_POWER_SAVING=n
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME
|
|
cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME
|
|
}
|