void-packages/srcpkgs/rtl8821au-dkms/patches/endianess.patch

31 lines
1.1 KiB
Diff

--- 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