40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From 9da77ae1fbfd3f3918e1ee76b84c6519b53ab9e7 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Kolesa <daniel@octaforge.org>
|
|
Date: Sat, 12 Dec 2020 05:05:04 +0100
|
|
Subject: [PATCH] void arch-generic plumbing bits
|
|
|
|
---
|
|
Makefile | 14 +++++++++++++-
|
|
1 file changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
--- 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_VENDOR_DKMS = y
|
|
+CONFIG_PLATFORM_AUTODETECT = n
|
|
CONFIG_PLATFORM_I386_PC = n
|
|
CONFIG_PLATFORM_ANDROID_X86 = n
|
|
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
|
|
@@ -1383,6 +1384,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
|