aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiblime2019-10-12 17:37:59 -0700
committerjiblime2019-10-12 17:37:59 -0700
commit243f8571c168c2ac248ae75cb0a45194873e7278 (patch)
tree7d81cc1a22ea71c8773d9701d6a73135e64b27d9
parent71f658f6c3faf2932b2b6c7bb162140ed2094530 (diff)
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'.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index eafd166..9f36841 100644
--- a/Makefile
+++ b/Makefile
@@ -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)