1 | # $Id: Makefile.kmk 33935 2010-11-10 15:37:02Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the VMM.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2010 Oracle Corporation
|
---|
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 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Include sub-makefiles.
|
---|
22 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
23 |
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Globals
|
---|
27 | #
|
---|
28 |
|
---|
29 | ## DEFS variable that is picked up by all three VMM targets.
|
---|
30 | # Can be prepended to by setting it in LocalConfig.kmk
|
---|
31 | VMM_COMMON_DEFS ?=
|
---|
32 | ifdef VBOX_WITH_RAW_MODE
|
---|
33 | VMM_COMMON_DEFS += VBOX_WITH_RAW_MODE
|
---|
34 | endif
|
---|
35 | ifdef VBOX_WITH_MULTI_CORE
|
---|
36 | VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
|
---|
37 | endif
|
---|
38 | ifdef VBOX_WITH_R0_LOGGING
|
---|
39 | VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
|
---|
40 | endif
|
---|
41 | ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
|
---|
42 | VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
|
---|
43 | endif
|
---|
44 | # VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
|
---|
45 |
|
---|
46 |
|
---|
47 | #
|
---|
48 | # VMMR3.dll
|
---|
49 | #
|
---|
50 | LIBRARIES += VMMR3
|
---|
51 |
|
---|
52 | VMMR3_TEMPLATE = VBoxR3Dll
|
---|
53 |
|
---|
54 | VMMR3_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG $(VMM_COMMON_DEFS) VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
55 | ## @todo eliminate IN_GMM_R3
|
---|
56 | ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
57 | VMMR3_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
58 | endif
|
---|
59 | ifdef VBOX_WITH_VUSB
|
---|
60 | VMMR3_DEFS += VBOX_WITH_USB
|
---|
61 | endif
|
---|
62 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
63 | VMMR3_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
64 | endif
|
---|
65 | VMMR3_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
66 | VMMR3_DEFS.darwin.x86 = \
|
---|
67 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R3 \
|
---|
68 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R3
|
---|
69 |
|
---|
70 | VMMR3_INCS = \
|
---|
71 | . \
|
---|
72 | PATM
|
---|
73 |
|
---|
74 | VMMR3_SOURCES = \
|
---|
75 | CFGM.cpp \
|
---|
76 | CPUM.cpp \
|
---|
77 | DBGF.cpp \
|
---|
78 | DBGFAddr.cpp \
|
---|
79 | DBGFAddrSpace.cpp \
|
---|
80 | DBGFBp.cpp \
|
---|
81 | DBGFCoreWrite.cpp \
|
---|
82 | DBGFCpu.cpp \
|
---|
83 | DBGFDisas.cpp \
|
---|
84 | DBGFInfo.cpp \
|
---|
85 | DBGFLog.cpp \
|
---|
86 | DBGFMem.cpp \
|
---|
87 | DBGFOS.cpp \
|
---|
88 | DBGFReg.cpp \
|
---|
89 | DBGFStack.cpp \
|
---|
90 | DBGFSym.cpp \
|
---|
91 | EM.cpp \
|
---|
92 | EMRaw.cpp \
|
---|
93 | EMHwaccm.cpp \
|
---|
94 | FTM.cpp \
|
---|
95 | IOM.cpp \
|
---|
96 | GMM.cpp \
|
---|
97 | MM.cpp \
|
---|
98 | MMHeap.cpp \
|
---|
99 | MMHyper.cpp \
|
---|
100 | MMPagePool.cpp \
|
---|
101 | MMUkHeap.cpp \
|
---|
102 | PDM.cpp \
|
---|
103 | PDMDevice.cpp \
|
---|
104 | PDMDevHlp.cpp \
|
---|
105 | PDMDevMiscHlp.cpp \
|
---|
106 | PDMDriver.cpp \
|
---|
107 | PDMLdr.cpp \
|
---|
108 | PDMCritSect.cpp \
|
---|
109 | PDMQueue.cpp \
|
---|
110 | PDMThread.cpp \
|
---|
111 | PGM.cpp \
|
---|
112 | PGMDbg.cpp \
|
---|
113 | PGMHandler.cpp \
|
---|
114 | PGMMap.cpp \
|
---|
115 | PGMPhys.cpp \
|
---|
116 | PGMPool.cpp \
|
---|
117 | PGMSavedState.cpp \
|
---|
118 | PGMSharedPage.cpp \
|
---|
119 | SELM.cpp \
|
---|
120 | SSM.cpp \
|
---|
121 | STAM.cpp \
|
---|
122 | TM.cpp \
|
---|
123 | TRPM.cpp \
|
---|
124 | VM.cpp \
|
---|
125 | VMEmt.cpp \
|
---|
126 | VMReq.cpp \
|
---|
127 | VMM.cpp \
|
---|
128 | VMMGuruMeditation.cpp \
|
---|
129 | VMMSwitcher.cpp \
|
---|
130 | VMMTests.cpp \
|
---|
131 | HWACCM.cpp \
|
---|
132 | VMMAll/CPUMAllRegs.cpp \
|
---|
133 | VMMAll/CPUMStack.cpp \
|
---|
134 | VMMAll/DBGFAll.cpp \
|
---|
135 | VMMAll/HWACCMAll.cpp \
|
---|
136 | VMMAll/IOMAll.cpp \
|
---|
137 | VMMAll/IOMAllMMIO.cpp \
|
---|
138 | VMMAll/MMAll.cpp \
|
---|
139 | VMMAll/MMAllHyper.cpp \
|
---|
140 | VMMAll/MMAllPagePool.cpp \
|
---|
141 | VMMAll/PDMAll.cpp \
|
---|
142 | VMMAll/PDMAllCritSect.cpp \
|
---|
143 | VMMAll/PDMAllQueue.cpp \
|
---|
144 | VMMAll/PGMAll.cpp \
|
---|
145 | VMMAll/PGMAllHandler.cpp \
|
---|
146 | VMMAll/PGMAllMap.cpp \
|
---|
147 | VMMAll/PGMAllPhys.cpp \
|
---|
148 | VMMAll/PGMAllPool.cpp \
|
---|
149 | VMMAll/REMAll.cpp \
|
---|
150 | VMMAll/SELMAll.cpp \
|
---|
151 | VMMAll/EMAll.cpp \
|
---|
152 | VMMAll/EMAllA.asm \
|
---|
153 | VMMAll/FTMAll.cpp \
|
---|
154 | VMMAll/TMAll.cpp \
|
---|
155 | VMMAll/TMAllCpu.cpp \
|
---|
156 | VMMAll/TMAllReal.cpp \
|
---|
157 | VMMAll/TMAllVirtual.cpp \
|
---|
158 | VMMAll/TRPMAll.cpp \
|
---|
159 | VMMAll/VMAll.cpp \
|
---|
160 | VMMAll/VMMAll.cpp \
|
---|
161 | VMMAll/VMMAllA.asm \
|
---|
162 | PATM/CSAM.cpp \
|
---|
163 | PATM/VMMAll/CSAMAll.cpp \
|
---|
164 | PATM/PATM.cpp \
|
---|
165 | PATM/PATMPatch.cpp \
|
---|
166 | PATM/PATMGuest.cpp \
|
---|
167 | PATM/PATMA.asm \
|
---|
168 | PATM/PATMSSM.cpp \
|
---|
169 | PATM/VMMAll/PATMAll.cpp
|
---|
170 | ifdef VBOX_WITH_VUSB
|
---|
171 | VMMR3_SOURCES += PDMUsb.cpp
|
---|
172 | endif
|
---|
173 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
174 | VMMR3_SOURCES += \
|
---|
175 | PDMAsyncCompletion.cpp \
|
---|
176 | PDMAsyncCompletionFile.cpp \
|
---|
177 | PDMAsyncCompletionFileFailsafe.cpp \
|
---|
178 | PDMAsyncCompletionFileNormal.cpp \
|
---|
179 | PDMAsyncCompletionFileCache.cpp
|
---|
180 | endif
|
---|
181 | if defined(VBOX_WITH_WARNINGS_AS_ERRORS) && "$(KBUILD_TARGET)" == "win"
|
---|
182 | PDMAsyncCompletionFileCache.cpp_CXXFLAGS = -WX-
|
---|
183 | endif
|
---|
184 |
|
---|
185 | ifdef VBOX_WITH_RAW_MODE
|
---|
186 | VMMR3_SOURCES.x86 += \
|
---|
187 | VMMSwitcher/32BitTo32Bit.asm \
|
---|
188 | VMMSwitcher/32BitToPAE.asm \
|
---|
189 | VMMSwitcher/32BitToAMD64.asm \
|
---|
190 | VMMSwitcher/PAETo32Bit.asm \
|
---|
191 | VMMSwitcher/PAEToAMD64.asm \
|
---|
192 | VMMSwitcher/PAEToPAE.asm
|
---|
193 | VMMR3_SOURCES.amd64 = \
|
---|
194 | VMMSwitcher/AMD64To32Bit.asm \
|
---|
195 | VMMSwitcher/AMD64ToPAE.asm
|
---|
196 | VMMR3_SOURCES.darwin.x86 += \
|
---|
197 | VMMSwitcher/AMD64ToPAE.asm
|
---|
198 | endif
|
---|
199 |
|
---|
200 |
|
---|
201 | # SSM wish to know the build type, host os and arch.
|
---|
202 | SSM.cpp_DEFS += \
|
---|
203 | KBUILD_TYPE=\"$(KBUILD_TYPE)\" \
|
---|
204 | KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
|
---|
205 | KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
|
---|
206 |
|
---|
207 | #
|
---|
208 | # The VMM DLL.
|
---|
209 | #
|
---|
210 | DLLS += VBoxVMM
|
---|
211 | VBoxVMM_TEMPLATE = VBoxR3Dll
|
---|
212 | VBoxVMM_DEFS = $(VMMR3_DEFS)
|
---|
213 | VBoxVMM_DEFS.$(KBUILD_TARGET) = $(VMMR3_DEFS.$(KBUILD_TARGET))
|
---|
214 | VBoxVMM_SOURCES = VBoxVMMDeps.cpp
|
---|
215 | VBoxVMM_SONAME.linux = VBoxVMM.so
|
---|
216 |
|
---|
217 | VBoxVMM_LIBS = \
|
---|
218 | $(PATH_LIB)/VMMR3$(VBOX_SUFF_LIB) \
|
---|
219 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
220 | ifdef VBOX_WITH_DEBUGGER
|
---|
221 | VBoxVMM_LIBS += \
|
---|
222 | $(PATH_LIB)/Debugger$(VBOX_SUFF_LIB)
|
---|
223 | endif
|
---|
224 | VBoxVMM_LIBS += \
|
---|
225 | $(LIB_REM) \
|
---|
226 | $(LIB_RUNTIME)
|
---|
227 |
|
---|
228 | VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
229 | VBoxVMM_LDFLAGS.win = /DELAYLOAD:dbghelp.dll
|
---|
230 | VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined
|
---|
231 | VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
|
---|
232 | VBoxVMM_LDFLAGS.solaris = -mimpure-text
|
---|
233 | #ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
234 | # ifeq ($(KBUILD_HOST), linux)
|
---|
235 | #VBoxVMM_LIBS += aio
|
---|
236 | # endif
|
---|
237 | #endif
|
---|
238 |
|
---|
239 |
|
---|
240 |
|
---|
241 | #
|
---|
242 | # SSMStandalone.lib/a for linking with VBoxSVC and other executables.
|
---|
243 | #
|
---|
244 | LIBRARIES += SSMStandalone
|
---|
245 | SSMStandalone_TEMPLATE = VBOXR3EXE
|
---|
246 | SSMStandalone_DEFS = IN_VMM_R3 IN_VMM_STATIC SSM_STANDALONE
|
---|
247 | SSMStandalone_SOURCES = SSM.cpp
|
---|
248 |
|
---|
249 |
|
---|
250 | if defined(VBOX_WITH_RAW_MODE) && $(intersects $(VBOX_LDR_FMT32), pe lx)
|
---|
251 |
|
---|
252 | #
|
---|
253 | # VMMGCBuiltin.lib
|
---|
254 | #
|
---|
255 | LIBRARIES += VMMGCBuiltin
|
---|
256 | VMMGCBuiltin_TEMPLATE = VBoxRc
|
---|
257 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
258 | VMMGCBuiltin_SOURCES = VMMGC/VMMGCBuiltin.def
|
---|
259 | endif
|
---|
260 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
261 | VMMGCBuiltin_SOURCES = $(PATH_VMMGCBuiltin)/VMMGCBuiltin.def
|
---|
262 | $$(PATH_VMMGCBuiltin)/VMMGCBuiltin.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGCBuiltin.def | $$(dir $$@)
|
---|
263 | $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
|
---|
264 | endif
|
---|
265 |
|
---|
266 |
|
---|
267 | #
|
---|
268 | # VMMGCImp.lib
|
---|
269 | #
|
---|
270 | LIBRARIES += VMMGCImp
|
---|
271 | VMMGCImp_TEMPLATE = VBoxRc
|
---|
272 | VMMGCImp_SOURCES = $(PATH_VMMGCImp)/VMMGC.def
|
---|
273 | VMMGCImp_CLEAN = $(PATH_VMMGCImp)/VMMGC.def
|
---|
274 |
|
---|
275 | $$(PATH_VMMGCImp)/VMMGC.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGC.def | $$(dir $$@)
|
---|
276 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
277 | $(SED) \
|
---|
278 | -e '/not-os2/d' \
|
---|
279 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
|
---|
280 | -e 's/[ \t]DATA[ \t]*/ /' \
|
---|
281 | --output $@ \
|
---|
282 | $<
|
---|
283 | $(APPEND) "$@" ""
|
---|
284 | $(APPEND) "$@" " ___ehInit"
|
---|
285 | else
|
---|
286 | $(SED) \
|
---|
287 | -e '/not-win/d' \
|
---|
288 | -e '/not-$(KBUILD_TARGET_ARCH)/d' \
|
---|
289 | --output $@ $<
|
---|
290 | endif
|
---|
291 |
|
---|
292 | endif # RC && (pe || lx)
|
---|
293 |
|
---|
294 |
|
---|
295 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
296 | #
|
---|
297 | # VMMR0Imp.lib
|
---|
298 | #
|
---|
299 | LIBRARIES += VMMR0Imp
|
---|
300 | VMMR0Imp_TEMPLATE = VBoxR0
|
---|
301 | VMMR0Imp_SOURCES = $(PATH_VMMR0Imp)/VMMR0.def
|
---|
302 | VMMR0Imp_CLEAN = $(PATH_VMMR0Imp)/VMMR0.def
|
---|
303 |
|
---|
304 | $$(PATH_VMMR0Imp)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
|
---|
305 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
306 | $(SED) \
|
---|
307 | -e '/not-os2/d' \
|
---|
308 | -e '/not-amd64/d' \
|
---|
309 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
|
---|
310 | -e 's/[ \t]DATA[ \t]*/ /' \
|
---|
311 | --output $@ $<
|
---|
312 | $(APPEND) "$@" ""
|
---|
313 | $(APPEND) "$@" " ___ehInit"
|
---|
314 | else
|
---|
315 | $(SED) \
|
---|
316 | -e '/not-win/d' \
|
---|
317 | -e '/not-$(KBUILD_TARGET_ARCH)/d' \
|
---|
318 | --output $@ $<
|
---|
319 | endif
|
---|
320 | endif # R0: pe + lx
|
---|
321 |
|
---|
322 |
|
---|
323 | ifdef VBOX_WITH_RAW_MODE
|
---|
324 | #
|
---|
325 | # VMMGC.gc
|
---|
326 | #
|
---|
327 | SYSMODS += VMMGC
|
---|
328 | VMMGC_TEMPLATE = VBoxRc
|
---|
329 | VMMGC_SYSSUFF = .gc
|
---|
330 |
|
---|
331 | VMMGC_DEFS = IN_VMM_RC IN_RT_RC IN_DIS DIS_CORE_ONLY VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
|
---|
332 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
333 | VMMGC_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
334 | VMMGC_DEFS.darwin = \
|
---|
335 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_RC \
|
---|
336 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_RC
|
---|
337 | endif
|
---|
338 |
|
---|
339 | VMMGC_INCS := \
|
---|
340 | . \
|
---|
341 | VMMGC \
|
---|
342 | PATM
|
---|
343 |
|
---|
344 | VMMGC_LIBS = \
|
---|
345 | $(PATH_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
|
---|
346 | $(PATH_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
|
---|
347 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
348 | VMMGC_LIBS += \
|
---|
349 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
|
---|
350 | endif
|
---|
351 |
|
---|
352 | VMMGC_SOURCES = \
|
---|
353 | VMMGC/VMMGC0.asm \
|
---|
354 | VMMGC/VMMGCDeps.cpp \
|
---|
355 | VMMGC/CPUMGC.cpp \
|
---|
356 | VMMGC/CPUMGCA.asm \
|
---|
357 | VMMGC/EMGCA.asm \
|
---|
358 | VMMGC/IOMGC.cpp \
|
---|
359 | VMMGC/MMRamGC.cpp \
|
---|
360 | VMMGC/MMRamGCA.asm \
|
---|
361 | VMMGC/PDMGCDevice.cpp \
|
---|
362 | VMMGC/PGMGC.cpp \
|
---|
363 | VMMGC/SELMGC.cpp \
|
---|
364 | VMMGC/TRPMGC.cpp \
|
---|
365 | VMMGC/TRPMGCHandlers.cpp \
|
---|
366 | VMMGC/TRPMGCHandlersA.asm \
|
---|
367 | VMMGC/VMMGC.cpp \
|
---|
368 | VMMGC/VMMGCA.asm \
|
---|
369 | VMMGC/HWACCMGCA.asm \
|
---|
370 | VMMRZ/DBGFRZ.cpp \
|
---|
371 | VMMRZ/PGMRZDynMap.cpp \
|
---|
372 | VMMRZ/VMMRZ.cpp \
|
---|
373 | VMMAll/CPUMAllRegs.cpp \
|
---|
374 | VMMAll/CPUMAllA.asm \
|
---|
375 | VMMAll/DBGFAll.cpp \
|
---|
376 | VMMAll/IOMAll.cpp \
|
---|
377 | VMMAll/IOMAllMMIO.cpp \
|
---|
378 | VMMAll/EMAll.cpp \
|
---|
379 | VMMAll/EMAllA.asm \
|
---|
380 | VMMAll/FTMAll.cpp \
|
---|
381 | VMMAll/MMAll.cpp \
|
---|
382 | VMMAll/MMAllHyper.cpp \
|
---|
383 | VMMAll/PDMAll.cpp \
|
---|
384 | VMMAll/PDMAllCritSect.cpp \
|
---|
385 | VMMAll/PDMAllQueue.cpp \
|
---|
386 | VMMAll/PGMAll.cpp \
|
---|
387 | VMMAll/PGMAllHandler.cpp \
|
---|
388 | VMMAll/PGMAllMap.cpp \
|
---|
389 | VMMAll/PGMAllPhys.cpp \
|
---|
390 | VMMAll/PGMAllPool.cpp \
|
---|
391 | VMMAll/REMAll.cpp \
|
---|
392 | VMMAll/SELMAll.cpp \
|
---|
393 | VMMAll/TMAll.cpp \
|
---|
394 | VMMAll/TMAllCpu.cpp \
|
---|
395 | VMMAll/TMAllReal.cpp \
|
---|
396 | VMMAll/TMAllVirtual.cpp \
|
---|
397 | VMMAll/TRPMAll.cpp \
|
---|
398 | VMMAll/VMAll.cpp \
|
---|
399 | VMMAll/VMMAll.cpp \
|
---|
400 | VMMAll/VMMAllA.asm \
|
---|
401 | PATM/VMMGC/CSAMGC.cpp \
|
---|
402 | PATM/VMMAll/CSAMAll.cpp \
|
---|
403 | PATM/VMMGC/PATMGC.cpp \
|
---|
404 | PATM/VMMAll/PATMAll.cpp
|
---|
405 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
406 | VMMGC_SOURCES += VMMGC/VMMGC.def
|
---|
407 | endif
|
---|
408 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
409 | VMMGC_SOURCES += $(PATH_VMMGCImp)/VMMGC.def
|
---|
410 | endif
|
---|
411 |
|
---|
412 |
|
---|
413 | # the very last one.
|
---|
414 | VMMGC_SOURCES += VMMGC/VMMGC99.asm
|
---|
415 |
|
---|
416 | VMMGC/VMMGCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMGCDeps.cpp to .c
|
---|
417 | endif # VBOX_WITH_RAW_MODE
|
---|
418 |
|
---|
419 |
|
---|
420 | #
|
---|
421 | # VMMR0.r0
|
---|
422 | #
|
---|
423 | SYSMODS += VMMR0
|
---|
424 | VMMR0_TEMPLATE = VBoxR0
|
---|
425 | VMMR0_SYSSUFF = .r0
|
---|
426 |
|
---|
427 | VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 \
|
---|
428 | $(VMM_COMMON_DEFS) RTASSERT_HAVE_SHOULD_PANIC
|
---|
429 | ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
|
---|
430 | ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
|
---|
431 | VMMR0_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
|
---|
432 | endif
|
---|
433 | VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
434 | VMMR0_DEFS.darwin.x86 = \
|
---|
435 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 \
|
---|
436 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0
|
---|
437 | VMMR0_DEFS.win.amd64 = VBOX_WITH_KERNEL_USING_XMM
|
---|
438 |
|
---|
439 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
440 | VMMR0_LDFLAGS = -e VMMR0EntryEx
|
---|
441 | endif
|
---|
442 | VMMR0_INCS = \
|
---|
443 | . \
|
---|
444 | PATM
|
---|
445 |
|
---|
446 | VMMR0_SOURCES = \
|
---|
447 | VMMR0/CPUMR0.cpp \
|
---|
448 | VMMR0/CPUMR0A.asm \
|
---|
449 | VMMR0/GMMR0.cpp \
|
---|
450 | VMMR0/GVMMR0.cpp \
|
---|
451 | VMMR0/HWACCMR0.cpp \
|
---|
452 | VMMR0/HWACCMR0A.asm \
|
---|
453 | VMMR0/HWSVMR0.cpp \
|
---|
454 | VMMR0/HWVMXR0.cpp \
|
---|
455 | VMMR0/PDMR0Device.cpp \
|
---|
456 | VMMR0/PDMR0Driver.cpp \
|
---|
457 | VMMR0/PGMR0.cpp \
|
---|
458 | VMMR0/PGMR0SharedPage.cpp \
|
---|
459 | VMMR0/TRPMR0.cpp \
|
---|
460 | VMMR0/TRPMR0A.asm \
|
---|
461 | VMMR0/VMMR0.cpp \
|
---|
462 | VMMRZ/DBGFRZ.cpp \
|
---|
463 | VMMRZ/VMMRZ.cpp \
|
---|
464 | VMMAll/CPUMAllA.asm \
|
---|
465 | VMMAll/CPUMAllRegs.cpp \
|
---|
466 | VMMAll/CPUMStack.cpp \
|
---|
467 | VMMAll/DBGFAll.cpp \
|
---|
468 | VMMAll/EMAll.cpp \
|
---|
469 | VMMAll/EMAllA.asm \
|
---|
470 | VMMAll/FTMAll.cpp \
|
---|
471 | VMMAll/HWACCMAll.cpp \
|
---|
472 | VMMAll/IOMAll.cpp \
|
---|
473 | VMMAll/IOMAllMMIO.cpp \
|
---|
474 | VMMAll/MMAll.cpp \
|
---|
475 | VMMAll/MMAllHyper.cpp \
|
---|
476 | VMMAll/MMAllPagePool.cpp \
|
---|
477 | VMMAll/PDMAll.cpp \
|
---|
478 | VMMAll/PDMAllCritSect.cpp \
|
---|
479 | VMMAll/PDMAllQueue.cpp \
|
---|
480 | VMMAll/PGMAll.cpp \
|
---|
481 | VMMAll/PGMAllHandler.cpp \
|
---|
482 | VMMAll/PGMAllMap.cpp \
|
---|
483 | VMMAll/PGMAllPhys.cpp \
|
---|
484 | VMMAll/PGMAllPool.cpp \
|
---|
485 | VMMAll/REMAll.cpp \
|
---|
486 | VMMAll/SELMAll.cpp \
|
---|
487 | VMMAll/TMAll.cpp \
|
---|
488 | VMMAll/TMAllCpu.cpp \
|
---|
489 | VMMAll/TMAllReal.cpp \
|
---|
490 | VMMAll/TMAllVirtual.cpp \
|
---|
491 | VMMAll/TRPMAll.cpp \
|
---|
492 | VMMAll/VMAll.cpp \
|
---|
493 | VMMAll/VMMAll.cpp \
|
---|
494 | VMMAll/VMMAllA.asm
|
---|
495 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
496 | VMMR0_SOURCES += VMMR0/VMMR0.def
|
---|
497 | endif
|
---|
498 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
499 | VMMR0_SOURCES += $(PATH_VMMR0Imp)/VMMR0.def
|
---|
500 | endif
|
---|
501 | VMMR0_SOURCES.amd64 = \
|
---|
502 | VMMR0/VMMR0JmpA-amd64.asm
|
---|
503 | VMMR0_SOURCES.x86 = \
|
---|
504 | VMMR0/VMMR0JmpA-x86.asm
|
---|
505 | VMMR0_SOURCES.darwin.x86 = \
|
---|
506 | VMMRZ/PGMRZDynMap.cpp
|
---|
507 |
|
---|
508 | # disable annoying warnings about array subscript above array bounds in aPages[]
|
---|
509 | PGMPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
510 | VMMAll/PGMAllPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
511 |
|
---|
512 |
|
---|
513 | VMMR0_LIBS = \
|
---|
514 | $(PATH_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
|
---|
515 | $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
516 | $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB)
|
---|
517 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
518 | VMMR0_LIBS += \
|
---|
519 | $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
520 | endif
|
---|
521 |
|
---|
522 | #
|
---|
523 | # For vmmGetSvnRev.
|
---|
524 | #
|
---|
525 | VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
526 |
|
---|
527 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
528 |
|
---|
529 |
|
---|
530 | # Alias the PGM templates to the object in which they are defined.
|
---|
531 | PGMInternal.o \
|
---|
532 | PGMBth.o PGMGst.o PGMShw.o \
|
---|
533 | PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
|
---|
534 |
|
---|
535 | PGMAllBth.o PGMAllGst.o PGMAllShw.o \
|
---|
536 | PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
|
---|
537 |
|
---|
538 | PGMGCBth.o PGMGCGst.o PGMGCShw.o \
|
---|
539 | PGMGCBth.obj PGMGCGst.obj PGMGCShw.obj: PGMGC.o
|
---|
540 |
|
---|
541 | PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
|
---|
542 |
|
---|
543 | PGMInline.o PGMInline.obj: PGMDbg.o
|
---|
544 |
|
---|