Files
Arch-R/projects/ArchR/packages/linux-drivers/RTL8852BU/package.mk
T
Douglas Teles c1b9f27838 RK3326: add out-of-tree drivers for the RTL8852 USB WiFi 6 family
The four-distro dongle census left the RTL8852AU/BU/CU chips as the
remaining orphans: common WiFi 6 dongles with no mainline USB support
on 6.12 (the in-kernel rtw89 only starts covering them in 6.17).
Package the maintained vendor drivers (morrownr for BU and CU, both
declaring kernels 5.15 to 6.14; lwfinger for AU, with version guards
up to 6.9 and strscpy fallbacks in place) pinned to current HEADs,
modeled on the sibling morrownr packages. No udev hand-off rules: the
USB IDs bind by modalias since nothing else claims them. RTL8831 and
AIC8800 stay untouched; they serve validated hardware.
2026-07-08 17:53:51 -03:00

29 lines
900 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2026-present ArchR (https://github.com/archr-linux/Arch-R)
PKG_NAME="RTL8852BU"
PKG_VERSION="59a5918e3dc188bb9055e9ba4690623c434e0e11"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/morrownr/rtl8852bu-20250826"
PKG_URL="${PKG_SITE}.git"
PKG_LONGDESC="Realtek RTL8852BU USB WiFi 6 driver. Out of tree because mainline has no USB glue for this chip on 6.12; the in-kernel rtw89 only gains 8852BU USB support in 6.17."
PKG_TOOLCHAIN="make"
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=y
}
makeinstall_target() {
mkdir -p ${INSTALL}/$(get_full_module_dir)/kernel/drivers/net/wireless/
cp *.ko ${INSTALL}/$(get_full_module_dir)/kernel/drivers/net/wireless/
}