Add support for DKMS. Take into account variable KERNELRELEASE

This commit is contained in:
Adam_pi3 2020-02-15 22:41:07 +00:00
parent 3b9644ed91
commit 0cf451be9b
No known key found for this signature in database
GPG key ID: 7C0A38B52323F571

View file

@ -8,8 +8,13 @@
P_OUTPUT = output
P_PWD ?= $(shell pwd)
P_KVER ?= $(shell uname -r)
P_KERNEL := /lib/modules/$(P_KVER)/build
P_BOOTUP_SCRIPT ?= scripts/bootup/lkrg-bootup.sh
ifneq ($(KERNELRELEASE),)
P_KERNEL := /lib/modules/$(KERNELRELEASE)/build
else
## KERNELRELEASE not set.
P_KERNEL := /lib/modules/$(P_KVER)/build
endif
#
# Uncomment for debug compilation