From 33dbf80732697def1041cae2d004f0def255944d Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 10 May 2020 12:03:48 -0500 Subject: [PATCH] rtl8188eu" Allow build from alternative sources Signed-off-by: Larry Finger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2938c76..8ef0567 100755 --- a/Makefile +++ b/Makefile @@ -403,7 +403,7 @@ EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/ | sed -e s/armv.l/arm/) ARCH ?= $(SUBARCH) CROSS_COMPILE ?= -KVER := $(shell uname -r) +KVER ?= $(if $(KERNELRELEASE),$(KERNELRELEASE),$(shell uname -r)) KSRC := /lib/modules/$(KVER)/build MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX :=