2022-03-04 22:46:34 +00:00
|
|
|
# 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)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-03-04 22:46:34 +00:00
|
|
|
|
|
|
|
PKG_NAME="RTL8821AU"
|
2023-12-15 16:33:23 +00:00
|
|
|
PKG_VERSION="cf0f873b795806f755d92e0bac063c26b3b31f12"
|
2022-03-04 22:46:34 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://github.com/morrownr/8821au-20210708"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-07-03 09:31:17 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain linux kernel-firmware"
|
2022-03-04 22:46:34 +00:00
|
|
|
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
|
|
|
|
PKG_LONGDESC="Realtek 8821AU driver for 4.4-5.x"
|
|
|
|
PKG_IS_KERNEL_PKG="yes"
|
2023-04-11 13:27:26 +00:00
|
|
|
PKG_TOOLCHAIN="make"
|
2022-03-04 22:46:34 +00:00
|
|
|
|
|
|
|
pre_make_target() {
|
|
|
|
unset LDFLAGS
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
make V=1 \
|
|
|
|
ARCH=${TARGET_KERNEL_ARCH} \
|
|
|
|
KSRC=$(kernel_path) \
|
|
|
|
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
|
2023-07-13 21:58:51 +00:00
|
|
|
CONFIG_POWER_SAVING=y
|
2022-03-04 22:46:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
|
|
|
|
cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
|
|
|
|
}
|