summarylogtreecommitdiffstats
path: root/vmnet.patch
blob: 40b48da76779a75adb9f467e4fa011171000ca50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/vmnet/Makefile b/vmnet/Makefile
index fab02bf..ac8cc7f 100644
--- a/vmnet/Makefile
+++ b/vmnet/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