1 | # $Id: Makefile.kmk 36441 2011-03-25 21:11:56Z 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 | ifdef VBOX_WITH_PCI_PASSTHROUGH
|
---|
45 | VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH
|
---|
46 | endif
|
---|
47 | # VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
|
---|
48 |
|
---|
49 |
|
---|
50 | #
|
---|
51 | # VMMR3.dll
|
---|
52 | #
|
---|
53 | ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
|
---|
54 | LIBRARIES += VMMR3
|
---|
55 | endif
|
---|
56 |
|
---|
57 | VMMR3_TEMPLATE = VBoxR3DllNoPic
|
---|
58 |
|
---|
59 | VMMR3_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG $(VMM_COMMON_DEFS) VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
60 | ## @todo eliminate IN_GMM_R3
|
---|
61 | ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
62 | VMMR3_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
63 | endif
|
---|
64 | ifdef VBOX_WITH_VUSB
|
---|
65 | VMMR3_DEFS += VBOX_WITH_USB
|
---|
66 | endif
|
---|
67 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
68 | VMMR3_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
69 | endif
|
---|
70 | VMMR3_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
71 | VMMR3_DEFS.darwin.x86 = \
|
---|
72 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R3 \
|
---|
73 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R3
|
---|
74 |
|
---|
75 | VMMR3_INCS = \
|
---|
76 | include \
|
---|
77 | PATM
|
---|
78 | VMMR3_ASINCS = .
|
---|
79 |
|
---|
80 | VMMR3_SOURCES = \
|
---|
81 | VMMR3/CFGM.cpp \
|
---|
82 | VMMR3/CPUM.cpp \
|
---|
83 | VMMR3/CPUMDbg.cpp \
|
---|
84 | VMMR3/DBGF.cpp \
|
---|
85 | VMMR3/DBGFAddr.cpp \
|
---|
86 | VMMR3/DBGFAddrSpace.cpp \
|
---|
87 | VMMR3/DBGFBp.cpp \
|
---|
88 | VMMR3/DBGFCoreWrite.cpp \
|
---|
89 | VMMR3/DBGFCpu.cpp \
|
---|
90 | VMMR3/DBGFDisas.cpp \
|
---|
91 | VMMR3/DBGFInfo.cpp \
|
---|
92 | VMMR3/DBGFLog.cpp \
|
---|
93 | VMMR3/DBGFMem.cpp \
|
---|
94 | VMMR3/DBGFOS.cpp \
|
---|
95 | VMMR3/DBGFReg.cpp \
|
---|
96 | VMMR3/DBGFStack.cpp \
|
---|
97 | VMMR3/DBGFSym.cpp \
|
---|
98 | VMMR3/EM.cpp \
|
---|
99 | VMMR3/EMRaw.cpp \
|
---|
100 | VMMR3/EMHwaccm.cpp \
|
---|
101 | VMMR3/FTM.cpp \
|
---|
102 | VMMR3/IOM.cpp \
|
---|
103 | VMMR3/GMM.cpp \
|
---|
104 | VMMR3/MM.cpp \
|
---|
105 | VMMR3/MMHeap.cpp \
|
---|
106 | VMMR3/MMHyper.cpp \
|
---|
107 | VMMR3/MMPagePool.cpp \
|
---|
108 | VMMR3/MMUkHeap.cpp \
|
---|
109 | VMMR3/PDM.cpp \
|
---|
110 | VMMR3/PDMBlkCache.cpp \
|
---|
111 | VMMR3/PDMDevice.cpp \
|
---|
112 | VMMR3/PDMDevHlp.cpp \
|
---|
113 | VMMR3/PDMDevMiscHlp.cpp \
|
---|
114 | VMMR3/PDMDriver.cpp \
|
---|
115 | VMMR3/PDMLdr.cpp \
|
---|
116 | VMMR3/PDMCritSect.cpp \
|
---|
117 | VMMR3/PDMQueue.cpp \
|
---|
118 | VMMR3/PDMThread.cpp \
|
---|
119 | VMMR3/PGM.cpp \
|
---|
120 | VMMR3/PGMDbg.cpp \
|
---|
121 | VMMR3/PGMHandler.cpp \
|
---|
122 | VMMR3/PGMMap.cpp \
|
---|
123 | VMMR3/PGMPhys.cpp \
|
---|
124 | VMMR3/PGMPool.cpp \
|
---|
125 | VMMR3/PGMSavedState.cpp \
|
---|
126 | VMMR3/PGMSharedPage.cpp \
|
---|
127 | VMMR3/SELM.cpp \
|
---|
128 | VMMR3/SSM.cpp \
|
---|
129 | VMMR3/STAM.cpp \
|
---|
130 | VMMR3/TM.cpp \
|
---|
131 | VMMR3/TRPM.cpp \
|
---|
132 | VMMR3/VM.cpp \
|
---|
133 | VMMR3/VMEmt.cpp \
|
---|
134 | VMMR3/VMReq.cpp \
|
---|
135 | VMMR3/VMM.cpp \
|
---|
136 | VMMR3/VMMGuruMeditation.cpp \
|
---|
137 | VMMR3/VMMSwitcher.cpp \
|
---|
138 | VMMR3/VMMTests.cpp \
|
---|
139 | VMMR3/HWACCM.cpp \
|
---|
140 | VMMR3/CSAM.cpp \
|
---|
141 | VMMR3/PATM.cpp \
|
---|
142 | VMMR3/PATMPatch.cpp \
|
---|
143 | VMMR3/PATMGuest.cpp \
|
---|
144 | VMMR3/PATMA.asm \
|
---|
145 | VMMR3/PATMSSM.cpp \
|
---|
146 | VMMAll/CPUMAllRegs.cpp \
|
---|
147 | VMMAll/CPUMStack.cpp \
|
---|
148 | VMMAll/DBGFAll.cpp \
|
---|
149 | VMMAll/HWACCMAll.cpp \
|
---|
150 | VMMAll/IOMAll.cpp \
|
---|
151 | VMMAll/IOMAllMMIO.cpp \
|
---|
152 | VMMAll/MMAll.cpp \
|
---|
153 | VMMAll/MMAllHyper.cpp \
|
---|
154 | VMMAll/MMAllPagePool.cpp \
|
---|
155 | VMMAll/PDMAll.cpp \
|
---|
156 | VMMAll/PDMAllCritSect.cpp \
|
---|
157 | VMMAll/PDMAllQueue.cpp \
|
---|
158 | VMMAll/PGMAll.cpp \
|
---|
159 | VMMAll/PGMAllHandler.cpp \
|
---|
160 | VMMAll/PGMAllMap.cpp \
|
---|
161 | VMMAll/PGMAllPhys.cpp \
|
---|
162 | VMMAll/PGMAllPool.cpp \
|
---|
163 | VMMAll/REMAll.cpp \
|
---|
164 | VMMAll/SELMAll.cpp \
|
---|
165 | VMMAll/EMAll.cpp \
|
---|
166 | VMMAll/EMAllA.asm \
|
---|
167 | VMMAll/FTMAll.cpp \
|
---|
168 | VMMAll/TMAll.cpp \
|
---|
169 | VMMAll/TMAllCpu.cpp \
|
---|
170 | VMMAll/TMAllReal.cpp \
|
---|
171 | VMMAll/TMAllVirtual.cpp \
|
---|
172 | VMMAll/TRPMAll.cpp \
|
---|
173 | VMMAll/VMAll.cpp \
|
---|
174 | VMMAll/VMMAll.cpp \
|
---|
175 | VMMAll/VMMAllA.asm \
|
---|
176 | VMMAll/CSAMAll.cpp \
|
---|
177 | VMMAll/PATMAll.cpp
|
---|
178 | ifdef VBOX_WITH_VUSB
|
---|
179 | VMMR3_SOURCES += VMMR3/PDMUsb.cpp
|
---|
180 | endif
|
---|
181 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
182 | VMMR3_SOURCES += \
|
---|
183 | VMMR3/PDMAsyncCompletion.cpp \
|
---|
184 | VMMR3/PDMAsyncCompletionFile.cpp \
|
---|
185 | VMMR3/PDMAsyncCompletionFileFailsafe.cpp \
|
---|
186 | VMMR3/PDMAsyncCompletionFileNormal.cpp
|
---|
187 | endif
|
---|
188 | if defined(VBOX_WITH_WARNINGS_AS_ERRORS) && "$(KBUILD_TARGET)" == "win"
|
---|
189 | ## @todo Alexander, please fix these warnings.
|
---|
190 | VMMR3/PDMBlkCache.cpp_CXXFLAGS = -WX-
|
---|
191 | endif
|
---|
192 |
|
---|
193 | ifdef VBOX_WITH_RAW_MODE
|
---|
194 | VMMR3_SOURCES.x86 += \
|
---|
195 | VMMSwitcher/32BitTo32Bit.asm \
|
---|
196 | VMMSwitcher/32BitToPAE.asm \
|
---|
197 | VMMSwitcher/32BitToAMD64.asm \
|
---|
198 | VMMSwitcher/PAETo32Bit.asm \
|
---|
199 | VMMSwitcher/PAEToAMD64.asm \
|
---|
200 | VMMSwitcher/PAEToPAE.asm
|
---|
201 | VMMR3_SOURCES.amd64 = \
|
---|
202 | VMMSwitcher/AMD64To32Bit.asm \
|
---|
203 | VMMSwitcher/AMD64ToPAE.asm
|
---|
204 | VMMR3_SOURCES.darwin.x86 += \
|
---|
205 | VMMSwitcher/AMD64ToPAE.asm
|
---|
206 | endif
|
---|
207 |
|
---|
208 |
|
---|
209 | # SSM wish to know the build type, host os and arch.
|
---|
210 | VMMR3/SSM.cpp_DEFS += \
|
---|
211 | KBUILD_TYPE=\"$(KBUILD_TYPE)\" \
|
---|
212 | KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
|
---|
213 | KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
|
---|
214 |
|
---|
215 | #
|
---|
216 | # The VMM DLL.
|
---|
217 | #
|
---|
218 | ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
|
---|
219 | DLLS += VBoxVMM
|
---|
220 | endif
|
---|
221 | VBoxVMM_TEMPLATE = VBoxR3DllNoPic
|
---|
222 | VBoxVMM_DEFS = $(VMMR3_DEFS)
|
---|
223 | VBoxVMM_DEFS.$(KBUILD_TARGET) = $(VMMR3_DEFS.$(KBUILD_TARGET))
|
---|
224 | VBoxVMM_SOURCES = VMMR3/VBoxVMMDeps.cpp
|
---|
225 | VBoxVMM_SONAME.linux = VBoxVMM.so
|
---|
226 |
|
---|
227 | VBoxVMM_LIBS = \
|
---|
228 | $(PATH_LIB)/VMMR3$(VBOX_SUFF_LIB) \
|
---|
229 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
230 | ifdef VBOX_WITH_DEBUGGER
|
---|
231 | VBoxVMM_LIBS += \
|
---|
232 | $(PATH_LIB)/Debugger$(VBOX_SUFF_LIB)
|
---|
233 | endif
|
---|
234 | VBoxVMM_LIBS += \
|
---|
235 | $(LIB_REM) \
|
---|
236 | $(LIB_RUNTIME)
|
---|
237 |
|
---|
238 | VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
239 | VBoxVMM_LDFLAGS.win = /DELAYLOAD:dbghelp.dll
|
---|
240 | VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined
|
---|
241 | VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
|
---|
242 | VBoxVMM_LDFLAGS.solaris = -mimpure-text
|
---|
243 | #ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
244 | # ifeq ($(KBUILD_HOST), linux)
|
---|
245 | #VBoxVMM_LIBS += aio
|
---|
246 | # endif
|
---|
247 | #endif
|
---|
248 |
|
---|
249 |
|
---|
250 | if defined(VBOX_WITH_RAW_MODE) && $(intersects $(VBOX_LDR_FMT32), pe lx)
|
---|
251 |
|
---|
252 | #
|
---|
253 | # VMMRCBuiltin.lib
|
---|
254 | #
|
---|
255 | LIBRARIES += VMMRCBuiltin
|
---|
256 | VMMRCBuiltin_TEMPLATE = VBoxRc
|
---|
257 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
258 | VMMRCBuiltin_SOURCES = VMMRC/VMMRCBuiltin.def
|
---|
259 | endif
|
---|
260 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
261 | VMMRCBuiltin_SOURCES = $(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def
|
---|
262 | $$(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRCBuiltin.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 | # VMMRCImp.lib
|
---|
269 | #
|
---|
270 | LIBRARIES += VMMRCImp
|
---|
271 | VMMRCImp_TEMPLATE = VBoxRc
|
---|
272 | VMMRCImp_SOURCES = $(VMMRCImp_0_OUTDIR)/VMMRC.def
|
---|
273 | VMMRCImp_CLEAN = $(VMMRCImp_0_OUTDIR)/VMMRC.def
|
---|
274 |
|
---|
275 | $$(VMMRCImp_0_OUTDIR)/VMMRC.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRC.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 = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
|
---|
302 | VMMR0Imp_CLEAN = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
|
---|
303 |
|
---|
304 | $$(VMMR0Imp_0_OUTDIR)/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 | #
|
---|
324 | # VMMR3Imp.lib
|
---|
325 | #
|
---|
326 | IMPORT_LIBS += VMMR3Imp
|
---|
327 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VMMR3Imp,VBoxVMM,VMMR3/VMMR3.def)
|
---|
328 |
|
---|
329 |
|
---|
330 | if defined(VBOX_WITH_RAW_MODE) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
331 | #
|
---|
332 | # VMMRC.gc
|
---|
333 | #
|
---|
334 | SYSMODS += VMMRC
|
---|
335 | VMMRC_TEMPLATE = VBoxRc
|
---|
336 | VMMRC_NAME = VMMGC
|
---|
337 | VMMRC_SYSSUFF = .gc
|
---|
338 |
|
---|
339 | VMMRC_DEFS = IN_VMM_RC IN_RT_RC IN_DIS DIS_CORE_ONLY VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
|
---|
340 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
341 | VMMRC_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
342 | VMMRC_DEFS.darwin = \
|
---|
343 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_RC \
|
---|
344 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_RC
|
---|
345 | endif
|
---|
346 |
|
---|
347 | VMMRC_INCS := \
|
---|
348 | include \
|
---|
349 | VMMRC \
|
---|
350 | PATM
|
---|
351 |
|
---|
352 | VMMRC_LIBS = \
|
---|
353 | $(PATH_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
|
---|
354 | $(PATH_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
|
---|
355 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
356 | VMMRC_LIBS += \
|
---|
357 | $(PATH_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
|
---|
358 | endif
|
---|
359 |
|
---|
360 | VMMRC_SOURCES = \
|
---|
361 | VMMRC/VMMRC0.asm \
|
---|
362 | VMMRC/VMMRCDeps.cpp \
|
---|
363 | VMMRC/CPUMRC.cpp \
|
---|
364 | VMMRC/CPUMRCA.asm \
|
---|
365 | VMMRC/EMRCA.asm \
|
---|
366 | VMMRC/IOMRC.cpp \
|
---|
367 | VMMRC/MMRamRC.cpp \
|
---|
368 | VMMRC/MMRamRCA.asm \
|
---|
369 | VMMRC/PDMRCDevice.cpp \
|
---|
370 | VMMRC/PGMRC.cpp \
|
---|
371 | VMMRC/SELMRC.cpp \
|
---|
372 | VMMRC/TRPMRC.cpp \
|
---|
373 | VMMRC/TRPMRCHandlers.cpp \
|
---|
374 | VMMRC/TRPMRCHandlersA.asm \
|
---|
375 | VMMRC/VMMRC.cpp \
|
---|
376 | VMMRC/VMMRCA.asm \
|
---|
377 | VMMRC/HWACCMRCA.asm \
|
---|
378 | VMMRC/CSAMRC.cpp \
|
---|
379 | VMMRC/PATMRC.cpp \
|
---|
380 | VMMRZ/DBGFRZ.cpp \
|
---|
381 | VMMRZ/PGMRZDynMap.cpp \
|
---|
382 | VMMRZ/VMMRZ.cpp \
|
---|
383 | VMMAll/CPUMAllRegs.cpp \
|
---|
384 | VMMAll/CPUMAllA.asm \
|
---|
385 | VMMAll/DBGFAll.cpp \
|
---|
386 | VMMAll/IOMAll.cpp \
|
---|
387 | VMMAll/IOMAllMMIO.cpp \
|
---|
388 | VMMAll/EMAll.cpp \
|
---|
389 | VMMAll/EMAllA.asm \
|
---|
390 | VMMAll/FTMAll.cpp \
|
---|
391 | VMMAll/MMAll.cpp \
|
---|
392 | VMMAll/MMAllHyper.cpp \
|
---|
393 | VMMAll/PDMAll.cpp \
|
---|
394 | VMMAll/PDMAllCritSect.cpp \
|
---|
395 | VMMAll/PDMAllQueue.cpp \
|
---|
396 | VMMAll/PGMAll.cpp \
|
---|
397 | VMMAll/PGMAllHandler.cpp \
|
---|
398 | VMMAll/PGMAllMap.cpp \
|
---|
399 | VMMAll/PGMAllPhys.cpp \
|
---|
400 | VMMAll/PGMAllPool.cpp \
|
---|
401 | VMMAll/REMAll.cpp \
|
---|
402 | VMMAll/SELMAll.cpp \
|
---|
403 | VMMAll/TMAll.cpp \
|
---|
404 | VMMAll/TMAllCpu.cpp \
|
---|
405 | VMMAll/TMAllReal.cpp \
|
---|
406 | VMMAll/TMAllVirtual.cpp \
|
---|
407 | VMMAll/TRPMAll.cpp \
|
---|
408 | VMMAll/VMAll.cpp \
|
---|
409 | VMMAll/VMMAll.cpp \
|
---|
410 | VMMAll/VMMAllA.asm \
|
---|
411 | VMMAll/CSAMAll.cpp \
|
---|
412 | VMMAll/PATMAll.cpp
|
---|
413 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
414 | VMMRC_SOURCES += VMMRC/VMMRC.def
|
---|
415 | endif
|
---|
416 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
417 | VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def
|
---|
418 | endif
|
---|
419 |
|
---|
420 |
|
---|
421 | # the very last one.
|
---|
422 | VMMRC_SOURCES += VMMRC/VMMRC99.asm
|
---|
423 |
|
---|
424 | VMMRC/VMMRCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMRCDeps.cpp to .c
|
---|
425 | endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS
|
---|
426 |
|
---|
427 |
|
---|
428 | ifndef VBOX_ONLY_EXTPACKS
|
---|
429 | #
|
---|
430 | # VMMR0.r0
|
---|
431 | #
|
---|
432 | SYSMODS += VMMR0
|
---|
433 | VMMR0_TEMPLATE = VBoxR0
|
---|
434 | VMMR0_SYSSUFF = .r0
|
---|
435 |
|
---|
436 | VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 \
|
---|
437 | $(VMM_COMMON_DEFS) RTASSERT_HAVE_SHOULD_PANIC
|
---|
438 | ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
|
---|
439 | ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
|
---|
440 | VMMR0_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
|
---|
441 | endif
|
---|
442 | ifdef VBOX_WITH_PCI_PASSTHROUGH
|
---|
443 | VMMR0_DEFS += IN_PCIRAW_R0
|
---|
444 | endif
|
---|
445 | VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
446 | VMMR0_DEFS.darwin.x86 = \
|
---|
447 | VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 \
|
---|
448 | VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0
|
---|
449 | VMMR0_DEFS.win.amd64 = VBOX_WITH_KERNEL_USING_XMM
|
---|
450 |
|
---|
451 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
452 | VMMR0_LDFLAGS = -e VMMR0EntryEx
|
---|
453 | endif
|
---|
454 | VMMR0_INCS = \
|
---|
455 | include \
|
---|
456 | PATM
|
---|
457 |
|
---|
458 | VMMR0_SOURCES = \
|
---|
459 | VMMR0/CPUMR0.cpp \
|
---|
460 | VMMR0/CPUMR0A.asm \
|
---|
461 | VMMR0/GMMR0.cpp \
|
---|
462 | VMMR0/GVMMR0.cpp \
|
---|
463 | VMMR0/HWACCMR0.cpp \
|
---|
464 | VMMR0/HWACCMR0A.asm \
|
---|
465 | VMMR0/HWSVMR0.cpp \
|
---|
466 | VMMR0/HWVMXR0.cpp \
|
---|
467 | VMMR0/PDMR0Device.cpp \
|
---|
468 | VMMR0/PDMR0Driver.cpp \
|
---|
469 | VMMR0/PGMR0.cpp \
|
---|
470 | VMMR0/PGMR0SharedPage.cpp \
|
---|
471 | VMMR0/TRPMR0.cpp \
|
---|
472 | VMMR0/TRPMR0A.asm \
|
---|
473 | VMMR0/VMMR0.cpp \
|
---|
474 | VMMRZ/DBGFRZ.cpp \
|
---|
475 | VMMRZ/VMMRZ.cpp \
|
---|
476 | VMMAll/CPUMAllA.asm \
|
---|
477 | VMMAll/CPUMAllRegs.cpp \
|
---|
478 | VMMAll/CPUMStack.cpp \
|
---|
479 | VMMAll/DBGFAll.cpp \
|
---|
480 | VMMAll/EMAll.cpp \
|
---|
481 | VMMAll/EMAllA.asm \
|
---|
482 | VMMAll/FTMAll.cpp \
|
---|
483 | VMMAll/HWACCMAll.cpp \
|
---|
484 | VMMAll/IOMAll.cpp \
|
---|
485 | VMMAll/IOMAllMMIO.cpp \
|
---|
486 | VMMAll/MMAll.cpp \
|
---|
487 | VMMAll/MMAllHyper.cpp \
|
---|
488 | VMMAll/MMAllPagePool.cpp \
|
---|
489 | VMMAll/PDMAll.cpp \
|
---|
490 | VMMAll/PDMAllCritSect.cpp \
|
---|
491 | VMMAll/PDMAllQueue.cpp \
|
---|
492 | VMMAll/PGMAll.cpp \
|
---|
493 | VMMAll/PGMAllHandler.cpp \
|
---|
494 | VMMAll/PGMAllMap.cpp \
|
---|
495 | VMMAll/PGMAllPhys.cpp \
|
---|
496 | VMMAll/PGMAllPool.cpp \
|
---|
497 | VMMAll/REMAll.cpp \
|
---|
498 | VMMAll/SELMAll.cpp \
|
---|
499 | VMMAll/TMAll.cpp \
|
---|
500 | VMMAll/TMAllCpu.cpp \
|
---|
501 | VMMAll/TMAllReal.cpp \
|
---|
502 | VMMAll/TMAllVirtual.cpp \
|
---|
503 | VMMAll/TRPMAll.cpp \
|
---|
504 | VMMAll/VMAll.cpp \
|
---|
505 | VMMAll/VMMAll.cpp \
|
---|
506 | VMMAll/VMMAllA.asm
|
---|
507 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
508 | VMMR0_SOURCES += VMMR0/VMMR0.def
|
---|
509 | endif
|
---|
510 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
511 | VMMR0_SOURCES += $(VMMR0Imp_0_OUTDIR)/VMMR0.def
|
---|
512 | endif
|
---|
513 | VMMR0_SOURCES.amd64 = \
|
---|
514 | VMMR0/VMMR0JmpA-amd64.asm
|
---|
515 | VMMR0_SOURCES.x86 = \
|
---|
516 | VMMR0/VMMR0JmpA-x86.asm
|
---|
517 | VMMR0_SOURCES.darwin.x86 = \
|
---|
518 | VMMRZ/PGMRZDynMap.cpp
|
---|
519 |
|
---|
520 | VMMR0_LIBS = \
|
---|
521 | $(PATH_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
|
---|
522 | $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
523 | $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB)
|
---|
524 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
525 | VMMR0_LIBS += \
|
---|
526 | $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
527 | endif
|
---|
528 | endif # !VBOX_ONLY_EXTPACKS
|
---|
529 |
|
---|
530 |
|
---|
531 | ifndef VBOX_ONLY_EXTPACKS
|
---|
532 | #
|
---|
533 | # SSMStandalone.lib/a for linking with VBoxSVC and other executables.
|
---|
534 | #
|
---|
535 | LIBRARIES += SSMStandalone
|
---|
536 | SSMStandalone_TEMPLATE = VBOXR3EXE
|
---|
537 | SSMStandalone_DEFS = IN_VMM_R3 IN_VMM_STATIC SSM_STANDALONE
|
---|
538 | SSMStandalone_INCS = include
|
---|
539 | SSMStandalone_SOURCES = VMMR3/SSM.cpp
|
---|
540 | endif # !VBOX_ONLY_EXTPACKS
|
---|
541 |
|
---|
542 |
|
---|
543 | #
|
---|
544 | # For vmmGetSvnRev.
|
---|
545 | #
|
---|
546 | VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
547 |
|
---|
548 | #
|
---|
549 | # Disable annoying warnings about array subscript above array bounds in aPages[]
|
---|
550 | #
|
---|
551 | VMMR3/PGMPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
552 | VMMAll/PGMAllPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
553 |
|
---|
554 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
555 |
|
---|
556 |
|
---|
557 | # Alias the PGM templates to the object in which they are defined.
|
---|
558 | PGMInternal.o \
|
---|
559 | PGMBth.o PGMGst.o PGMShw.o \
|
---|
560 | PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
|
---|
561 |
|
---|
562 | PGMAllBth.o PGMAllGst.o PGMAllShw.o \
|
---|
563 | PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
|
---|
564 |
|
---|
565 | PGMRCBth.o PGMRCGst.o PGMRCShw.o \
|
---|
566 | PGMRCBth.obj PGMRCGst.obj PGMRCShw.obj: PGMRC.o
|
---|
567 |
|
---|
568 | PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
|
---|
569 |
|
---|
570 | PGMInline.o PGMInline.obj: PGMDbg.o
|
---|
571 |
|
---|