]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Linux kernel modules: remove pre 2.6 support from makefiles
authorVMware, Inc <>
Wed, 18 Sep 2013 03:22:43 +0000 (20:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:06:58 +0000 (22:06 -0700)
Since pre 2.6.9 support was moved off to legacy branch we do not need
it here.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/modules/linux/vmblock/Makefile
open-vm-tools/modules/linux/vmci/Makefile
open-vm-tools/modules/linux/vmhgfs/Makefile
open-vm-tools/modules/linux/vmsync/Makefile
open-vm-tools/modules/linux/vmxnet/Makefile
open-vm-tools/modules/linux/vsock/Makefile

index 87fb34c24d129a64a9eaa72576e0317f8d3fba66..36529cd69296b4f34acf0795cc13ff69114f6e5c 100644 (file)
@@ -67,9 +67,7 @@ vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi)
 ifndef VM_KBUILD
 VM_KBUILD := no
 ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
-ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
-VM_KBUILD := 26
-endif
+VM_KBUILD := yes
 endif
 export VM_KBUILD
 endif
@@ -78,11 +76,7 @@ ifndef VM_KBUILD_SHOWN
 ifeq ($(VM_KBUILD), no)
 VM_DUMMY := $(shell echo >&2 "Using standalone build system.")
 else
-ifeq ($(VM_KBUILD), 24)
-VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.")
-else
-VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.")
-endif
+VM_DUMMY := $(shell echo >&2 "Using kernel build system.")
 endif
 VM_KBUILD_SHOWN := yes
 export VM_KBUILD_SHOWN
@@ -95,11 +89,7 @@ VMCCVER := $(shell $(CC) -dumpversion)
 # If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
 ifeq ($(VERSION),)
 
-ifeq ($(VM_KBUILD), 24)
-DRIVER_KO := $(DRIVER).o
-else
 DRIVER_KO := $(DRIVER).ko
-endif
 
 .PHONY: $(DRIVER_KO)
 
@@ -151,17 +141,6 @@ endif
 
 include $(SRCROOT)/Makefile.kernel
 
-ifdef TOPDIR
-ifeq ($(VM_KBUILD), 24)
-
-O_TARGET := $(DRIVER).o
-
-obj-y := $($(DRIVER)-y)
-
-include $(TOPDIR)/Rules.make
-endif
-endif
-
 else
 
 include $(SRCROOT)/Makefile.normal
index a8cc0b703823b37ffb85c6e336ec5634cc1bec3e..3ff28c4b99add8bfbe979d19e32424e9ca024f19 100644 (file)
@@ -67,9 +67,7 @@ vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi)
 ifndef VM_KBUILD
 VM_KBUILD := no
 ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
-ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
-VM_KBUILD := 26
-endif
+VM_KBUILD := yes
 endif
 export VM_KBUILD
 endif
@@ -78,11 +76,7 @@ ifndef VM_KBUILD_SHOWN
 ifeq ($(VM_KBUILD), no)
 VM_DUMMY := $(shell echo >&2 "Using standalone build system.")
 else
-ifeq ($(VM_KBUILD), 24)
-VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.")
-else
-VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.")
-endif
+VM_DUMMY := $(shell echo >&2 "Using kernel build system.")
 endif
 VM_KBUILD_SHOWN := yes
 export VM_KBUILD_SHOWN
@@ -95,11 +89,7 @@ VMCCVER := $(shell $(CC) -dumpversion)
 # If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
 ifeq ($(VERSION),)
 
-ifeq ($(VM_KBUILD), 24)
-DRIVER_KO := $(DRIVER).o
-else
 DRIVER_KO := $(DRIVER).ko
-endif
 
 .PHONY: $(DRIVER_KO)
 
@@ -151,17 +141,6 @@ endif
 
 include $(SRCROOT)/Makefile.kernel
 
-ifdef TOPDIR
-ifeq ($(VM_KBUILD), 24)
-
-O_TARGET := $(DRIVER).o
-
-obj-y := $($(DRIVER)-y)
-
-include $(TOPDIR)/Rules.make
-endif
-endif
-
 else
 
 include $(SRCROOT)/Makefile.normal
index 7b36262e15e1abfe92de9a6a55ad114b83233997..e7e3eaf4e8415fd3a522795e6e59b3f3121f39d3 100644 (file)
@@ -67,9 +67,7 @@ vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi)
 ifndef VM_KBUILD
 VM_KBUILD := no
 ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
-ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
-VM_KBUILD := 26
-endif
+VM_KBUILD := yes
 endif
 export VM_KBUILD
 endif
@@ -78,11 +76,7 @@ ifndef VM_KBUILD_SHOWN
 ifeq ($(VM_KBUILD), no)
 VM_DUMMY := $(shell echo >&2 "Using standalone build system.")
 else
-ifeq ($(VM_KBUILD), 24)
-VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.")
-else
-VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.")
-endif
+VM_DUMMY := $(shell echo >&2 "Using kernel build system.")
 endif
 VM_KBUILD_SHOWN := yes
 export VM_KBUILD_SHOWN
@@ -95,11 +89,7 @@ VMCCVER := $(shell $(CC) -dumpversion)
 # If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
 ifeq ($(VERSION),)
 
-ifeq ($(VM_KBUILD), 24)
-DRIVER_KO := $(DRIVER).o
-else
 DRIVER_KO := $(DRIVER).ko
-endif
 
 .PHONY: $(DRIVER_KO)
 
@@ -151,17 +141,6 @@ endif
 
 include $(SRCROOT)/Makefile.kernel
 
-ifdef TOPDIR
-ifeq ($(VM_KBUILD), 24)
-
-O_TARGET := $(DRIVER).o
-
-obj-y := $($(DRIVER)-y)
-
-include $(TOPDIR)/Rules.make
-endif
-endif
-
 else
 
 include $(SRCROOT)/Makefile.normal
index 4a738d7eec7e5a20fddc53e70803b95e33f725db..4d81760cb358a86836dec76b64d666624782e1f0 100644 (file)
@@ -67,9 +67,7 @@ vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi)
 ifndef VM_KBUILD
 VM_KBUILD := no
 ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
-ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
-VM_KBUILD := 26
-endif
+VM_KBUILD := yes
 endif
 export VM_KBUILD
 endif
@@ -78,11 +76,7 @@ ifndef VM_KBUILD_SHOWN
 ifeq ($(VM_KBUILD), no)
 VM_DUMMY := $(shell echo >&2 "Using standalone build system.")
 else
-ifeq ($(VM_KBUILD), 24)
-VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.")
-else
-VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.")
-endif
+VM_DUMMY := $(shell echo >&2 "Using kernel build system.")
 endif
 VM_KBUILD_SHOWN := yes
 export VM_KBUILD_SHOWN
@@ -95,11 +89,7 @@ VMCCVER := $(shell $(CC) -dumpversion)
 # If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
 ifeq ($(VERSION),)
 
-ifeq ($(VM_KBUILD), 24)
-DRIVER_KO := $(DRIVER).o
-else
 DRIVER_KO := $(DRIVER).ko
-endif
 
 .PHONY: $(DRIVER_KO)
 
@@ -151,17 +141,6 @@ endif
 
 include $(SRCROOT)/Makefile.kernel
 
-ifdef TOPDIR
-ifeq ($(VM_KBUILD), 24)
-
-O_TARGET := $(DRIVER).o
-
-obj-y := $($(DRIVER)-y)
-
-include $(TOPDIR)/Rules.make
-endif
-endif
-
 else
 
 include $(SRCROOT)/Makefile.normal
index e22db6c312000e2e7e3a6cebd1835c4ac8828f28..4264b475cea7dfe9b9a1ca7779eebe51302201e8 100644 (file)
@@ -67,9 +67,7 @@ vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi)
 ifndef VM_KBUILD
 VM_KBUILD := no
 ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
-ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
-VM_KBUILD := 26
-endif
+VM_KBUILD := yes
 endif
 export VM_KBUILD
 endif
@@ -78,11 +76,7 @@ ifndef VM_KBUILD_SHOWN
 ifeq ($(VM_KBUILD), no)
 VM_DUMMY := $(shell echo >&2 "Using standalone build system.")
 else
-ifeq ($(VM_KBUILD), 24)
-VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.")
-else
-VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.")
-endif
+VM_DUMMY := $(shell echo >&2 "Using kernel build system.")
 endif
 VM_KBUILD_SHOWN := yes
 export VM_KBUILD_SHOWN
@@ -95,11 +89,7 @@ VMCCVER := $(shell $(CC) -dumpversion)
 # If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
 ifeq ($(VERSION),)
 
-ifeq ($(VM_KBUILD), 24)
-DRIVER_KO := $(DRIVER).o
-else
 DRIVER_KO := $(DRIVER).ko
-endif
 
 .PHONY: $(DRIVER_KO)
 
@@ -151,17 +141,6 @@ endif
 
 include $(SRCROOT)/Makefile.kernel
 
-ifdef TOPDIR
-ifeq ($(VM_KBUILD), 24)
-
-O_TARGET := $(DRIVER).o
-
-obj-y := $($(DRIVER)-y)
-
-include $(TOPDIR)/Rules.make
-endif
-endif
-
 else
 
 include $(SRCROOT)/Makefile.normal
index 90f7c94efc5badd43b27e83ba79d5403279cab5e..852c93455d44f50293f874b78bc33f9e3aff09e9 100644 (file)
@@ -67,9 +67,7 @@ vm_check_file = $(shell if test -f $(1); then echo "yes"; else echo "no"; fi)
 ifndef VM_KBUILD
 VM_KBUILD := no
 ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes)
-ifneq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes)
-VM_KBUILD := 26
-endif
+VM_KBUILD := yes
 endif
 export VM_KBUILD
 endif
@@ -78,11 +76,7 @@ ifndef VM_KBUILD_SHOWN
 ifeq ($(VM_KBUILD), no)
 VM_DUMMY := $(shell echo >&2 "Using standalone build system.")
 else
-ifeq ($(VM_KBUILD), 24)
-VM_DUMMY := $(shell echo >&2 "Using 2.4.x kernel build system.")
-else
-VM_DUMMY := $(shell echo >&2 "Using 2.6.x kernel build system.")
-endif
+VM_DUMMY := $(shell echo >&2 "Using kernel build system.")
 endif
 VM_KBUILD_SHOWN := yes
 export VM_KBUILD_SHOWN
@@ -95,11 +89,7 @@ VMCCVER := $(shell $(CC) -dumpversion)
 # If there is no version defined, we are in toplevel pass, not yet in kernel makefiles...
 ifeq ($(VERSION),)
 
-ifeq ($(VM_KBUILD), 24)
-DRIVER_KO := $(DRIVER).o
-else
 DRIVER_KO := $(DRIVER).ko
-endif
 
 .PHONY: $(DRIVER_KO)
 
@@ -151,17 +141,6 @@ endif
 
 include $(SRCROOT)/Makefile.kernel
 
-ifdef TOPDIR
-ifeq ($(VM_KBUILD), 24)
-
-O_TARGET := $(DRIVER).o
-
-obj-y := $($(DRIVER)-y)
-
-include $(TOPDIR)/Rules.make
-endif
-endif
-
 else
 
 include $(SRCROOT)/Makefile.normal