1 | # $Id: Makefile.kmk 19957 2009-05-24 02:47:43Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the VMM.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | # Include sub-makefiles.
|
---|
26 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
27 |
|
---|
28 |
|
---|
29 | #
|
---|
30 | # VMMR3.dll
|
---|
31 | #
|
---|
32 | LIBRARIES += VMMR3
|
---|
33 |
|
---|
34 | VMMR3_TEMPLATE = VBOXR3
|
---|
35 | VMMR3_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG
|
---|
36 | ## @todo eliminate IN_GMM_R3
|
---|
37 | ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
38 | VMMR3_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
39 | endif
|
---|
40 | ifdef VBOX_WITH_R0_LOGGING
|
---|
41 | VMMR3_DEFS += VBOX_WITH_R0_LOGGING
|
---|
42 | endif
|
---|
43 | VMMR3_DEFS.darwin.x86 = \
|
---|
44 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R3 \
|
---|
45 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R3
|
---|
46 | VMMR3_INCS := \
|
---|
47 | $(PATH_SUB_CURRENT) \
|
---|
48 | PATM
|
---|
49 |
|
---|
50 | VMMR3_SOURCES = \
|
---|
51 | CFGM.cpp \
|
---|
52 | CPUM.cpp \
|
---|
53 | DBGF.cpp \
|
---|
54 | DBGFAddr.cpp \
|
---|
55 | DBGFAddrSpace.cpp \
|
---|
56 | DBGFBp.cpp \
|
---|
57 | DBGFDisas.cpp \
|
---|
58 | DBGFInfo.cpp \
|
---|
59 | DBGFLog.cpp \
|
---|
60 | DBGFMem.cpp \
|
---|
61 | DBGFOS.cpp \
|
---|
62 | DBGFStack.cpp \
|
---|
63 | DBGFSym.cpp \
|
---|
64 | EM.cpp \
|
---|
65 | IOM.cpp \
|
---|
66 | GMM.cpp \
|
---|
67 | MM.cpp \
|
---|
68 | MMHeap.cpp \
|
---|
69 | MMHyper.cpp \
|
---|
70 | MMPagePool.cpp \
|
---|
71 | MMUkHeap.cpp \
|
---|
72 | PDM.cpp \
|
---|
73 | PDMDevice.cpp \
|
---|
74 | PDMDevHlp.cpp \
|
---|
75 | PDMDevMiscHlp.cpp \
|
---|
76 | PDMDriver.cpp \
|
---|
77 | PDMLdr.cpp \
|
---|
78 | PDMCritSect.cpp \
|
---|
79 | PDMQueue.cpp \
|
---|
80 | PDMThread.cpp \
|
---|
81 | PGM.cpp \
|
---|
82 | PGMDbg.cpp \
|
---|
83 | PGMHandler.cpp \
|
---|
84 | PGMMap.cpp \
|
---|
85 | PGMPhys.cpp \
|
---|
86 | PGMPool.cpp \
|
---|
87 | SELM.cpp \
|
---|
88 | SSM.cpp \
|
---|
89 | STAM.cpp \
|
---|
90 | TM.cpp \
|
---|
91 | TRPM.cpp \
|
---|
92 | VM.cpp \
|
---|
93 | VMEmt.cpp \
|
---|
94 | VMReq.cpp \
|
---|
95 | VMM.cpp \
|
---|
96 | VMMGuruMeditation.cpp \
|
---|
97 | VMMSwitcher.cpp \
|
---|
98 | VMMTests.cpp \
|
---|
99 | HWACCM.cpp \
|
---|
100 | VMMAll/CPUMAllRegs.cpp \
|
---|
101 | VMMAll/CPUMStack.cpp \
|
---|
102 | VMMAll/DBGFAll.cpp \
|
---|
103 | VMMAll/HWACCMAll.cpp \
|
---|
104 | VMMAll/IOMAll.cpp \
|
---|
105 | VMMAll/IOMAllMMIO.cpp \
|
---|
106 | VMMAll/MMAll.cpp \
|
---|
107 | VMMAll/MMAllHyper.cpp \
|
---|
108 | VMMAll/MMAllPagePool.cpp \
|
---|
109 | VMMAll/PDMAll.cpp \
|
---|
110 | VMMAll/PDMAllCritSect.cpp \
|
---|
111 | VMMAll/PDMAllQueue.cpp \
|
---|
112 | VMMAll/PGMAll.cpp \
|
---|
113 | VMMAll/PGMAllHandler.cpp \
|
---|
114 | VMMAll/PGMAllMap.cpp \
|
---|
115 | VMMAll/PGMAllPhys.cpp \
|
---|
116 | VMMAll/PGMAllPool.cpp \
|
---|
117 | VMMAll/REMAll.cpp \
|
---|
118 | VMMAll/SELMAll.cpp \
|
---|
119 | VMMAll/EMAll.cpp \
|
---|
120 | VMMAll/EMAllA.asm \
|
---|
121 | VMMAll/TMAll.cpp \
|
---|
122 | VMMAll/TMAllCpu.cpp \
|
---|
123 | VMMAll/TMAllReal.cpp \
|
---|
124 | VMMAll/TMAllVirtual.cpp \
|
---|
125 | VMMAll/TRPMAll.cpp \
|
---|
126 | VMMAll/VMAll.cpp \
|
---|
127 | VMMAll/VMMAll.cpp \
|
---|
128 | PATM/CSAM.cpp \
|
---|
129 | PATM/VMMAll/CSAMAll.cpp \
|
---|
130 | PATM/PATM.cpp \
|
---|
131 | PATM/PATMPatch.cpp \
|
---|
132 | PATM/PATMGuest.cpp \
|
---|
133 | PATM/PATMA.asm \
|
---|
134 | PATM/PATMSSM.cpp \
|
---|
135 | PATM/VMMAll/PATMAll.cpp
|
---|
136 | VMMR3_SOURCES.x86 += \
|
---|
137 | VMMSwitcher/32BitTo32Bit.asm \
|
---|
138 | VMMSwitcher/32BitToPAE.asm \
|
---|
139 | VMMSwitcher/32BitToAMD64.asm \
|
---|
140 | VMMSwitcher/PAETo32Bit.asm \
|
---|
141 | VMMSwitcher/PAEToAMD64.asm \
|
---|
142 | VMMSwitcher/PAEToPAE.asm
|
---|
143 | VMMR3_SOURCES.amd64 = \
|
---|
144 | VMMSwitcher/AMD64To32Bit.asm \
|
---|
145 | VMMSwitcher/AMD64ToPAE.asm
|
---|
146 | VMMR3_SOURCES.darwin.x86 += \
|
---|
147 | VMMSwitcher/AMD64ToPAE.asm
|
---|
148 |
|
---|
149 | ifdef VBOX_WITH_VMI
|
---|
150 | VMMR3_DEFS += \
|
---|
151 | VBOX_WITH_VMI
|
---|
152 | VMMR3_INCS += \
|
---|
153 | PARAV
|
---|
154 | VMMR3_SOURCES += \
|
---|
155 | PARAV/PARAV.cpp \
|
---|
156 | PARAV/PARAVAll.cpp
|
---|
157 | endif
|
---|
158 |
|
---|
159 | ifdef VBOX_WITH_USB
|
---|
160 | VMMR3_DEFS += VBOX_WITH_USB
|
---|
161 | VMMR3_SOURCES += PDMUsb.cpp
|
---|
162 | endif
|
---|
163 |
|
---|
164 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
165 | VMMR3_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
166 | VMMR3_DEFS.linux += __USE_FILE_OFFSET64 __USE_LARGEFILE64
|
---|
167 | VMMR3_SOURCES += PDMAsyncCompletion.cpp
|
---|
168 | VMMR3_SOURCES.linux += \
|
---|
169 | PDMAsyncCompletionSocketPosix.cpp \
|
---|
170 | PDMAsyncCompletionHostPosix.cpp
|
---|
171 |
|
---|
172 | VMMR3_SOURCES.win += \
|
---|
173 | PDMAsyncCompletionSocketWin.cpp \
|
---|
174 | PDMAsyncCompletionHostWin.cpp
|
---|
175 |
|
---|
176 | VMMR3_SOURCES.solaris += \
|
---|
177 | PDMAsyncCompletionSocketPosix.cpp \
|
---|
178 | PDMAsyncCompletionHostSolaris.cpp
|
---|
179 |
|
---|
180 | VMMR3_SOURCES.darwin += \
|
---|
181 | PDMAsyncCompletionSocketPosix.cpp \
|
---|
182 | PDMAsyncCompletionHostPosix.cpp
|
---|
183 |
|
---|
184 | VMMR3_SOURCES.freebsd += \
|
---|
185 | PDMAsyncCompletionSocketPosix.cpp \
|
---|
186 | PDMAsyncCompletionHostFreeBSD.cpp
|
---|
187 |
|
---|
188 | endif
|
---|
189 |
|
---|
190 | #
|
---|
191 | # The VMM DLL.
|
---|
192 | #
|
---|
193 | DLLS += VBoxVMM
|
---|
194 |
|
---|
195 | VBoxVMM_TEMPLATE = VBOXR3
|
---|
196 | VBoxVMM_DEFS = $(VMMR3_DEFS)
|
---|
197 | VBoxVMM_DEFS.$(KBUILD_TARGET) = $(VMMR3_DEFS.$(KBUILD_TARGET))
|
---|
198 | VBoxVMM_SOURCES = VBoxVMMDeps.cpp
|
---|
199 | VBoxVMM_SONAME.linux = VBoxVMM.so
|
---|
200 |
|
---|
201 | VBoxVMM_LIBS = \
|
---|
202 | $(PATH_LIB)/VMMR3$(VBOX_SUFF_LIB) \
|
---|
203 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
204 | ifdef VBOX_WITH_DEBUGGER
|
---|
205 | VBoxVMM_LIBS += \
|
---|
206 | $(PATH_LIB)/Debugger$(VBOX_SUFF_LIB)
|
---|
207 | endif
|
---|
208 | VBoxVMM_LIBS += \
|
---|
209 | $(LIB_REM) \
|
---|
210 | $(LIB_RUNTIME)
|
---|
211 |
|
---|
212 | VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
213 | VBoxVMM_LDFLAGS.win = /DELAYLOAD:dbghelp.dll
|
---|
214 | VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined
|
---|
215 | VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
|
---|
216 | VBoxVMM_LDFLAGS.solaris = -mimpure-text
|
---|
217 | #ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
218 | # ifeq ($(KBUILD_HOST), linux)
|
---|
219 | #VBoxVMM_LIBS += aio
|
---|
220 | # endif
|
---|
221 | #endif
|
---|
222 |
|
---|
223 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
224 |
|
---|
225 | #
|
---|
226 | # VMMGCBuiltin.lib
|
---|
227 | #
|
---|
228 | LIBRARIES += VMMGCBuiltin
|
---|
229 | VMMGCBuiltin_TEMPLATE = VBOXGC
|
---|
230 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
231 | VMMGCBuiltin_SOURCES = VMMGC/VMMGCBuiltin.def
|
---|
232 | endif
|
---|
233 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
234 | VMMGCBuiltin_SOURCES = $(PATH_VMMGCBuiltin)/VMMGCBuiltin.def
|
---|
235 | $$(PATH_VMMGCBuiltin)/VMMGCBuiltin.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGCBuiltin.def | $$(dir $$@)
|
---|
236 | $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
|
---|
237 | endif
|
---|
238 |
|
---|
239 |
|
---|
240 | #
|
---|
241 | # VMMGCImp.lib
|
---|
242 | #
|
---|
243 | LIBRARIES += VMMGCImp
|
---|
244 | VMMGCImp_TEMPLATE = VBOXGC
|
---|
245 | VMMGCImp_SOURCES = $(PATH_VMMGCImp)/VMMGC.def
|
---|
246 | VMMGCImp_CLEAN = $(PATH_VMMGCImp)/VMMGC.def
|
---|
247 |
|
---|
248 | $$(PATH_VMMGCImp)/VMMGC.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGC.def | $$(dir $$@)
|
---|
249 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
250 | $(SED) \
|
---|
251 | -e '/not-os2/d' \
|
---|
252 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
|
---|
253 | -e 's/[ \t]DATA[ \t]*/ /' \
|
---|
254 | --output $@ \
|
---|
255 | $<
|
---|
256 | $(APPEND) "$@" ""
|
---|
257 | $(APPEND) "$@" " ___ehInit"
|
---|
258 | else
|
---|
259 | $(SED) \
|
---|
260 | -e '/not-win/d' \
|
---|
261 | -e '/not-$(KBUILD_TARGET_ARCH)/d' \
|
---|
262 | --output $@ $<
|
---|
263 | endif
|
---|
264 |
|
---|
265 | endif # RC: pe + lx
|
---|
266 |
|
---|
267 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
268 | #
|
---|
269 | # VMMR0Imp.lib
|
---|
270 | #
|
---|
271 | LIBRARIES += VMMR0Imp
|
---|
272 | VMMR0Imp_TEMPLATE = VBOXR0
|
---|
273 | VMMR0Imp_SOURCES = $(PATH_VMMR0Imp)/VMMR0.def
|
---|
274 | VMMR0Imp_CLEAN = $(PATH_VMMR0Imp)/VMMR0.def
|
---|
275 |
|
---|
276 | $$(PATH_VMMR0Imp)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
|
---|
277 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
278 | $(SED) \
|
---|
279 | -e '/not-os2/d' \
|
---|
280 | -e '/not-amd64/d' \
|
---|
281 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
|
---|
282 | -e 's/[ \t]DATA[ \t]*/ /' \
|
---|
283 | --output $@ $<
|
---|
284 | $(APPEND) "$@" ""
|
---|
285 | $(APPEND) "$@" " ___ehInit"
|
---|
286 | else
|
---|
287 | $(SED) \
|
---|
288 | -e '/not-win/d' \
|
---|
289 | -e '/not-$(KBUILD_TARGET_ARCH)/d' \
|
---|
290 | --output $@ $<
|
---|
291 | endif
|
---|
292 | endif # R0: pe + lx
|
---|
293 |
|
---|
294 |
|
---|
295 | #
|
---|
296 | # VMMGC.gc
|
---|
297 | #
|
---|
298 | SYSMODS += VMMGC
|
---|
299 | VMMGC_TEMPLATE = VBOXGC
|
---|
300 | VMMGC_INCS := \
|
---|
301 | $(PATH_SUB_CURRENT) \
|
---|
302 | VMMGC \
|
---|
303 | PATM
|
---|
304 | VMMGC_DEFS = IN_VMM_RC IN_RT_GC IN_RT_RC IN_DIS DIS_CORE_ONLY
|
---|
305 | ifdef VBOX_WITH_R0_LOGGING
|
---|
306 | VMMGC_DEFS += VBOX_WITH_R0_LOGGING
|
---|
307 | endif
|
---|
308 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
309 | VMMGC_DEFS.darwin = \
|
---|
310 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_RC \
|
---|
311 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_RC
|
---|
312 | endif
|
---|
313 | VMMGC_SYSSUFF = .gc
|
---|
314 | VMMGC_LIBS = \
|
---|
315 | $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
|
---|
316 | $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB)
|
---|
317 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
318 | VMMGC_LIBS += \
|
---|
319 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
|
---|
320 | endif
|
---|
321 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
322 | VMMGC_LDFLAGS = -Entry:VMMGCEntry
|
---|
323 | endif
|
---|
324 | VMMGC_SOURCES = \
|
---|
325 | VMMGC/VMMGC0.asm \
|
---|
326 | VMMGC/VMMGCDeps.cpp \
|
---|
327 | VMMGC/CPUMGC.cpp \
|
---|
328 | VMMGC/CPUMGCA.asm \
|
---|
329 | VMMGC/EMGCA.asm \
|
---|
330 | VMMGC/IOMGC.cpp \
|
---|
331 | VMMGC/MMRamGC.cpp \
|
---|
332 | VMMGC/MMRamGCA.asm \
|
---|
333 | VMMGC/PDMGCDevice.cpp \
|
---|
334 | VMMGC/PGMGC.cpp \
|
---|
335 | VMMGC/SELMGC.cpp \
|
---|
336 | VMMGC/TRPMGC.cpp \
|
---|
337 | VMMGC/TRPMGCHandlers.cpp \
|
---|
338 | VMMGC/TRPMGCHandlersA.asm \
|
---|
339 | VMMGC/VMMGC.cpp \
|
---|
340 | VMMGC/VMMGCA.asm \
|
---|
341 | VMMGC/HWACCMGCA.asm \
|
---|
342 | VMMRZ/DBGFRZ.cpp \
|
---|
343 | VMMAll/CPUMAllRegs.cpp \
|
---|
344 | VMMAll/CPUMAllA.asm \
|
---|
345 | VMMAll/DBGFAll.cpp \
|
---|
346 | VMMAll/IOMAll.cpp \
|
---|
347 | VMMAll/IOMAllMMIO.cpp \
|
---|
348 | VMMAll/EMAll.cpp \
|
---|
349 | VMMAll/EMAllA.asm \
|
---|
350 | VMMAll/MMAll.cpp \
|
---|
351 | VMMAll/MMAllHyper.cpp \
|
---|
352 | VMMAll/PDMAll.cpp \
|
---|
353 | VMMAll/PDMAllCritSect.cpp \
|
---|
354 | VMMAll/PDMAllQueue.cpp \
|
---|
355 | VMMAll/PGMAll.cpp \
|
---|
356 | VMMAll/PGMAllHandler.cpp \
|
---|
357 | VMMAll/PGMAllMap.cpp \
|
---|
358 | VMMAll/PGMAllPhys.cpp \
|
---|
359 | VMMAll/PGMAllPool.cpp \
|
---|
360 | VMMAll/REMAll.cpp \
|
---|
361 | VMMAll/SELMAll.cpp \
|
---|
362 | VMMAll/TMAll.cpp \
|
---|
363 | VMMAll/TMAllCpu.cpp \
|
---|
364 | VMMAll/TMAllReal.cpp \
|
---|
365 | VMMAll/TMAllVirtual.cpp \
|
---|
366 | VMMAll/TRPMAll.cpp \
|
---|
367 | VMMAll/VMAll.cpp \
|
---|
368 | VMMAll/VMMAll.cpp \
|
---|
369 | PATM/VMMGC/CSAMGC.cpp \
|
---|
370 | PATM/VMMAll/CSAMAll.cpp \
|
---|
371 | PATM/VMMGC/PATMGC.cpp \
|
---|
372 | PATM/VMMAll/PATMAll.cpp
|
---|
373 |
|
---|
374 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
375 | VMMGC_SOURCES += VMMGC/VMMGC.def
|
---|
376 | endif
|
---|
377 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
378 | VMMGC_SOURCES += $(PATH_VMMGCImp)/VMMGC.def
|
---|
379 | endif
|
---|
380 |
|
---|
381 | ifdef VBOX_WITH_VMI
|
---|
382 | VMMGC_DEFS += \
|
---|
383 | VBOX_WITH_VMI
|
---|
384 | VMMGC_SOURCES += \
|
---|
385 | PARAV/PARAV.cpp \
|
---|
386 | PARAV/PARAVAll.cpp
|
---|
387 | endif
|
---|
388 |
|
---|
389 | # the very last one.
|
---|
390 | VMMGC_SOURCES += VMMGC/VMMGC99.asm
|
---|
391 |
|
---|
392 | VMMGC/VMMGCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMGCDeps.cpp to .c
|
---|
393 |
|
---|
394 |
|
---|
395 | #
|
---|
396 | # VMMR0.r0
|
---|
397 | #
|
---|
398 | SYSMODS += VMMR0
|
---|
399 | VMMR0_TEMPLATE = VBOXR0
|
---|
400 | VMMR0_INCS := \
|
---|
401 | $(PATH_SUB_CURRENT) \
|
---|
402 | PATM
|
---|
403 | VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 RTASSERT_HAVE_SHOULD_PANIC
|
---|
404 | ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
|
---|
405 | ifdef VBOX_WITH_R0_LOGGING
|
---|
406 | VMMR0_DEFS += VBOX_WITH_R0_LOGGING
|
---|
407 | endif
|
---|
408 | ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
|
---|
409 | VMMR0_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
|
---|
410 | endif
|
---|
411 | VMMR0_DEFS.darwin.x86 = \
|
---|
412 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 \
|
---|
413 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0
|
---|
414 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
415 | VMMR0_LDFLAGS = -Entry:VMMR0EntryEx
|
---|
416 | endif
|
---|
417 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
418 | VMMR0_LDFLAGS = -e VMMR0EntryEx
|
---|
419 | endif
|
---|
420 | VMMR0_SYSSUFF = .r0
|
---|
421 | VMMR0_SOURCES = \
|
---|
422 | VMMR0/CPUMR0.cpp \
|
---|
423 | VMMR0/CPUMR0A.asm \
|
---|
424 | VMMR0/GMMR0.cpp \
|
---|
425 | VMMR0/GVMMR0.cpp \
|
---|
426 | VMMR0/HWACCMR0.cpp \
|
---|
427 | VMMR0/HWACCMR0A.asm \
|
---|
428 | VMMR0/HWSVMR0.cpp \
|
---|
429 | VMMR0/HWVMXR0.cpp \
|
---|
430 | VMMR0/PDMR0Device.cpp \
|
---|
431 | VMMR0/PGMR0.cpp \
|
---|
432 | VMMR0/TRPMR0.cpp \
|
---|
433 | VMMR0/TRPMR0A.asm \
|
---|
434 | VMMR0/VMMR0.cpp \
|
---|
435 | VMMR0/VMMR0A.asm \
|
---|
436 | VMMRZ/DBGFRZ.cpp \
|
---|
437 | VMMAll/CPUMAllA.asm \
|
---|
438 | VMMAll/CPUMAllRegs.cpp \
|
---|
439 | VMMAll/CPUMStack.cpp \
|
---|
440 | VMMAll/DBGFAll.cpp \
|
---|
441 | VMMAll/EMAll.cpp \
|
---|
442 | VMMAll/EMAllA.asm \
|
---|
443 | VMMAll/HWACCMAll.cpp \
|
---|
444 | VMMAll/IOMAll.cpp \
|
---|
445 | VMMAll/IOMAllMMIO.cpp \
|
---|
446 | VMMAll/MMAll.cpp \
|
---|
447 | VMMAll/MMAllHyper.cpp \
|
---|
448 | VMMAll/MMAllPagePool.cpp \
|
---|
449 | VMMAll/PDMAll.cpp \
|
---|
450 | VMMAll/PDMAllCritSect.cpp \
|
---|
451 | VMMAll/PDMAllQueue.cpp \
|
---|
452 | VMMAll/PGMAll.cpp \
|
---|
453 | VMMAll/PGMAllHandler.cpp \
|
---|
454 | VMMAll/PGMAllMap.cpp \
|
---|
455 | VMMAll/PGMAllPhys.cpp \
|
---|
456 | VMMAll/PGMAllPool.cpp \
|
---|
457 | VMMAll/REMAll.cpp \
|
---|
458 | VMMAll/SELMAll.cpp \
|
---|
459 | VMMAll/TMAll.cpp \
|
---|
460 | VMMAll/TMAllCpu.cpp \
|
---|
461 | VMMAll/TMAllReal.cpp \
|
---|
462 | VMMAll/TMAllVirtual.cpp \
|
---|
463 | VMMAll/TRPMAll.cpp \
|
---|
464 | VMMAll/VMAll.cpp \
|
---|
465 | VMMAll/VMMAll.cpp
|
---|
466 | VMMR0_SOURCES.darwin.x86 = \
|
---|
467 | VMMR0/PGMR0DynMap.cpp
|
---|
468 |
|
---|
469 | # disable annoying warnings about array subscript above array bounds in aPages[]
|
---|
470 | VMMAll/PGMAllPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
471 |
|
---|
472 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
473 | VMMR0_SOURCES += VMMR0/VMMR0.def
|
---|
474 | endif
|
---|
475 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
476 | VMMR0_SOURCES += $(PATH_VMMR0Imp)/VMMR0.def
|
---|
477 | endif
|
---|
478 |
|
---|
479 | VMMR0_LIBS = \
|
---|
480 | $(PATH_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
|
---|
481 | $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
482 | $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB)
|
---|
483 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
484 | VMMR0_LIBS += \
|
---|
485 | $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
486 | endif
|
---|
487 |
|
---|
488 | #
|
---|
489 | # For vmmGetSvnRev.
|
---|
490 | #
|
---|
491 | VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
492 |
|
---|
493 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
494 |
|
---|
495 |
|
---|
496 | # Alias the PGM templates to the object in which they are defined.
|
---|
497 | PGMInternal.o \
|
---|
498 | PGMBth.o PGMGst.o PGMShw.o \
|
---|
499 | PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
|
---|
500 | PGMAllBth.o PGMAllGst.o PGMAllShw.o \
|
---|
501 | PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
|
---|
502 | PGMGCBth.o PGMGCGst.o PGMGCShw.o \
|
---|
503 | PGMGCBth.obj PGMGCGst.obj PGMGCShw.obj: PGMGC.o
|
---|
504 | PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
|
---|
505 |
|
---|