rtl8812au-dkms: patch for linux 6.1

This commit is contained in:
Đoàn Trần Công Danh 2022-12-28 08:56:15 +07:00
parent 3a66c31129
commit ffc5d7f61b
2 changed files with 15 additions and 19 deletions

View File

@ -7,23 +7,21 @@ Subject: [PATCH] void arch-generic plumbing bits
Makefile | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git Makefile Makefile
index c7d11ed..4529ac8 100755
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,8 @@ CONFIG_RTW_SDIO_PM_KEEP_POWER = y
###################### MP HW TX MODE FOR VHT #######################
CONFIG_MP_VHT_HW_TX_MODE = n
--- rtl8812au-dkms-20210629.orig/Makefile
+++ rtl8812au-dkms-20210629/Makefile
@@ -147,7 +147,8 @@ CONFIG_LAYER2_ROAMING = y
#bit0: ROAM_ON_EXPIRED, #bit1: ROAM_ON_RESUME, #bit2: ROAM_ACTIVE
CONFIG_ROAMING_FLAG = 0x3
###################### Platform Related #######################
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_VOID_NATIVE = y
+CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM64_RPI = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
@@ -1227,6 +1228,17 @@ endif
EXTRA_CFLAGS += -DDM_ODM_SUPPORT_TYPE=0x04
@@ -1355,6 +1356,17 @@ EXTRA_CFLAGS += -DCONFIG_RTW_MBO -DCONFI
EXTRA_CFLAGS += -DCONFIG_RTW_80211R
endif
+ifeq ($(CONFIG_PLATFORM_VOID_NATIVE), y)
+EXTRA_CFLAGS += -DCONFIG_@@VOID_ENDIAN@@_ENDIAN
@ -37,8 +35,5 @@ index c7d11ed..4529ac8 100755
+endif
+
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
--
2.29.2
ifeq ($(CONFIG_CONCURRENT_MODE), y)
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE

View File

@ -1,16 +1,16 @@
# Template file for 'rtl8812au-dkms'
pkgname=rtl8812au-dkms
version=20210629
revision=1
revision=2
_modver=5.13.6
_gitrev=a8450b030a187b71d6be147d004715e6858e0ef9
_gitrev=65949c530359ece8f28c84516f4d17fe7ab7d897
depends="dkms"
short_desc="Realtek 8812AU/8821AU USB WiFi driver (DKMS)"
maintainer="Renato Aguiar <renato@renag.me>"
license="GPL-2.0-only"
homepage="https://github.com/morrownr/8812au"
distfiles="https://github.com/morrownr/8812au-${version}/archive/${_gitrev}.tar.gz"
checksum=a4ebed285b4315284c2ccdeaec1ba12aa6a66d9772b7416c81f055d3ab6f9bb8
checksum=9d9ad1a14becf276cde119cdd200b7f05dca957c057810d065b087d2053fed69
dkms_modules="rtl8812au ${_modver}"
case "$XBPS_TARGET_MACHINE" in
@ -30,6 +30,7 @@ post_patch() {
vsed -i 's,@@VOID_ENDIAN@@,LITTLE,g' Makefile
fi
vsed -i "s,@@VOID_ARCH@@,${_karch},g" Makefile
rm *.patch
}
do_install() {