Added KERNEL_MODULES variable to the Makefile

Without it, systems with kernels that don't use Ubuntu's or Fedora's kernel locations will default to '/build'.
This commit is contained in:
jiblime 2019-10-12 17:37:59 -07:00
parent 71f658f6c3
commit 243f8571c1

View file

@ -2,6 +2,8 @@ VERSION := 0.1.4
TARGET := $(shell uname -r)
DKMS_ROOT_PATH := /usr/src/zenpower-$(VERSION)
KERNEL_MODULES := /lib/modules/$(TARGET)
ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)")
# Ubuntu
KERNEL_BUILD := /usr/src/linux-headers-$(TARGET)