rtl8188eu: Tweak Makefile for easier cross compilation

Make KVER assignment optional. If an environment variable KVER exists
it is used 'as is'.
This commit is contained in:
Karsten Wiese 2021-12-11 17:25:32 +01:00
parent 667ab7a45f
commit 233a5d2ca6

View file

@ -100,7 +100,7 @@ endif
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 ?= $(shell uname -r)
KERNEL_SRC ?= /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=