* [PR PATCH] Rtl8821au
@ 2023-09-12 14:03 sgn
2023-09-14 1:47 ` [PR PATCH] [Merged]: Rtl8821au sgn
0 siblings, 1 reply; 2+ messages in thread
From: sgn @ 2023-09-12 14:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]
There is a new pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages rtl8821au
https://github.com/void-linux/void-packages/pull/46028
Rtl8821au
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
Fix https://github.com/void-linux/void-packages/issues/46027
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/46028.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rtl8821au-46028.patch --]
[-- Type: text/x-diff, Size: 4911 bytes --]
From 81461556f2cc522aaf16e3a0bff0bf3b7ec10083 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Tue, 12 Sep 2023 21:01:34 +0700
Subject: [PATCH 1/2] New package: rtl8821au-dkms-20210708
---
.../rtl8821au-dkms/patches/endianess.patch | 30 +++++++++++
srcpkgs/rtl8821au-dkms/template | 53 +++++++++++++++++++
2 files changed, 83 insertions(+)
create mode 100644 srcpkgs/rtl8821au-dkms/patches/endianess.patch
create mode 100644 srcpkgs/rtl8821au-dkms/template
diff --git a/srcpkgs/rtl8821au-dkms/patches/endianess.patch b/srcpkgs/rtl8821au-dkms/patches/endianess.patch
new file mode 100644
index 0000000000000..928ceabae09a6
--- /dev/null
+++ b/srcpkgs/rtl8821au-dkms/patches/endianess.patch
@@ -0,0 +1,30 @@
+--- a/Makefile
++++ b/Makefile
+@@ -152,7 +152,8 @@ CONFIG_LAYER2_ROAMING = y
+ #bit0: ROAM_ON_EXPIRED, #bit1: ROAM_ON_RESUME, #bit2: ROAM_ACTIVE
+ CONFIG_ROAMING_FLAG = 0x3
+ ###################### Platform Related #######################
+-CONFIG_PLATFORM_AUTODETECT = y
++CONFIG_PLATFORM_AUTODETECT = n
++CONFIG_PLATFORM_VENDOR_DKMS = y
+ CONFIG_PLATFORM_I386_PC = n
+ CONFIG_PLATFORM_ANDROID_X86 = n
+ CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
+@@ -1381,6 +1382,17 @@ STAGINGMODDIR := /lib/modules/$(KVER)/ke
+ endif
+ # *** End AUTODETECT ***
+
++ifeq ($(CONFIG_PLATFORM_VENDOR_DKMS), y)
++EXTRA_CFLAGS += -DCONFIG_@@VOID_ENDIAN@@_ENDIAN
++EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
++ARCH := @@VOID_ARCH@@
++KVER ?= $(shell uname -r)
++KSRC ?= /usr/lib/modules/$(KVER)/build
++MODDESTDIR := /usr/lib/modules/$(KVER)/kernel/drivers/net/wireless/
++INSTALL_PREFIX :=
++STAGINGMODDIR := /usr/lib/modules/$(KVER)/kernel/drivers/staging
++endif
++
+ ifeq ($(CONFIG_PLATFORM_I386_PC), y)
+ EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
+ EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
diff --git a/srcpkgs/rtl8821au-dkms/template b/srcpkgs/rtl8821au-dkms/template
new file mode 100644
index 0000000000000..d6c4d7255d271
--- /dev/null
+++ b/srcpkgs/rtl8821au-dkms/template
@@ -0,0 +1,53 @@
+# Template file for 'rtl8821au-dkms'
+pkgname=rtl8821au-dkms
+version=20210708
+revision=1
+_modver=5.12.5.2
+_gitrev=19660ee3f67125d2ef31b626f9fff946bd3e8d01
+depends="dkms"
+short_desc="Realtek 8811AU/8821AU USB WiFi driver (DKMS)"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-only"
+homepage="https://github.com/morrownr/8821au"
+distfiles="https://github.com/morrownr/8821au-${version}/archive/${_gitrev}.tar.gz"
+checksum=81a1b25e1e9d83f88ae11eabec4a55df22717f3d6f23417aea495d17a3d6f970
+dkms_modules="rtl8821au ${_modver}"
+
+case "$XBPS_TARGET_MACHINE" in
+ x86_64*) _karch="x86_64";;
+ i686*) _karch="i386";;
+ aarch64*) _karch="arm64";;
+ arm*) _karch="arm";;
+ ppc*) _karch="powerpc";;
+ mips*) _karch="mips";;
+ *) broken="kernel arch not defined";;
+esac
+
+post_patch() {
+ if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
+ vsed -i 's,@@VOID_ENDIAN@@,BIG,g' Makefile
+ else
+ vsed -i 's,@@VOID_ENDIAN@@,LITTLE,g' Makefile
+ fi
+ vsed -i "s,@@VOID_ARCH@@,${_karch},g" Makefile
+ rm -f *.patch
+}
+
+do_install() {
+ local dest=/usr/src/rtl8821au-${_modver}
+
+ cat <<-EOF >dkms.conf
+ PACKAGE_NAME="rtl8821au"
+ PACKAGE_VERSION="${_modver}"
+ MAKE="'make' KVER=\${kernelver}"
+ BUILT_MODULE_NAME[0]="8821au"
+ DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
+ EOF
+ vmkdir ${dest}
+ cp -r dkms.conf Kconfig Makefile platform core hal include os_dep ${DESTDIR}/${dest}
+
+ # modules-load.d(5) file.
+ vmkdir usr/lib/modules-load.d
+ echo "8821au" > ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
+ chmod 644 ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
+}
From 8396adcd4ddbacd51ef871e1cf68e6be77e919b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Tue, 12 Sep 2023 21:01:22 +0700
Subject: [PATCH 2/2] rtl8812au-dkms: stop advertise for rtl8821au
---
srcpkgs/rtl8812au-dkms/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/rtl8812au-dkms/template b/srcpkgs/rtl8812au-dkms/template
index 74d0657b5bea7..e0705f7eb28d8 100644
--- a/srcpkgs/rtl8812au-dkms/template
+++ b/srcpkgs/rtl8812au-dkms/template
@@ -1,11 +1,11 @@
# Template file for 'rtl8812au-dkms'
pkgname=rtl8812au-dkms
version=20210629
-revision=3
+revision=4
_modver=5.13.6
_gitrev=b5f4e6e894eca8fea38661e2fc22a2570e0274ad
depends="dkms"
-short_desc="Realtek 8812AU/8821AU USB WiFi driver (DKMS)"
+short_desc="Realtek 8812AU USB WiFi driver (DKMS)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/morrownr/8812au"
@@ -30,7 +30,7 @@ post_patch() {
vsed -i 's,@@VOID_ENDIAN@@,LITTLE,g' Makefile
fi
vsed -i "s,@@VOID_ARCH@@,${_karch},g" Makefile
- rm *.patch
+ rm -f *.patch
}
do_install() {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: Rtl8821au
2023-09-12 14:03 [PR PATCH] Rtl8821au sgn
@ 2023-09-14 1:47 ` sgn
0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2023-09-14 1:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
There's a merged pull request on the void-packages repository
Rtl8821au
https://github.com/void-linux/void-packages/pull/46028
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
Fix https://github.com/void-linux/void-packages/issues/46027
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-14 1:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 14:03 [PR PATCH] Rtl8821au sgn
2023-09-14 1:47 ` [PR PATCH] [Merged]: Rtl8821au sgn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).