33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From: Daniel Kolesa <daniel@octaforge.org>
|
|
Subject: [PATCH] void arch-generic plumbing bits
|
|
--- rtl8822bu-dkms-20221123.orig/Makefile
|
|
+++ rtl8822bu-dkms-20221123/Makefile
|
|
@@ -120,7 +120,8 @@ CONFIG_RTW_SDIO_PM_KEEP_POWER = y
|
|
###################### MP HW TX MODE FOR VHT #######################
|
|
CONFIG_MP_VHT_HW_TX_MODE = n
|
|
###################### Platform Related #######################
|
|
-CONFIG_PLATFORM_I386_PC = y
|
|
+CONFIG_PLATFORM_VOID_NATIVE = y
|
|
+CONFIG_PLATFORM_I386_PC = n
|
|
CONFIG_PLATFORM_ANDROID_X86 = n
|
|
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
|
|
CONFIG_PLATFORM_JB_X86 = n
|
|
@@ -1289,6 +1290,17 @@ endif
|
|
|
|
EXTRA_CFLAGS += -DDM_ODM_SUPPORT_TYPE=0x04
|
|
|
|
+ifeq ($(CONFIG_PLATFORM_VOID_NATIVE), 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_RTW_VHT_2G4), y)
|
|
EXTRA_CFLAGS += -DRTW_VHT_2G4=1
|
|
else
|