rtl8188eu: Allow use of KERNEL_SRC variable when defined

By this way I can compile this module
in both environment (KERNEL_SRC / KSRC)

Signed-off-by: Matteo Facchinetti <matteo.facchinetti@sirius-es.it>
This commit is contained in:
Matteo Facchinetti 2020-09-10 16:15:21 +02:00
parent 979baf93cd
commit 7fd7c18fa9

View file

@ -99,7 +99,7 @@ SUBARCH := $(shell uname -m | sed -e "s/i.86/i386/; s/ppc.*/powerpc/; s/armv.l/a
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER ?= $(if $(KERNELRELEASE),$(KERNELRELEASE),$(shell uname -r))
KSRC ?= /lib/modules/$(KVER)/build
KSRC ?= $(if $(KERNEL_SRC),$(KERNEL_SRC),/lib/modules/$(KVER)/build)
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless
INSTALL_PREFIX :=