mirror of
https://github.com/dynup/kpatch
synced 2025-01-05 04:29:31 +00:00
Merge pull request #786 from euspectre/makefile-krel-fix
kmod/core: fix definition of KERNELRELEASE
This commit is contained in:
commit
6d0d8d0b04
@ -1,6 +1,6 @@
|
||||
# make rules
|
||||
KPATCH_BUILD ?= /lib/modules/$(shell uname -r)/build
|
||||
KERNELRELEASE := $(lastword $(subst /, , $(dir $(KPATCH_BUILD))))
|
||||
KERNELRELEASE := $(lastword $(subst /, , $(dir $(patsubst %/,%,$(KPATCH_BUILD)))))
|
||||
THISDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
ifeq ($(wildcard $(KPATCH_BUILD)),)
|
||||
|
Loading…
Reference in New Issue
Block a user