Merge pull request #2892 from fewtarius/dev
WIFI drivers should only build for 64bit.
This commit is contained in:
commit
8c73da65ee
13 changed files with 67 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
|||
PKG_NAME="RTL8188EU"
|
||||
PKG_VERSION="f5d1c8df2e2d8b217ea0113bf2cf3e37df8cb716"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_SITE="https://github.com/lwfinger/rtl8188eu"
|
||||
PKG_URL="https://github.com/lwfinger/rtl8188eu/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain linux linux kernel-firmware"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
PKG_NAME="RTL8188FU"
|
||||
PKG_VERSION="0ede0794073495da694aeb52cdd748c6ba2ff21c"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/kelebek333/rtl8188fu"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
PKG_NAME="RTL8192CU"
|
||||
PKG_VERSION="e5c01a328d2a17f6e6553e30c9cf546076d61021"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/pvaret/rtl8192cu-fixes"
|
||||
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
PKG_NAME="RTL8192EU"
|
||||
PKG_VERSION="3cffd844ecf070346b1b4952164bc6658701c69e"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/Mange/rtl8192eu-linux-driver"
|
||||
PKG_URL="https://github.com/Mange/rtl8192eu-linux-driver/archive/${PKG_VERSION}.tar.gz"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
PKG_NAME="RTL8812AU"
|
||||
PKG_VERSION="3d1123bd1386b373333d3280772f4d504a829e1b"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/morrownr/8812au-20210629"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
PKG_NAME="RTL8814AU"
|
||||
PKG_VERSION="866a9100c7b3f6508b81b31a22cae19dcacdacb9"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/morrownr/8814au"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
PKG_NAME="RTL8821AU"
|
||||
PKG_VERSION="6cd61cfce48218c26b57db4733aa0d3cbf9a2f2c"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/morrownr/8821au-20210708"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
PKG_NAME="RTL8821CU"
|
||||
PKG_VERSION="5b39398e2de146edeb76716420f3288f508bea61"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/morrownr/8821cu-20210916"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
PKG_NAME="RTL88x2BU"
|
||||
PKG_VERSION="cb741f8b773b76c4eb1858f489b4b141ff586365"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/morrownr/88x2bu-20210702"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
33
packages/kernel/drivers/RTW88/package.mk
Normal file
33
packages/kernel/drivers/RTW88/package.mk
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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)
|
||||
# Copyright (C) 2024 JELOS (https://github.com/JustEnoughLinuxOS)
|
||||
|
||||
PKG_NAME="RTW88"
|
||||
PKG_VERSION="ca9f4e199efbf8c377e8a1769ba5b05b23f92c82"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/lwfinger/rtw88"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_DEPENDS_TARGET="toolchain linux kernel-firmware"
|
||||
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
|
||||
PKG_LONGDESC="Realtek RTW WIFI drivers."
|
||||
PKG_IS_KERNEL_PKG="yes"
|
||||
#PKG_TOOLCHAIN="make"
|
||||
|
||||
pre_make_target() {
|
||||
unset LDFLAGS
|
||||
}
|
||||
|
||||
make_target() {
|
||||
make V=1 \
|
||||
ARCH=${TARGET_KERNEL_ARCH} \
|
||||
KSRC=$(kernel_path) \
|
||||
KVER=$(kernel_version) \
|
||||
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
|
||||
all
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p ${INSTALL}/$(get_full_module_dir)/kernel/net/wireless/rtw88/
|
||||
cp *.ko ${INSTALL}/$(get_full_module_dir)/kernel/net/wireless/rtw88/
|
||||
}
|
21
packages/kernel/drivers/RTW88/patches/001-build.patch
Normal file
21
packages/kernel/drivers/RTW88/patches/001-build.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 71aadc9..b93381a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,16 +1,8 @@
|
||||
SHELL := /bin/sh
|
||||
-KVER ?= $(shell uname -r)
|
||||
-KSRC := /lib/modules/$(KVER)/build
|
||||
FIRMWAREDIR := /lib/firmware/
|
||||
PWD := $(shell pwd)
|
||||
CLR_MODULE_FILES := *.mod.c *.mod *.o .*.cmd *.ko *~ .tmp_versions* modules.order Module.symvers
|
||||
SYMBOL_FILE := Module.symvers
|
||||
-# Handle the move of the entire rtw88 tree
|
||||
-ifneq ("","$(wildcard /lib/modules/$(KVER)/kernel/drivers/net/wireless/realtek)")
|
||||
-MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/realtek/rtw88
|
||||
-else
|
||||
-MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/rtw88
|
||||
-endif
|
||||
|
||||
ifneq ("$(INSTALL_MOD_PATH)", "")
|
||||
DEPMOD_ARGS = -b $(INSTALL_MOD_PATH)
|
|
@ -1,8 +1,9 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
||||
|
||||
PKG_NAME="RTL8852xx"
|
||||
PKG_VERSION="ebe87ac234a72a63a1b2ede911a874f1b7a6fe43"
|
||||
PKG_NAME="RTW89"
|
||||
PKG_VERSION="fce040c12fbf93bfd904ded48df60dea2c8d4423"
|
||||
PKG_ARCH="aarch64 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/lwfinger/rtw89"
|
||||
PKG_URL="https://github.com/lwfinger/rtw89/archive/${PKG_VERSION}.tar.gz"
|
|
@ -88,7 +88,7 @@
|
|||
# for a list of additional drivers see packages/linux-drivers
|
||||
# Space separated list is supported,
|
||||
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
|
||||
ADDITIONAL_DRIVERS+=" RTL8852xx"
|
||||
ADDITIONAL_DRIVERS+=" RTW89"
|
||||
|
||||
# build and install driver addons (yes / no)
|
||||
DRIVER_ADDONS_SUPPORT="no"
|
||||
|
|
Loading…
Reference in a new issue