open-vm-tools/open-vm-tools-2008.04.14-kver.patch

76 lines
1.8 KiB
Diff

--- modules/linux/vmblock/Makefile
+++ modules/linux/vmblock/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmhgfs/Makefile
+++ modules/linux/vmhgfs/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmmemctl/Makefile
+++ modules/linux/vmmemctl/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmsync/Makefile
+++ modules/linux/vmsync/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmxnet/Makefile
+++ modules/linux/vmxnet/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..