mirror of
https://github.com/openwall/lkrg.git
synced 2023-12-13 21:30:29 +01:00
Add support for DKMS. Take into account variable KERNELRELEASE
This commit is contained in:
parent
3b9644ed91
commit
0cf451be9b
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue