VirtualBox

source: vbox/trunk/src/VBox/VMM/Makefile.kmk@ 65825

Last change on this file since 65825 was 65758, checked in by vboxsync, 8 years ago

IEM: Split out IEMAllInstructionsOneByte.cpp.h and IEMAllInstructionsTwoByte0f.cpp.h from IEMAllInstructions.cpp.h.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 27.0 KB
Line 
1# $Id: Makefile.kmk 65758 2017-02-13 09:44:19Z vboxsync $
2## @file
3# Top-level makefile for the VMM.
4#
5
6#
7# Copyright (C) 2006-2016 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
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Include sub-makefiles.
22ifndef VBOX_ONLY_EXTPACKS
23 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
24endif
25include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
26
27
28# Fail on unsupported hosts.
29ifeq ($(KBUILD_TARGET_ARCH),x86)
30 ifeq ($(KBUILD_TARGET),darwin)
31 $(error 32-bit darwin is no longer a supported VirtualBox host. Go back to 4.3 or older for 32-bit support.)
32 else ifeq ($(KBUILD_TARGET),solaris)
33 $(error 32-bit solaris is no longer a supported VirtualBox host. Go back to 4.2 or older for 32-bit support.)
34 endif
35endif
36
37
38#
39# Globals
40#
41
42## DEFS variable that is picked up by all three VMM targets (R0, R3, RC).
43# Can be prepended to by setting it in LocalConfig.kmk
44VMM_COMMON_DEFS ?= VBOX_IN_VMM
45ifdef VBOX_WITH_2ND_IEM_STEP
46 VMM_COMMON_DEFS += VBOX_WITH_2ND_IEM_STEP
47endif
48ifdef VBOX_WITH_3RD_IEM_STEP
49 VMM_COMMON_DEFS += VBOX_WITH_3RD_IEM_STEP
50endif
51#ifdef VBOX_WITH_IEM
52# VMM_COMMON_DEFS += VBOX_WITH_IEM
53#endif
54ifdef VBOX_WITH_REM
55 VMM_COMMON_DEFS += VBOX_WITH_REM
56endif
57ifdef VBOX_WITH_MULTI_CORE
58 VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
59endif
60ifdef VBOX_WITH_R0_LOGGING
61 VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
62endif
63ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
64 VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
65endif
66ifdef VBOX_WITH_PCI_PASSTHROUGH
67 VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH
68endif
69ifdef VBOX_WITH_DTRACE_RC
70 VMM_COMMON_DEFS += VBOX_WITH_DTRACE_RC
71endif
72ifdef VBOX_WITH_SAFE_STR
73 VMM_COMMON_DEFS += VBOX_WITH_SAFE_STR
74endif
75ifdef VBOX_WITH_RAW_RING1
76 VMM_COMMON_DEFS += VBOX_WITH_RAW_RING1
77endif
78ifdef VBOX_WITH_64ON32_IDT
79 VMM_COMMON_DEFS += VBOX_WITH_64ON32_IDT
80endif
81ifdef VBOX_WITH_64ON32_CMOS_DEBUG
82 VMM_COMMON_DEFS += VBOX_WITH_64ON32_CMOS_DEBUG
83endif
84ifdef VBOXSTRICTRC_STRICT_ENABLED
85 VMM_COMMON_DEFS += VBOXSTRICTRC_STRICT_ENABLED
86endif
87ifeq ($(KBUILD_TARGET),amd64)
88 VMM_COMMON_DEFS += VBOX_WITH_MORE_RING0_MEM_MAPPINGS
89endif
90
91# VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
92
93# Special IEM debug mode which compares the result with HM/REM
94ifdef IEM_VERIFICATION_MODE
95 VMM_COMMON_DEFS += IEM_VERIFICATION_MODE IEM_VERIFICATION_MODE_FULL IEM_VERIFICATION_MODE_FULL_HM
96endif
97
98
99#
100# The VMM DLL.
101#
102ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
103 DLLS += VBoxVMM
104endif
105VBoxVMM_TEMPLATE = VBoxR3DllNoPic
106VBoxVMM_SONAME.linux = VBoxVMM.so
107
108VBoxVMM_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG $(VMM_COMMON_DEFS)
109## @todo eliminate IN_GMM_R3
110ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
111 VBoxVMM_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
112endif
113ifdef VBOX_WITH_VUSB
114 VBoxVMM_DEFS += VBOX_WITH_USB
115endif
116ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
117 VBoxVMM_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
118endif
119ifdef VBOX_WITH_NETSHAPER
120 VBoxVMM_DEFS += VBOX_WITH_NETSHAPER
121endif
122ifdef VBOX_WITH_RAW_MODE
123 VBoxVMM_DEFS += VBOX_WITH_RAW_MODE VBOX_WITH_RAW_MODE_NOT_R0
124endif
125ifdef VBOX_WITH_VMM_R0_SWITCH_STACK
126 VBoxVMM_DEFS += VMM_R0_SWITCH_STACK
127endif
128if "$(KBUILD_TYPE)" == "debug" && "$(USERNAME)" == "bird"
129 VBoxVMM_DEFS += RTMEM_WRAP_TO_EF_APIS
130endif
131VBoxVMM_DEFS.darwin = VMM_R0_SWITCH_STACK
132
133VBoxVMM_INCS = \
134 include \
135 $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) \
136 $(VBoxVMM_0_OUTDIR)/CommonGenIncs
137VBoxVMM_ASINCS = .
138
139VBoxVMM_SOURCES = \
140 VBoxVMM.d \
141 VMMR3/APIC.cpp \
142 VMMR3/CFGM.cpp \
143 VMMR3/CPUM.cpp \
144 VMMR3/CPUMR3CpuId.cpp \
145 VMMR3/CPUMR3Db.cpp \
146 VMMR3/CPUMDbg.cpp \
147 VMMR3/DBGF.cpp \
148 VMMR3/DBGFAddr.cpp \
149 VMMR3/DBGFAddrSpace.cpp \
150 VMMR3/DBGFBp.cpp \
151 VMMR3/DBGFCoreWrite.cpp \
152 VMMR3/DBGFCpu.cpp \
153 VMMR3/DBGFDisas.cpp \
154 VMMR3/DBGFInfo.cpp \
155 VMMR3/DBGFLog.cpp \
156 VMMR3/DBGFMem.cpp \
157 VMMR3/DBGFOS.cpp \
158 VMMR3/DBGFR3PlugIn.cpp \
159 VMMR3/DBGFReg.cpp \
160 VMMR3/DBGFStack.cpp \
161 VMMR3/DBGFR3Flow.cpp \
162 VMMR3/DBGFR3Trace.cpp \
163 VMMR3/DBGFR3Type.cpp \
164 VMMR3/EM.cpp \
165 VMMR3/EMR3Dbg.cpp \
166 $(if $(VBOX_WITH_RAW_MODE),VMMR3/EMRaw.cpp) \
167 VMMR3/EMHM.cpp \
168 VMMR3/FTM.cpp \
169 VMMR3/GIM.cpp \
170 VMMR3/GIMHv.cpp \
171 VMMR3/GIMKvm.cpp \
172 VMMR3/GIMMinimal.cpp \
173 VMMR3/IEMR3.cpp \
174 VMMR3/IOM.cpp \
175 VMMR3/GMM.cpp \
176 VMMR3/MM.cpp \
177 VMMR3/MMHeap.cpp \
178 VMMR3/MMHyper.cpp \
179 VMMR3/MMPagePool.cpp \
180 VMMR3/MMUkHeap.cpp \
181 VMMR3/PDM.cpp \
182 VMMR3/PDMBlkCache.cpp \
183 VMMR3/PDMDevice.cpp \
184 VMMR3/PDMDevHlp.cpp \
185 VMMR3/PDMDevMiscHlp.cpp \
186 VMMR3/PDMDriver.cpp \
187 VMMR3/PDMLdr.cpp \
188 VMMR3/PDMCritSect.cpp \
189 VMMR3/PDMQueue.cpp \
190 VMMR3/PDMThread.cpp \
191 VMMR3/PGM.cpp \
192 VMMR3/PGMDbg.cpp \
193 VMMR3/PGMR3DbgA.asm \
194 VMMR3/PGMHandler.cpp \
195 VMMR3/PGMMap.cpp \
196 VMMR3/PGMPhys.cpp \
197 VMMR3/PGMPool.cpp \
198 VMMR3/PGMSavedState.cpp \
199 VMMR3/PGMSharedPage.cpp \
200 VMMR3/SELM.cpp \
201 VMMR3/SSM.cpp \
202 VMMR3/STAM.cpp \
203 VMMR3/TM.cpp \
204 VMMR3/TRPM.cpp \
205 VMMR3/VM.cpp \
206 VMMR3/VMEmt.cpp \
207 VMMR3/VMReq.cpp \
208 VMMR3/VMM.cpp \
209 VMMR3/VMMGuruMeditation.cpp \
210 VMMR3/VMMSwitcher.cpp \
211 VMMR3/VMMTests.cpp \
212 VMMR3/HM.cpp \
213 $(if-expr defined(VBOX_WITH_RAW_MODE), \
214 VMMR3/CSAM.cpp \
215 VMMR3/PATM.cpp \
216 VMMR3/PATMPatch.cpp \
217 VMMR3/PATMGuest.cpp \
218 VMMR3/PATMA.asm \
219 VMMR3/PATMSSM.cpp \
220 VMMR3/PATMR3Dbg.cpp \
221 ,) \
222 VMMAll/APICAll.cpp \
223 VMMAll/CPUMAllRegs.cpp \
224 VMMAll/CPUMAllMsrs.cpp \
225 VMMAll/CPUMStack.cpp \
226 VMMAll/DBGFAll.cpp \
227 VMMAll/HMAll.cpp \
228 VMMAll/IEMAll.cpp \
229 VMMAll/IEMAllAImpl.asm \
230 VMMAll/IEMAllAImplC.cpp \
231 VMMAll/IOMAll.cpp \
232 VMMAll/IOMAllMMIO.cpp \
233 VMMAll/MMAll.cpp \
234 VMMAll/MMAllHyper.cpp \
235 VMMAll/MMAllPagePool.cpp \
236 VMMAll/PDMAll.cpp \
237 VMMAll/PDMAllCritSect.cpp \
238 VMMAll/PDMAllCritSectRw.cpp \
239 VMMAll/PDMAllCritSectBoth.cpp \
240 VMMAll/PDMAllQueue.cpp \
241 VMMAll/PGMAll.cpp \
242 VMMAll/PGMAllHandler.cpp \
243 VMMAll/PGMAllMap.cpp \
244 VMMAll/PGMAllPhys.cpp \
245 VMMAll/PGMAllPool.cpp \
246 VMMAll/SELMAll.cpp \
247 VMMAll/EMAll.cpp \
248 VMMAll/EMAllA.asm \
249 VMMAll/FTMAll.cpp \
250 VMMAll/GIMAll.cpp \
251 VMMAll/GIMAllHv.cpp \
252 VMMAll/GIMAllKvm.cpp \
253 VMMAll/TMAll.cpp \
254 VMMAll/TMAllCpu.cpp \
255 VMMAll/TMAllReal.cpp \
256 VMMAll/TMAllVirtual.cpp \
257 VMMAll/TRPMAll.cpp \
258 VMMAll/VMAll.cpp \
259 VMMAll/VMMAll.cpp \
260 VMMAll/VMMAllA.asm \
261 $(if-expr defined(VBOX_WITH_RAW_MODE), \
262 VMMAll/CSAMAll.cpp \
263 VMMAll/PATMAll.cpp \
264 ,)
265ifdef VBOX_WITH_VUSB
266 VBoxVMM_SOURCES += VMMR3/PDMUsb.cpp
267endif
268ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
269 VBoxVMM_SOURCES += \
270 VMMR3/PDMAsyncCompletion.cpp \
271 VMMR3/PDMAsyncCompletionFile.cpp \
272 VMMR3/PDMAsyncCompletionFileFailsafe.cpp \
273 VMMR3/PDMAsyncCompletionFileNormal.cpp
274endif
275ifdef VBOX_WITH_NETSHAPER
276 VBoxVMM_SOURCES += \
277 VMMR3/PDMNetShaper.cpp \
278 VMMAll/PDMAllNetShaper.cpp
279endif
280ifdef VBOX_WITH_REM
281 VBoxVMM_SOURCES += \
282 VMMAll/REMAll.cpp
283endif
284ifdef VBOX_WITH_RAW_MODE
285 VBoxVMM_SOURCES.x86 += \
286 VMMSwitcher/32BitTo32Bit.asm \
287 VMMSwitcher/32BitToPAE.asm \
288 VMMSwitcher/PAETo32Bit.asm \
289 VMMSwitcher/PAEToPAE.asm
290 VBoxVMM_SOURCES.amd64 = \
291 VMMSwitcher/AMD64To32Bit.asm \
292 VMMSwitcher/AMD64ToPAE.asm
293endif
294VBoxVMM_SOURCES.x86 += \
295 VMMSwitcher/32BitToAMD64.asm \
296 VMMSwitcher/PAEToAMD64.asm \
297 VMMSwitcher/X86Stub.asm
298VBoxVMM_SOURCES.amd64 += \
299 VMMSwitcher/AMD64Stub.asm
300
301VBoxVMM_LIBS = \
302 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
303ifdef VBOX_WITH_DEBUGGER
304 VBoxVMM_LIBS += \
305 $(PATH_STAGE_LIB)/Debugger$(VBOX_SUFF_LIB)
306endif
307VBoxVMM_LIBS += \
308 $(LIB_REM) \
309 $(LIB_RUNTIME)
310
311VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
312VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined
313VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
314VBoxVMM_LDFLAGS.solaris = -mimpure-text
315
316# SSM wish to know the build type, host os and arch.
317VMMR3/SSM.cpp_DEFS += \
318 KBUILD_TYPE=\"$(KBUILD_TYPE)\" \
319 KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
320 KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
321
322
323#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
324# ifeq ($(KBUILD_HOST), linux)
325#VBoxVMM_LIBS += aio
326# endif
327#endif
328
329if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
330 VBoxVMM_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
331 VBoxVMM_VMMAll/IEMAllAImplC.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
332 VBoxVMM_VMMAll/PGMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
333 VBoxVMM_VMMAll/PDMAllCritSect.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
334endif
335
336$(call VBOX_SET_VER_INFO_DLL,VBoxVMM,VirtualBox VMM) # Version info / description.
337
338
339#
340# Generate macro template for IEM instruction statistics.
341#
342VBoxVMM_INTERMEDIATES += $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
343VBoxVMM_CLEAN += \
344 $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h.ts \
345 $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
346$$(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h.ts \
347+| $$(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h: \
348 $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructions.cpp.h \
349 $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsOneByte.cpp.h \
350 $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsTwoByte0f.cpp.h
351 $(QUIET)$(call MSG_GENERATE,VBoxVMM,$@,$<)
352 $(QUIET)$(MKDIR) -p -- "$(dir $@)"
353 $(QUIET)$(SED) \
354 -e '/IEMOP_MNEMONIC(/!d' \
355 -e 's/^.*IEMOP_MNEMONIC(/IEM_DO_INSTR_STAT(/' \
356 -e 's/;.*$(DOLLAR)//' \
357 --output "[email protected]" $(filter %.cpp.h,$^)
358 $(QUIET)$(REDIRECT) -wto "$@" -- sort "[email protected]"
359 $(QUIET)$(RM) -f -- "[email protected]"
360 $(QUIET)$(CP) -v -f --changed -- "$@" "$(patsubst %.ts,%,$@)"
361
362
363if "$(KBUILD_TARGET)" == "win" && !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)
364 #
365 # Debug type info hack for VMCPU, VM and similar.
366 #
367 # The microsoft linker seems to be using the last occurence of the structures
368 # when writing the module PDB file. So, we put the fully complete structures
369 # in a library which is at the end of the library list.
370 #
371 VBoxVMM_LIBS += $(VBoxVMMPdbTypeHack_1_TARGET)
372 VBoxVMM_LDFLAGS += /Export:PdbTypeHack
373
374 LIBRARIES += VBoxVMMPdbTypeHack
375 VBoxVMMPdbTypeHack_TEMPLATE = $(VBoxVMM_TEMPLATE)
376 VBoxVMMPdbTypeHack_SOURCES = VMMAll/AllPdbTypeHack.cpp
377 VBoxVMMPdbTypeHack_DEFS = $(VBoxVMM_DEFS)
378 VBoxVMMPdbTypeHack_DEFS.win = $(VBoxVMM_DEFS.win)
379 VBoxVMMPdbTypeHack_DEFS.win.x86 = $(VBoxVMM_DEFS.win.x86)
380 VBoxVMMPdbTypeHack_DEFS.win.amd64 = $(VBoxVMM_DEFS.win.amd64)
381 VBoxVMMPdbTypeHack_INCS = $(VBoxVMM_INCS)
382 VBoxVMMPdbTypeHack_INTERMEDIATES = $(VBoxVMM_INTERMEDIATES)
383endif
384
385
386if defined(VBOX_WITH_RAW_MODE) && $(intersects $(VBOX_LDR_FMT32), pe lx)
387
388 #
389 # VMMRCBuiltin.lib
390 #
391 LIBRARIES += VMMRCBuiltin
392 VMMRCBuiltin_TEMPLATE = VBoxRc
393 ifeq ($(VBOX_LDR_FMT32),pe)
394 VMMRCBuiltin_SOURCES = VMMRC/VMMRCBuiltin.def
395 endif
396 ifeq ($(VBOX_LDR_FMT32),lx)
397 VMMRCBuiltin_SOURCES = $(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def
398 $$(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRCBuiltin.def | $$(dir $$@)
399 $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
400 endif
401
402
403 #
404 # VMMRCImp.lib
405 #
406 LIBRARIES += VMMRCImp
407 VMMRCImp_TEMPLATE = VBoxRc
408 VMMRCImp_SOURCES = $(VMMRCImp_0_OUTDIR)/VMMRC.def
409 VMMRCImp_CLEAN = $(VMMRCImp_0_OUTDIR)/VMMRC.def
410
411 $$(VMMRCImp_0_OUTDIR)/VMMRC.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRC.def | $$(dir $$@)
412 ifeq ($(VBOX_LDR_FMT32),lx)
413 $(SED) \
414 -e '/not-os2/d' \
415 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
416 -e 's/[ \t]DATA[ \t]*/ /' \
417 --output $@ \
418 $<
419 $(APPEND) "$@" ""
420 $(APPEND) "$@" " ___ehInit"
421 else
422 $(SED) \
423 -e '/not-win/d' \
424 -e '/not-$(KBUILD_TARGET_ARCH)/d' \
425 --output $@ $<
426 endif
427
428endif # RC && (pe || lx)
429
430
431if1of ($(VBOX_LDR_FMT), pe lx)
432 #
433 # VMMR0Imp.lib
434 #
435 LIBRARIES += VMMR0Imp
436 VMMR0Imp_TEMPLATE = VBoxR0
437 VMMR0Imp_SOURCES = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
438 VMMR0Imp_CLEAN = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
439 ifeq ($(KBUILD_TARGET),win) # Experiment: Let's see how blunt the ones messing our NULL_THUNK_DATA entries on W10 are.
440 VMMR0Imp_POST_CMDS = $(KLIBTWEAKER_EXT) --clear-timestamps --fill-null_thunk_data $(out)
441 endif
442
443 $$(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
444 ifeq ($(VBOX_LDR_FMT),lx)
445 $(SED) \
446 -e '/not-os2/d' \
447 -e '/not-amd64/d' \
448 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
449 -e 's/[ \t]DATA[ \t]*/ /' \
450 --output $@ $<
451 $(APPEND) "$@" ""
452 $(APPEND) "$@" " ___ehInit"
453 else
454 $(SED) \
455 -e '/not-win/d' \
456 -e '/not-$(KBUILD_TARGET_ARCH)/d' \
457 --output $@ $<
458 endif
459endif # R0: pe + lx
460
461
462#
463# VMMR3Imp.lib
464#
465IMPORT_LIBS += VMMR3Imp
466$(call VBOX_GENERATE_IMPORT_TARGET_FN,VMMR3Imp,VBoxVMM,VMMR3/VMMR3.def)
467
468ifneq ($(VBOX_LIB_VMM_LAZY),$(LIB_VMM))
469 #
470 # VMMR3LazyImp.lib (experimental)
471 #
472 LIBRARIES += VMMR3LazyImp
473 VMMR3LazyImp_TEMPLATE = VBoxR3Dll
474 VMMR3LazyImp_INST = $(INST_LIB)
475 VMMR3LazyImp_SOURCES = $(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm
476 VMMR3LazyImp_CLEAN = $(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm
477 $$(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm: $(PATH_SUB_CURRENT)/VMMR3/VMMR3.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
478 $(VBOX_DEF_2_LAZY_LOAD) --output $@ --library VBoxVMM $<
479endif
480
481
482if defined(VBOX_WITH_RAW_MODE) && !defined(VBOX_ONLY_EXTPACKS)
483 #
484 # VMMRC.rc
485 #
486 SYSMODS += VMMRC
487 VMMRC_TEMPLATE = VBoxRc
488 VMMRC_NAME = VMMRC
489
490 VMMRC_DEFS = IN_VMM_RC IN_RT_RC IN_DIS DIS_CORE_ONLY VBOX_WITH_RAW_MODE VBOX_WITH_RAW_MODE_NOT_R0 IN_SUP_RC \
491 $(VMM_COMMON_DEFS)
492 ifdef VBOX_WITH_VMM_R0_SWITCH_STACK
493 VMMRC_DEFS += VMM_R0_SWITCH_STACK
494 endif
495
496 VMMRC_INCS = \
497 include \
498 VMMRC \
499 $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) \
500 $(VBoxVMM_0_OUTDIR)/CommonGenIncs
501
502 VMMRC_LIBS = \
503 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
504 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB) \
505 $(PATH_STAGE_LIB)/SUPRC$(VBOX_SUFF_LIB)
506 ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
507 VMMRC_LIBS += \
508 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
509 endif
510
511 VMMRC_SOURCES = \
512 VBoxVMM.d \
513 VMMRC/VMMRC0.asm \
514 VMMRC/VMMRCDeps.cpp \
515 VMMRC/CPUMRC.cpp \
516 VMMRC/CPUMRCA.asm \
517 VMMRC/CPUMRCPatchHlp.asm \
518 VMMRC/EMRCA.asm \
519 VMMRC/IOMRC.cpp \
520 VMMRC/MMRamRC.cpp \
521 VMMRC/MMRamRCA.asm \
522 VMMRC/PDMRCDevice.cpp \
523 VMMRC/PGMRC.cpp \
524 VMMRC/SELMRC.cpp \
525 VMMRC/TRPMRC.cpp \
526 VMMRC/TRPMRCHandlers.cpp \
527 VMMRC/TRPMRCHandlersA.asm \
528 VMMRC/VMMRC.cpp \
529 VMMRC/VMMRCA.asm \
530 $(if-expr defined(VBOX_WITH_RAW_MODE), \
531 VMMRC/CSAMRC.cpp \
532 VMMRC/PATMRC.cpp \
533 ,) \
534 VMMRZ/CPUMRZ.cpp \
535 VMMRZ/CPUMRZA.asm \
536 VMMRZ/DBGFRZ.cpp \
537 VMMRZ/PGMRZDynMap.cpp \
538 VMMRZ/VMMRZ.cpp \
539 VMMAll/APICAll.cpp \
540 VMMAll/CPUMAllRegs.cpp \
541 VMMAll/CPUMAllMsrs.cpp \
542 VMMAll/DBGFAll.cpp \
543 VMMAll/IEMAll.cpp \
544 VMMAll/IEMAllAImpl.asm \
545 VMMAll/IEMAllAImplC.cpp \
546 VMMAll/IOMAll.cpp \
547 VMMAll/IOMAllMMIO.cpp \
548 VMMAll/EMAll.cpp \
549 VMMAll/EMAllA.asm \
550 VMMAll/FTMAll.cpp \
551 VMMAll/GIMAll.cpp \
552 VMMAll/GIMAllHv.cpp \
553 VMMAll/GIMAllKvm.cpp \
554 VMMAll/MMAll.cpp \
555 VMMAll/MMAllHyper.cpp \
556 VMMAll/PDMAll.cpp \
557 VMMAll/PDMAllCritSect.cpp \
558 VMMAll/PDMAllCritSectRw.cpp \
559 VMMAll/PDMAllCritSectBoth.cpp \
560 VMMAll/PDMAllQueue.cpp \
561 VMMAll/PGMAll.cpp \
562 VMMAll/PGMAllHandler.cpp \
563 VMMAll/PGMAllMap.cpp \
564 VMMAll/PGMAllPhys.cpp \
565 VMMAll/PGMAllPool.cpp \
566 VMMAll/SELMAll.cpp \
567 VMMAll/TMAll.cpp \
568 VMMAll/TMAllCpu.cpp \
569 VMMAll/TMAllReal.cpp \
570 VMMAll/TMAllVirtual.cpp \
571 VMMAll/TRPMAll.cpp \
572 VMMAll/VMAll.cpp \
573 VMMAll/VMMAll.cpp \
574 VMMAll/VMMAllA.asm \
575 $(if-expr defined(VBOX_WITH_RAW_MODE), \
576 VMMAll/CSAMAll.cpp \
577 VMMAll/PATMAll.cpp \
578 ,)
579 ifeq ($(VBOX_LDR_FMT32),pe)
580 VMMRC_SOURCES += VMMRC/VMMRC.def
581 endif
582 ifeq ($(VBOX_LDR_FMT32),lx)
583 VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def
584 endif
585 ifdef VBOX_WITH_REM
586 VMMRC_SOURCES += \
587 VMMAll/REMAll.cpp
588 endif
589
590 # The very last one.
591 VMMRC_SOURCES += \
592 VMMRC/VMMRC99.asm
593
594 VMMRC/VMMRCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMRCDeps.cpp to .c
595
596 $(call VBOX_SET_VER_INFO_RC,VMMRC,VirtualBox VMM - raw-mode context parts) # Version info / description.
597
598 if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
599 VMMRC_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
600 VMMRC_VMMAll/IEMAllAImplC.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
601 VMMRC_VMMAll/PGMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
602 endif
603
604 VMMRC_INTERMEDIATES += $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
605
606 if "$(KBUILD_TARGET)" == "win"
607 # Debug type info hack for VMCPU, VM and similar. See VBoxVMM for details.
608 VMMRC_LIBS += $(VMMRCPdbTypeHack_1_TARGET)
609 VMMRC_LDFLAGS += /Export:PdbTypeHack
610
611 LIBRARIES += VMMRCPdbTypeHack
612 VMMRCPdbTypeHack_TEMPLATE = $(VMMRC_TEMPLATE)
613 VMMRCPdbTypeHack_SOURCES = VMMAll/AllPdbTypeHack.cpp
614 VMMRCPdbTypeHack_DEFS = $(VMMRC_DEFS)
615 VMMRCPdbTypeHack_DEFS.win = $(VMMRC_DEFS.win)
616 VMMRCPdbTypeHack_DEFS.win.x86 = $(VMMRC_DEFS.win.x86)
617 VMMRCPdbTypeHack_DEFS.win.amd64 = $(VMMRC_DEFS.win.amd64)
618 VMMRCPdbTypeHack_INCS = $(VMMRC_INCS)
619 VMMRCPdbTypeHack_INTERMEDIATES = $(VMMRC_INTERMEDIATES)
620 endif
621
622endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS
623
624
625ifndef VBOX_ONLY_EXTPACKS
626 #
627 # VMMR0.r0
628 #
629 SYSMODS += VMMR0
630 VMMR0_TEMPLATE = VBoxR0
631 VMMR0_SYSSUFF = .r0
632
633 VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 \
634 $(VMM_COMMON_DEFS) RTASSERT_HAVE_SHOULD_PANIC
635 ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
636 ifdef VBOX_WITH_PCI_PASSTHROUGH
637 VMMR0_DEFS += IN_PCIRAW_R0
638 endif
639 ifdef VBOX_WITH_TRIPLE_FAULT_HACK
640 VMMR0_DEFS += VBOX_WITH_TRIPLE_FAULT_HACK
641 endif
642 ifdef VBOX_WITH_RAW_MODE
643 VMMR0_DEFS += VBOX_WITH_RAW_MODE
644 endif
645 ifdef VBOX_WITH_VMM_R0_SWITCH_STACK
646 VMMR0_DEFS += VMM_R0_SWITCH_STACK
647 endif
648 if1of ($(KBUILD_TARGET), darwin linux win)
649 VMMR0_DEFS += VMM_R0_TOUCH_FPU
650 endif
651 VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK
652 VMMR0_DEFS.win.amd64 = VBOX_WITH_KERNEL_USING_XMM
653
654 ifeq ($(VBOX_LDR_FMT),elf)
655 VMMR0_CXXFLAGS += -Wunused -Wunused-variable -Wno-unused-parameter
656 endif
657
658 VMMR0_INCS = \
659 include \
660 $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) \
661 $(VBoxVMM_0_OUTDIR)/CommonGenIncs
662
663 VMMR0_SOURCES = \
664 VBoxVMM.d \
665 VMMR0/CPUMR0.cpp \
666 VMMR0/CPUMR0A.asm \
667 VMMR0/GIMR0.cpp \
668 VMMR0/GIMR0Hv.cpp \
669 VMMR0/GIMR0Kvm.cpp \
670 VMMR0/GMMR0.cpp \
671 VMMR0/GVMMR0.cpp \
672 VMMR0/HMR0.cpp \
673 VMMR0/HMR0A.asm \
674 VMMR0/HMVMXR0.cpp \
675 VMMR0/HMSVMR0.cpp \
676 VMMR0/PDMR0Device.cpp \
677 VMMR0/PDMR0Driver.cpp \
678 VMMR0/PGMR0.cpp \
679 VMMR0/PGMR0SharedPage.cpp \
680 VMMR0/TRPMR0.cpp \
681 VMMR0/TRPMR0A.asm \
682 VMMR0/VMMR0.cpp \
683 VMMRZ/CPUMRZ.cpp \
684 VMMRZ/CPUMRZA.asm \
685 VMMRZ/DBGFRZ.cpp \
686 VMMRZ/VMMRZ.cpp \
687 VMMAll/APICAll.cpp \
688 VMMAll/CPUMAllRegs.cpp \
689 VMMAll/CPUMAllMsrs.cpp \
690 VMMAll/CPUMStack.cpp \
691 VMMAll/DBGFAll.cpp \
692 VMMAll/EMAll.cpp \
693 VMMAll/EMAllA.asm \
694 VMMAll/FTMAll.cpp \
695 VMMAll/GIMAll.cpp \
696 VMMAll/GIMAllHv.cpp \
697 VMMAll/GIMAllKvm.cpp \
698 VMMAll/HMAll.cpp \
699 VMMAll/IEMAll.cpp \
700 VMMAll/IEMAllAImpl.asm \
701 VMMAll/IEMAllAImplC.cpp \
702 VMMAll/IOMAll.cpp \
703 VMMAll/IOMAllMMIO.cpp \
704 VMMAll/MMAll.cpp \
705 VMMAll/MMAllHyper.cpp \
706 VMMAll/MMAllPagePool.cpp \
707 VMMAll/PDMAll.cpp \
708 VMMAll/PDMAllCritSect.cpp \
709 VMMAll/PDMAllCritSectRw.cpp \
710 VMMAll/PDMAllCritSectBoth.cpp \
711 VMMAll/PDMAllQueue.cpp \
712 VMMAll/PGMAll.cpp \
713 VMMAll/PGMAllHandler.cpp \
714 VMMAll/PGMAllMap.cpp \
715 VMMAll/PGMAllPhys.cpp \
716 VMMAll/PGMAllPool.cpp \
717 VMMAll/SELMAll.cpp \
718 VMMAll/TMAll.cpp \
719 VMMAll/TMAllCpu.cpp \
720 VMMAll/TMAllReal.cpp \
721 VMMAll/TMAllVirtual.cpp \
722 VMMAll/TRPMAll.cpp \
723 VMMAll/VMAll.cpp \
724 VMMAll/VMMAll.cpp \
725 VMMAll/VMMAllA.asm
726 if1of ($(VBOX_LDR_FMT), pe lx)
727 VMMR0_SOURCES += $(VMMR0Imp_0_OUTDIR)/VMMR0.def
728 endif
729 ifdef VBOX_WITH_TRIPLE_FAULT_HACK
730 VMMR0_SOURCES += \
731 VMMR0/VMMR0TripleFaultHack.cpp \
732 VMMR0/VMMR0TripleFaultHackA.asm
733 endif
734 ifdef VBOX_WITH_NETSHAPER
735 VMMR0_SOURCES += \
736 VMMAll/PDMAllNetShaper.cpp
737 endif
738 ifdef VBOX_WITH_REM
739 VMMR0_SOURCES += \
740 VMMAll/REMAll.cpp
741 endif
742 VMMR0_SOURCES.amd64 = \
743 VMMR0/VMMR0JmpA-amd64.asm
744 VMMR0_SOURCES.x86 = \
745 VMMR0/VMMR0JmpA-x86.asm
746
747 VMMR0_LIBS = \
748 $(PATH_STAGE_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
749 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
750 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB)
751 ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
752 VMMR0_LIBS += \
753 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
754 endif
755
756 $(call VBOX_SET_VER_INFO_R0,VMMR0,VirtualBox VMM - ring-0 context parts) # Version info / description.
757
758 if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
759 VMMR0_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
760 VMMR0_VMMAll/IEMAllAImplC.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
761 VMMR0_VMMAll/PGMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
762 endif
763
764 VMMR0_INTERMEDIATES += $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
765
766 if "$(KBUILD_TARGET)" == "win"
767 # Debug type info hack for VMCPU, VM and similar. See VBoxVMM for details.
768 VMMR0_LIBS += $(VMMR0PdbTypeHack_1_TARGET)
769 VMMR0_LDFLAGS += /Export:PdbTypeHack
770
771 LIBRARIES += VMMR0PdbTypeHack
772 VMMR0PdbTypeHack_TEMPLATE = $(VMMR0_TEMPLATE)
773 VMMR0PdbTypeHack_SOURCES = VMMAll/AllPdbTypeHack.cpp
774 VMMR0PdbTypeHack_DEFS = $(VMMR0_DEFS)
775 VMMR0PdbTypeHack_DEFS.win = $(VMMR0_DEFS.win)
776 VMMR0PdbTypeHack_DEFS.win.x86 = $(VMMR0_DEFS.win.x86)
777 VMMR0PdbTypeHack_DEFS.win.amd64 = $(VMMR0_DEFS.win.amd64)
778 VMMR0PdbTypeHack_INCS = $(VMMR0_INCS)
779 VMMR0PdbTypeHack_INTERMEDIATES = $(VMMR0_INTERMEDIATES)
780 endif
781
782endif # !VBOX_ONLY_EXTPACKS
783
784
785
786ifndef VBOX_ONLY_EXTPACKS
787 #
788 # SSMStandalone.lib/a for linking with VBoxSVC and other executables.
789 #
790 LIBRARIES += SSMStandalone
791 SSMStandalone_TEMPLATE = VBOXR3EXE
792 SSMStandalone_DEFS = IN_VMM_R3 IN_VMM_STATIC SSM_STANDALONE CPUM_DB_STANDALONE
793 SSMStandalone_INCS = include
794 SSMStandalone_SOURCES = \
795 VMMR3/SSM.cpp \
796 VMMR3/CPUMR3Db.cpp
797endif # !VBOX_ONLY_EXTPACKS
798
799
800if !defined(VBOX_ONLY_EXTPACKS) \
801 && ( defined(VBOX_WITH_DTRACE_R3) \
802 || defined(VBOX_WITH_DTRACE_R0) \
803 || defined(VBOX_WITH_DTRACE_RC))
804 #
805 # Install the dtrace library files.
806 #
807 INSTALLS += VMMLibDTrace
808 VMMLibDTrace_INST = $(VBOX_INST_DTRACE_LIB)$(KBUILD_TARGET_ARCH)/
809 VMMLibDTrace_SOURCES = \
810 dtrace/lib/vbox-types.d \
811 dtrace/lib/$(KBUILD_TARGET_ARCH)/vbox-arch-types.d \
812 $(VMMLibDTrace_0_OUTDIR)/vm.d \
813 $(VMMLibDTrace_0_OUTDIR)/cpumctx.d \
814 $(VMMLibDTrace_0_OUTDIR)/cpum.d \
815 $(VMMLibDTrace_0_OUTDIR)/CPUMInternal.d \
816 $(VMMLibDTrace_0_OUTDIR)/x86.d \
817
818
819 ##
820 # Turn the header $2 into the DTrace library script $1.
821 #
822 define def_vmm_lib_dtrace_preprocess
823 $$$$(VMMLibDTrace_0_OUTDIR)/$1: $2 $$(VBOX_VBOXCPP) | $$$$(dir $$$$@)
824 $$(QUIET)$$(call MSG_GENERATE,VMMLibDTrace,$$@,$$<)
825 $$(QUIET)$(VBOX_VBOXCPP) -d \
826 -D VBOX_FOR_DTRACE_LIB \
827 -D VBOX_FOR_DTRACE_LIB_$(toupper $(KBUILD_TARGET_ARCH)) \
828 -D IN_RING0 \
829 -D RT_C_DECLS_BEGIN= \
830 -D RT_C_DECLS_END= \
831 -D 'RCPTRTYPE(a_Type)=RTRCPTR' \
832 -D 'R3PTRTYPE(a_Type)=RTR3PTR' \
833 -D 'R0PTRTYPE(a_Type)=a_Type' \
834 -D 'AssertCompile(a_Expr)=' \
835 -D 'AssertCompileSize(a_Stuct, a_Size)=' \
836 -D 'bool=uint8_t' \
837 $$(foreach def,\
838 $$(DEFS) \
839 $$(DEFS.$$(KBUILD_TARGET)) \
840 $$(DEFS.$(KBUILD_TARGET_ARCH)) \
841 $$(VMM_COMMON_DEFS) \
842 $$(ARCH_BITS_DEFS)\
843 ,-D '$$(def)') \
844 $$< \
845 $$@
846 $$(QUIET)$$(CHMOD) 644 $$@
847 endef
848 $(evalcall2 def_vmm_lib_dtrace_preprocess,vm.d,$(PATH_ROOT)/include/VBox/vmm/vm.h)
849 $(evalcall2 def_vmm_lib_dtrace_preprocess,cpumctx.d,$(PATH_ROOT)/include/VBox/vmm/cpumctx.h)
850 $(evalcall2 def_vmm_lib_dtrace_preprocess,cpum.d,$(PATH_ROOT)/include/VBox/vmm/cpum.h)
851 $(evalcall2 def_vmm_lib_dtrace_preprocess,CPUMInternal.d,$(PATH_SUB_CURRENT)/include/CPUMInternal.h)
852 $(evalcall2 def_vmm_lib_dtrace_preprocess,x86.d,$(PATH_ROOT)/include/iprt/x86.h)
853
854endif
855
856
857
858#
859# For vmmGetSvnRev.
860#
861VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
862
863#
864# Disable annoying warnings about array subscript above array bounds in aPages[]
865#
866ifneq ($(KBUILD_TARGET),win)
867 VMMR3/PGMPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
868 VMMAll/PGMAllPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
869 VMMAll/PGMAll.cpp_CXXFLAGS = -Wno-unused-function
870 VMMAll/IEMAll.cpp_CXXFLAGS = -Wno-unused-function
871 VMMR0/GMMR0.cpp_CXXFLAGS = -Wno-unused-value
872endif
873
874#
875# Always optimize the interpreter.
876#
877if $(USERNAME) != "bird" || "$(KBUILD_TYPE)" == "release" #|| "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64"
878 if1of ($(KBUILD_TARGET), win)
879 # -noover is recognized despite the statement saying otherwise. It silences these warnings:
880 # cl : Command line warning D9025 : overriding '/Od' with '/O2'
881 # cl : Command line warning D9025 : overriding '/Oy-' with '/Oy'
882 VMMAll/IEMAll.cpp_CXXFLAGS += -noover -O2xy
883 else
884 VMMAll/IEMAll.cpp_CXXFLAGS += -O2
885 #VMMAll/IEMAll.cpp_CXXFLAGS += -fno-align-functions -fno-align-jumps -fno-align-loops # Saves a few of percents, not worth it.
886 #VMMAll/IEMAll.cpp_CXXFLAGS += -fno-reorder-blocks # Saves one or two percent ... never mind.
887 VMMAll/IEMAll.cpp_CXXFLAGS += -fomit-frame-pointer # Omitting the frame pointer results in larger code, but it might be worth it. (esp addressing vs ebp?)
888 endif
889endif # bird wants good stacks
890
891
892# Alias the CPU database entries.
893$(foreach base,$(notdir $(basename $(wildcard $(PATH_SUB_CURRENT)/VMMR3/cpus/*.h))), $(eval $(base).o $(base).obj: CPUMR3Db.o))
894
895
896#
897# Test for undefined symbols.
898#
899if1of ($(SYSMODS),VMMRC)
900 test-undef-rc:: $(PATH_TARGET)/undef-rc.run
901 OTHERS += $(PATH_TARGET)/undef-rc.run
902 CLEANS += $(PATH_TARGET)/undef-rc.run
903 $(PATH_TARGET)/undef-rc.run: \
904 $$(VMMRC_1_TARGET)
905 ifn1of ($(KBUILD_TARGET), linux solaris)
906 else
907 $(call MSG_L1,VMM: Testing for undefined symbols in VMMRC using nm...)
908 $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
909 | $(SED) -n \
910 -e '/^ *U .*/!d' \
911 -e 's/ *U //' \
912 \
913 -e '/^g_VM\>/d'\
914 -e '/^g_CPUM\>/d'\
915 -e '/^g_Logger\>/d'\
916 -e '/^g_RelLogger\>/d'\
917 -e '/^g_TRPM\>/d'\
918 -e '/^g_TRPMCPU\>/d'\
919 -e '/^g_pSUPGlobalInfoPage\>/d'\
920 -e '/^g_trpmHyperCtxCore\>/d' \
921 -e '/^g_trpmGuestCtxCore\>/d' \
922 \
923 -e 's/\(.*\)$(DOLLAR)/ Undefined symbol: \1/' \
924 -e 'p' \
925 -e 'q 1'
926 endif
927 $(QUIET)$(APPEND) -t $@
928endif
929
930include $(FILE_KBUILD_SUB_FOOTER)
931
932
933# Alias the PGM templates to the object in which they are defined.
934PGMInternal.o \
935PGMBth.o PGMGst.o PGMShw.o \
936PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
937
938PGMAllBth.o PGMAllGst.o PGMAllShw.o \
939PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
940
941PGMRCBth.o PGMRCGst.o PGMRCShw.o \
942PGMRCBth.obj PGMRCGst.obj PGMRCShw.obj: PGMRC.o
943
944PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
945
946PGMInline.o PGMInline.obj: PGMDbg.o
947
948# Alias the IEM templates to the object in which they are instantiated.
949IEMInternal.o \
950IEMAllInstructions.cpp.o IEMAllInstructions.cpp.obj \
951IEMAllInstructionsOneByte.cpp.o IEMAllInstructionsOneByte.cpp.obj \
952IEMAllInstructionsTwoByte0f.cpp.o IEMAllInstructionsTwoByte0f.cpp.obj \
953IEMAllCImpl.cpp.o IEMAllCImpl.cpp.obj \
954IEMAllCImplStrInstr.cpp.o IEMAllCImplStrInstr.cpp.obj: IEMAll.o
955
956# Alias the switcher templates.
957PAEand32Bit.o PAEand32Bit.obj: PAETo32Bit.o PAEToPAE.o 32BitTo32Bit.o PAETo32Bit.o
958LegacyandAMD64.o LegacyandAMD64.obj: 32BitToAMD64.o PAEToAMD64.o
959AMD64andLegacy.o AMD64andLegacy.obj: AMD64To32Bit.o AMD64ToPAE.o
960
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette