summaryrefslogtreecommitdiff
path: root/aports/rtw88
diff options
context:
space:
mode:
Diffstat (limited to 'aports/rtw88')
-rw-r--r--aports/rtw88/APKBUILD39
-rw-r--r--aports/rtw88/Makefile.patch62
2 files changed, 101 insertions, 0 deletions
diff --git a/aports/rtw88/APKBUILD b/aports/rtw88/APKBUILD
new file mode 100644
index 0000000..86b6863
--- /dev/null
+++ b/aports/rtw88/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Gabor Pali <pali.gabor@gmail.com>
+
+pkgname='rtw88'
+pkgver=20230913
+pkgrel=0
+_gitrev='d0f932dba10827bae07cb7044854651565591b87'
+pkgdesc='Backport of the Realtek Wifi 5 drivers from the wireless-next repo'
+arch="x86_64"
+url='https://github.com/lwfinger/rtw88'
+license="GPL-2.0"
+makedepends="linux-lts-dev xz"
+depends="linux-lts"
+install=
+options="!check !strip"
+source="Makefile.patch
+ https://github.com/lwfinger/rtw88/archive/${_gitrev}.zip"
+
+_kver=$(cd /usr/src/ && find . -mindepth 1 -maxdepth 1 -type d -name '*-lts' | sed 's!./linux-headers-!!')
+_kbase="/lib/modules/${_kver}"
+_srcdir="$srcdir/rtw88-$_gitrev"
+builddir="$_srcdir"
+
+prepare() {
+ default_prepare
+}
+
+build() {
+ make -C "$_srcdir" -j8 KVER="$_kver"
+}
+
+package() {
+ xz "$_srcdir"/*.ko
+ install -p -D -m 644 "$_srcdir"/*.ko.xz -t "$pkgdir"/lib/modules/"$_kver"/kernel/drivers/net/wireless/realtek/rtw88
+}
+
+sha512sums="
+4a33c7cace66437d422816c74810bd637f846be5d7935ef8aaae70971e35cf04640e10d71b3c62e6e951809188bd6c6846f2ebf1d90dd9bb45aedcfdf833bc8b Makefile.patch
+8d1aaaa1942230cb5f1ca82123fda020760ff71a281be3826b4bafacee442c0b647928a4bccab1c70fe559d91550962b23998710ac7ab8b995f335230519281c d0f932dba10827bae07cb7044854651565591b87.zip
+"
diff --git a/aports/rtw88/Makefile.patch b/aports/rtw88/Makefile.patch
new file mode 100644
index 0000000..284bc95
--- /dev/null
+++ b/aports/rtw88/Makefile.patch
@@ -0,0 +1,62 @@
+--- a/Makefile
++++ b/Makefile
+@@ -57,59 +57,26 @@
+ obj-m += rtw_8822be.o
+ rtw_8822be-objs := rtw8822be.o
+
+-obj-m += rtw_8822bu.o
+-rtw_8822bu-objs := rtw8822bu.o
+-
+-obj-m += rtw_8822bs.o
+-rtw_8822bs-objs := rtw8822bs.o
+-
+ obj-m += rtw_8822c.o
+ rtw_8822c-objs := rtw8822c.o rtw8822c_table.o
+
+ obj-m += rtw_8822ce.o
+ rtw_8822ce-objs := rtw8822ce.o
+
+-obj-m += rtw_8822cu.o
+-rtw_8822cu-objs := rtw8822cu.o
+-
+-obj-m += rtw_8822cs.o
+-rtw_8822cs-objs := rtw8822cs.o
+-
+ obj-m += rtw_8723d.o
+ rtw_8723d-objs := rtw8723d.o rtw8723d_table.o
+
+ obj-m += rtw_8723de.o
+ rtw_8723de-objs := rtw8723de.o
+
+-obj-m += rtw_8723du.o
+-rtw_8723du-objs := rtw8723du.o
+-
+-obj-m += rtw_8723ds.o
+-rtw_8723ds-objs := rtw8723ds.o
+-
+ obj-m += rtw_8821c.o
+ rtw_8821c-objs := rtw8821c.o rtw8821c_table.o
+
+ obj-m += rtw_8821ce.o
+ rtw_8821ce-objs := rtw8821ce.o
+
+-obj-m += rtw_8821cs.o
+-rtw_8821cs-objs := rtw8821cs.o
+-
+-obj-m += rtw_8821cu.o
+-rtw_8821cu-objs := rtw8821cu.o
+-
+ obj-m += rtw_pci.o
+ rtw_pci-objs := pci.o
+-
+-obj-m += rtw_sdio.o
+-rtw_sdio-objs := sdio.o
+-
+-obj-m += rtw_usb.o
+-rtw_usb-objs := usb.o
+-
+-obj-m += rtw_usb.o
+-rtw_usb-objs := usb.o
+
+ ccflags-y += -D__CHECK_ENDIAN__
+