summaryrefslogtreecommitdiff
blob: d4bd6d12fed0e46fb4104b9c591017933d7cbf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
diff --git a/work/vmblock-only/Makefile b/work/vmblock-only/Makefile
index 0bd0e74..27c3ede 100644
--- a/work/vmblock-only/Makefile
+++ b/work/vmblock-only/Makefile
@@ -46,9 +46,9 @@ endif
 VM_UNAME = $(shell uname -r)
 
 # Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = $(KERNEL_DIR) 
 
-BUILD_DIR = $(HEADER_DIR)/..
+BUILD_DIR = $(KBUILD_OUTPUT)
 
 DRIVER := vmblock
 PRODUCT := tools
diff --git a/work/vmci-only/Makefile b/work/vmci-only/Makefile
index 7babb8a..fbc5878 100644
--- a/work/vmci-only/Makefile
+++ b/work/vmci-only/Makefile
@@ -46,9 +46,9 @@ endif
 VM_UNAME = $(shell uname -r)
 
 # Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = $(KERNEL_DIR)
 
-BUILD_DIR = $(HEADER_DIR)/..
+BUILD_DIR = $(KBUILD_OUTPUT)
 
 DRIVER := vmci
 PRODUCT := @@PRODUCT@@
diff --git a/work/vmmon-only/Makefile b/work/vmmon-only/Makefile
index 4b4eb3e..1bb35ef 100644
--- a/work/vmmon-only/Makefile
+++ b/work/vmmon-only/Makefile
@@ -46,9 +46,9 @@ endif
 VM_UNAME = $(shell uname -r)
 
 # Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = $(KERNEL_DIR)
 
-BUILD_DIR = $(HEADER_DIR)/..
+BUILD_DIR = $(KBUILD_OUTPUT)
 
 DRIVER := vmmon
 PRODUCT := @@PRODUCT@@
diff --git a/work/vmnet-only/Makefile b/work/vmnet-only/Makefile
index 06856e7..fd53bf8 100644
--- a/work/vmnet-only/Makefile
+++ b/work/vmnet-only/Makefile
@@ -46,9 +46,9 @@ endif
 VM_UNAME = $(shell uname -r)
 
 # Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = $(KERNEL_DIR)
 
-BUILD_DIR = $(HEADER_DIR)/..
+BUILD_DIR = $(KBUILD_OUTPUT)
 
 DRIVER := vmnet
 PRODUCT := @@PRODUCT@@
diff --git a/work/vsock-only/Makefile b/work/vsock-only/Makefile
index e02adb0..210e502 100644
--- a/work/vsock-only/Makefile
+++ b/work/vsock-only/Makefile
@@ -46,9 +46,9 @@ endif
 VM_UNAME = $(shell uname -r)
 
 # Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = $(KERNEL_DIR)
 
-BUILD_DIR = $(HEADER_DIR)/..
+BUILD_DIR = $(KBUILD_OUTPUT)
 
 DRIVER := vsock
 PRODUCT := ws