aboutsummaryrefslogtreecommitdiff
path: root/network/rtl8821ce/allow-kver-ksrc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/rtl8821ce/allow-kver-ksrc.patch')
-rw-r--r--network/rtl8821ce/allow-kver-ksrc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/rtl8821ce/allow-kver-ksrc.patch b/network/rtl8821ce/allow-kver-ksrc.patch
new file mode 100644
index 0000000000000..0629f749eec35
--- /dev/null
+++ b/network/rtl8821ce/allow-kver-ksrc.patch
@@ -0,0 +1,15 @@
+diff --git a/Makefile b/Makefile
+index 5b5dc9a..da26fdd 100755
+--- a/Makefile
++++ b/Makefile
+@@ -1218,8 +1218,8 @@ EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
+ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
+ ARCH ?= $(SUBARCH)
+ CROSS_COMPILE ?=
+-KVER := $(shell uname -r)
+-KSRC := /lib/modules/$(KVER)/build
++KVER ?= $(shell uname -r)
++KSRC ?= /lib/modules/$(KVER)/build
+ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
+ INSTALL_PREFIX :=
+ STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging