]>
Commit | Line | Data |
---|---|---|
5757c135 ER |
1 | --- vmware-player-distrib/vmware-any-any-update115/vmmon-only/Makefile 2007-11-28 12:39:37.000000000 +0200 |
2 | +++ vmware-player-distrib-new/vmware-any-any-update115/vmmon-only/Makefile 2007-12-17 02:21:20.665830641 +0200 | |
3 | @@ -15,9 +15,9 @@ | |
c805cecc | 4 | VM_UNAME = $(shell uname -r) |
5 | ||
6 | # Header directory for the running kernel | |
7 | -HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include | |
8 | +HEADER_DIR = /usr/src/linux/include | |
9 | ||
10 | -BUILD_DIR = $(HEADER_DIR)/.. | |
11 | +BUILD_DIR = . | |
12 | ||
13 | DRIVER := vmmon | |
14 | ||
5757c135 | 15 | @@ -45,32 +45,6 @@ |
c805cecc | 16 | VM_KBUILD_OUTPUT := $(O) |
17 | endif | |
18 | endif | |
19 | -ifeq ($(VM_KBUILD_OUTPUT),) | |
20 | -VM_KBUILD_OUTPUT := $(BUILD_DIR) | |
21 | -endif | |
22 | -ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) | |
23 | -ifeq ($(call vm_check_file,$(VM_KBUILD_OUTPUT)/.config), no) | |
24 | -VM_DUMMY := $(shell echo >&2 '*** Your sources installation is broken:') | |
25 | -VM_DUMMY := $(shell echo >&2 '*** $(BUILD_DIR) does not contain .config file') | |
26 | -VM_DUMMY := $(shell echo >&2 '*** vmmon/vmnet build may fail, or built vmmon/vmnet may crash.') | |
27 | -ifeq ($(call vm_check_file,/boot/vmlinuz.config), yes) | |
28 | -VM_DUMMY := $(shell echo >&2 '*** You are apparently use SuSE system. You should copy') | |
29 | -VM_DUMMY := $(shell echo >&2 '*** /boot/vmlinuz.config to the $(BUILD_DIR)/.config.') | |
30 | -endif | |
31 | -VM_DUMMY := $(shell echo >&2) | |
32 | -VM_DUMMY := $(shell echo >&2 '*** Hit ENTER to continue, or ^C to stop build.') | |
33 | -VM_DUMMY := $(shell read dummy) | |
34 | -else | |
5757c135 | 35 | -ifeq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) |
c805cecc | 36 | -ifeq ($(shell if $(GREP) "^PATCHLEVEL = 4$$" $(BUILD_DIR)/Makefile > /dev/null 2>&1; then echo "yes"; fi), yes) |
37 | -VM_KBUILD := 24 | |
38 | -endif | |
5757c135 ER |
39 | -else |
40 | -VM_KBUILD := 26 | |
c805cecc | 41 | -endif |
42 | -endif | |
43 | -endif | |
44 | -export VM_KBUILD | |
45 | endif | |
46 | ||
47 | ifndef VM_KBUILD_SHOWN | |
5757c135 | 48 | @@ -91,9 +65,6 @@ |
c805cecc | 49 | |
50 | VMCCVER := $(shell $(CC) -dumpversion) | |
51 | ||
52 | -# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... | |
53 | -ifeq ($(VERSION),) | |
54 | - | |
55 | ifeq ($(VM_KBUILD), 24) | |
56 | DRIVER_KO := $(DRIVER).o | |
57 | else | |
5757c135 | 58 | @@ -109,28 +80,11 @@ |
c805cecc | 59 | $(DRIVER): $(DRIVER_KO) |
5757c135 | 60 | if [ $< -nt $@ ]; then cp -f $< $@; fi |
c805cecc | 61 | |
62 | -# Pass gcc version down the chain, so we can detect if kernel attempts to use unapproved compiler | |
63 | -VM_CCVER := $(VMCCVER) | |
64 | -export VM_CCVER | |
65 | -VM_CC := $(CC) | |
66 | -export VM_CC | |
67 | - | |
c805cecc | 68 | MAKEOVERRIDES := $(filter-out CC=%,$(MAKEOVERRIDES)) |
5757c135 | 69 | |
c805cecc | 70 | $(DRIVER_KO): |
71 | make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules | |
72 | ||
73 | -else | |
74 | - | |
75 | -ifneq ($(VM_CCVER), $(VMCCVER)) | |
76 | -$(warning *** Inappropriate build environment: you wanted to use gcc \ | |
77 | - version $(VM_CCVER) while kernel attempts to use gcc version $(VMCCVER).) | |
78 | -$(error For proper build you'll have to replace $(CC) with symbolic \ | |
79 | - link to $(VM_CC)) | |
80 | -endif | |
81 | - | |
82 | -endif | |
5757c135 ER |
83 | - |
84 | VMWARE_DEBUG_REDIRECT := > /dev/null 2>&1 | |
85 | ifeq ($(VMWARE_DEBUG_AUTOCONF),y) | |
86 | ifneq ($(VERSION),) | |
87 | @@ -157,17 +111,6 @@ | |
c805cecc | 88 | |
89 | include $(SRCROOT)/Makefile.kernel | |
90 | ||
91 | -ifdef TOPDIR | |
92 | -ifeq ($(VM_KBUILD), 24) | |
93 | - | |
94 | -O_TARGET := $(DRIVER).o | |
95 | - | |
96 | -obj-y := $($(DRIVER)-y) | |
97 | - | |
98 | -include $(TOPDIR)/Rules.make | |
99 | -endif | |
100 | -endif | |
101 | - | |
102 | else | |
103 | ||
104 | include $(SRCROOT)/Makefile.normal | |
5757c135 ER |
105 | --- vmware-player-distrib/vmware-any-any-update115/vmnet-only/Makefile 2007-11-28 12:19:12.000000000 +0200 |
106 | +++ vmware-player-distrib-new/vmware-any-any-update115/vmnet-only/Makefile 2007-12-17 02:19:06.321685076 +0200 | |
107 | @@ -15,9 +15,9 @@ | |
c805cecc | 108 | VM_UNAME = $(shell uname -r) |
109 | ||
110 | # Header directory for the running kernel | |
111 | -HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include | |
112 | +HEADER_DIR = /usr/src/linux/include | |
113 | ||
114 | -BUILD_DIR = $(HEADER_DIR)/.. | |
115 | +BUILD_DIR = . | |
116 | ||
117 | DRIVER := vmnet | |
118 | ||
5757c135 | 119 | @@ -48,29 +48,6 @@ |
c805cecc | 120 | ifeq ($(VM_KBUILD_OUTPUT),) |
121 | VM_KBUILD_OUTPUT := $(BUILD_DIR) | |
122 | endif | |
123 | -ifeq ($(call vm_check_file,$(BUILD_DIR)/Makefile), yes) | |
124 | -ifeq ($(call vm_check_file,$(VM_KBUILD_OUTPUT)/.config), no) | |
125 | -VM_DUMMY := $(shell echo >&2 '*** Your sources installation is broken:') | |
126 | -VM_DUMMY := $(shell echo >&2 '*** $(BUILD_DIR) does not contain .config file') | |
127 | -VM_DUMMY := $(shell echo >&2 '*** vmmon/vmnet build may fail, or built vmmon/vmnet may crash.') | |
128 | -ifeq ($(call vm_check_file,/boot/vmlinuz.config), yes) | |
129 | -VM_DUMMY := $(shell echo >&2 '*** You are apparently use SuSE system. You should copy') | |
130 | -VM_DUMMY := $(shell echo >&2 '*** /boot/vmlinuz.config to the $(BUILD_DIR)/.config.') | |
131 | -endif | |
132 | -VM_DUMMY := $(shell echo >&2) | |
133 | -VM_DUMMY := $(shell echo >&2 '*** Hit ENTER to continue, or ^C to stop build.') | |
134 | -VM_DUMMY := $(shell read dummy) | |
135 | -else | |
136 | -ifeq ($(call vm_check_file,$(BUILD_DIR)/Rules.make), yes) | |
137 | -ifeq ($(shell if $(GREP) "^PATCHLEVEL = 4$$" $(BUILD_DIR)/Makefile > /dev/null 2>&1; then echo "yes"; fi), yes) | |
138 | -VM_KBUILD := 24 | |
139 | -endif | |
140 | -else | |
141 | -VM_KBUILD := 26 | |
142 | -endif | |
143 | -endif | |
144 | -endif | |
145 | -export VM_KBUILD | |
146 | endif | |
147 | ||
148 | ifndef VM_KBUILD_SHOWN | |
5757c135 | 149 | @@ -91,9 +68,6 @@ |
c805cecc | 150 | |
151 | VMCCVER := $(shell $(CC) -dumpversion) | |
152 | ||
153 | -# If there is no version defined, we are in toplevel pass, not yet in kernel makefiles... | |
154 | -ifeq ($(VERSION),) | |
155 | - | |
156 | ifeq ($(VM_KBUILD), 24) | |
157 | DRIVER_KO := $(DRIVER).o | |
158 | else |