summarylogtreecommitdiffstats
path: root/vmmon.patch
blob: d9c3de9e9818e978e57126f3f4d03c6e3dcca89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/vmmon/Makefile b/vmmon/Makefile
index 7230c14..d881a6f 100644
--- a/vmmon/Makefile
+++ b/vmmon/Makefile
@@ -40,8 +40,11 @@ else
 INCLUDE      += -I$(SRCROOT)/shared
 endif
 
-
-VM_UNAME = $(shell uname -r)
+ifdef KVERSION
+ VM_UNAME = $(KVERSION)
+else
+ VM_UNAME = $(shell uname -r)
+endif
 
 # Header directory for the running kernel
 ifdef LINUXINCLUDE