1 | # $Id: Makefile.kmk 19297 2009-05-01 17:03:40Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VMM testcases.
|
---|
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 | #
|
---|
26 | # Target lists.
|
---|
27 | #
|
---|
28 | PROGRAMS += tstVMStructSize tstVMStructGC tstAsmStructs tstAsmStructsGC tstVMM tstVMM-HwAccm tstGlobalConfig tstInstrEmul
|
---|
29 | ifneq ($(KBUILD_TARGET),win)
|
---|
30 | PROGRAMS += tstVMMFork
|
---|
31 | endif
|
---|
32 | ifdef VBOX_WITH_TESTCASES
|
---|
33 | PROGRAMS += tstCFGM tstSSM tstMMHyperHeap tstVMM-2 tstVMREQ tstMicro tstCompiler tstVMMR0CallHost-1
|
---|
34 | ifneq ($(KBUILD_TARGET),l4)
|
---|
35 | PROGRAMS += tstAnimate
|
---|
36 | endif
|
---|
37 | SYSMODS += tstMicroGC
|
---|
38 | endif # VBOX_WITH_TESTCASES
|
---|
39 |
|
---|
40 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
41 | PROGRAMS += tstPDMAsyncCompletion
|
---|
42 | endif
|
---|
43 |
|
---|
44 | # Where we put our temporary files (just for simplicity)
|
---|
45 | VBOX_VMM_TESTCASE_OUT_DIR := $(PATH_TARGET)/VMM
|
---|
46 | BLDDIRS += $(VBOX_VMM_TESTCASE_OUT_DIR)
|
---|
47 |
|
---|
48 | #
|
---|
49 | # We setup two 'other' targets for executing the two structure & alignment
|
---|
50 | # validation testcases. Perhaps a bit hackish, but extremely useful.
|
---|
51 | #
|
---|
52 | ifeq ($(KBUILD_TARGET),$(KBUILD_HOST))
|
---|
53 | ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
|
---|
54 | OTHERS += \
|
---|
55 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
|
---|
56 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
|
---|
57 | endif
|
---|
58 | endif
|
---|
59 |
|
---|
60 | # The normal testing pass.
|
---|
61 | TESTING += \
|
---|
62 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
|
---|
63 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run \
|
---|
64 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstInstrEmul.run
|
---|
65 |
|
---|
66 | OTHER_CLEAN += \
|
---|
67 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
|
---|
68 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run \
|
---|
69 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstInstrEmul.run \
|
---|
70 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.h \
|
---|
71 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o \
|
---|
72 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
|
---|
73 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.o \
|
---|
74 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.lst \
|
---|
75 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.h.dump \
|
---|
76 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h \
|
---|
77 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h \
|
---|
78 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h
|
---|
79 |
|
---|
80 | #
|
---|
81 | # Globals
|
---|
82 | #
|
---|
83 | VBOX_PATH_VMM_SRC = $(PATH_ROOT)/src/VBox/VMM
|
---|
84 |
|
---|
85 | #
|
---|
86 | # Targets
|
---|
87 | #
|
---|
88 | tstVMStructGC_TEMPLATE = VBOXGCEXE
|
---|
89 | tstVMStructGC_DEFS = IN_VMM_RC IN_DIS IN_RT_RC IN_RT_GC
|
---|
90 | ifdef VBOX_WITH_R0_LOGGING
|
---|
91 | tstVMStructGC_DEFS += VBOX_WITH_R0_LOGGING
|
---|
92 | endif
|
---|
93 | tstVMStructGC_SOURCES = tstVMStructGC.cpp
|
---|
94 | tstVMStructGC_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_PATH_VMM_SRC)/PATM
|
---|
95 |
|
---|
96 | tstVMStructSize_TEMPLATE= VBOXR3AUTOTST
|
---|
97 | tstVMStructSize_DEFS = IN_VMM_R3 IN_DIS
|
---|
98 | tstVMStructSize_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_PATH_VMM_SRC)/PATM $(VBOX_VMM_TESTCASE_OUT_DIR)
|
---|
99 | tstVMStructSize_SOURCES = tstVMStructSize.cpp
|
---|
100 | tstVMStructSize.cpp_DEPS= $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h
|
---|
101 | ifdef VBOX_WITH_R0_LOGGING
|
---|
102 | tstVMStructSize_DEFS += VBOX_WITH_R0_LOGGING
|
---|
103 | endif
|
---|
104 | ifdef VBOX_WITH_VMI
|
---|
105 | tstVMStructSize_DEFS += VBOX_WITH_VMI
|
---|
106 | tstVMStructSize_INCS += $(VBOX_PATH_VMM_SRC)/PARAV
|
---|
107 | endif
|
---|
108 |
|
---|
109 | tstAsmStructs_TEMPLATE = VBOXR3AUTOTST
|
---|
110 | tstAsmStructs_DEFS = IN_VMM_R3 IN_DIS
|
---|
111 | ifdef VBOX_WITH_R0_LOGGING
|
---|
112 | tstAsmStructs_DEFS += VBOX_WITH_R0_LOGGING
|
---|
113 | endif
|
---|
114 | tstAsmStructs_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_VMM_TESTCASE_OUT_DIR)
|
---|
115 | tstAsmStructs_SOURCES = tstAsmStructs.cpp
|
---|
116 |
|
---|
117 | tstAsmStructsGC_TEMPLATE= VBOXGCEXE
|
---|
118 | tstAsmStructsGC_DEFS = IN_VMM_RC IN_DIS IN_RT_RC IN_RT_GC
|
---|
119 | ifdef VBOX_WITH_R0_LOGGING
|
---|
120 | tstAsmStructsGC_DEFS += VBOX_WITH_R0_LOGGING
|
---|
121 | endif
|
---|
122 | tstAsmStructsGC_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_VMM_TESTCASE_OUT_DIR)
|
---|
123 | tstAsmStructsGC_SOURCES = tstAsmStructs.cpp
|
---|
124 |
|
---|
125 | tstAsmStructs.cpp_DEPS = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h
|
---|
126 |
|
---|
127 |
|
---|
128 | tstGlobalConfig_TEMPLATE= VBOXR3TSTEXE
|
---|
129 | tstGlobalConfig_SOURCES = tstGlobalConfig.cpp
|
---|
130 | tstGlobalConfig_LIBS = $(LIB_RUNTIME)
|
---|
131 |
|
---|
132 | tstMMHyperHeap_TEMPLATE = VBOXR3TSTEXE
|
---|
133 | tstMMHyperHeap_SOURCES = tstMMHyperHeap.cpp
|
---|
134 | tstMMHyperHeap_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
135 |
|
---|
136 | tstSSM_TEMPLATE = VBOXR3TSTEXE
|
---|
137 | tstSSM_SOURCES = tstSSM.cpp
|
---|
138 | tstSSM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
139 |
|
---|
140 | tstInstrEmul_TEMPLATE = VBOXR3EXE
|
---|
141 | tstInstrEmul_SOURCES = tstInstrEmul.cpp ../VMMAll/EMAllA.asm
|
---|
142 | tstInstrEmul_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
143 |
|
---|
144 | tstCFGM_TEMPLATE = VBOXR3TSTEXE
|
---|
145 | tstCFGM_SOURCES = tstCFGM.cpp
|
---|
146 | tstCFGM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
147 |
|
---|
148 | tstVMM_TEMPLATE = VBOXR3EXE
|
---|
149 | tstVMM_SOURCES = tstVMM.cpp
|
---|
150 | tstVMM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
151 |
|
---|
152 | tstVMM-HwAccm_TEMPLATE = VBOXR3EXE
|
---|
153 | tstVMM-HwAccm_SOURCES = tstVMM-HwAccm.cpp
|
---|
154 | tstVMM-HwAccm_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
155 |
|
---|
156 | tstVMMFork_TEMPLATE = VBOXR3EXE
|
---|
157 | tstVMMFork_SOURCES = tstVMMFork.cpp
|
---|
158 | tstVMMFork_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
159 |
|
---|
160 | tstVMM-2_TEMPLATE = VBOXR3EXE
|
---|
161 | tstVMM-2_SOURCES = tstVMM-2.cpp
|
---|
162 | tstVMM-2_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
163 |
|
---|
164 | tstVMMR0CallHost-1_TEMPLATE = VBOXR3EXE
|
---|
165 | tstVMMR0CallHost-1_INCS = $(VBOX_PATH_VMM_SRC)
|
---|
166 | tstVMMR0CallHost-1_SOURCES = \
|
---|
167 | tstVMMR0CallHost-1.cpp \
|
---|
168 | $(VBOX_PATH_VMM_SRC)/VMMR0/VMMR0A.asm
|
---|
169 | tstVMMR0CallHost-1_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
170 |
|
---|
171 | tstVMREQ_TEMPLATE = VBOXR3EXE
|
---|
172 | tstVMREQ_SOURCES = tstVMREQ.cpp
|
---|
173 | tstVMREQ_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
174 |
|
---|
175 | tstAnimate_TEMPLATE = VBOXR3EXE
|
---|
176 | tstAnimate_SOURCES = tstAnimate.cpp
|
---|
177 | tstAnimate_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
178 |
|
---|
179 | tstCompiler_TEMPLATE = VBOXR3TSTEXE
|
---|
180 | tstCompiler_SOURCES = tstCompiler.cpp
|
---|
181 | tstCompiler_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
182 |
|
---|
183 | tstMicro_TEMPLATE = VBOXR3EXE
|
---|
184 | tstMicro_SOURCES = tstMicro.cpp
|
---|
185 | tstMicro_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
186 |
|
---|
187 | # tstMicroGC.gc
|
---|
188 | tstMicroGC_TEMPLATE = VBOXGC
|
---|
189 | tstMicroGC_SOURCES = tstMicroGC.cpp tstMicroGCA.asm
|
---|
190 | tstMicroGC_DEFS =
|
---|
191 | tstMicroGC_INCS = $(VBOX_PATH_VMM_SRC)/testcase
|
---|
192 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
193 | tstMicroGC_LDFLAGS = -Entry:tstMicroGC
|
---|
194 | endif
|
---|
195 | tstMicroGC_SYSSUFF = .gc
|
---|
196 | tstMicroGC_LIBS = \
|
---|
197 | $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
|
---|
198 | $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB)
|
---|
199 | ifeq ($(filter-out pe lx,$(VBOX_LDR_FMT32)),)
|
---|
200 | tstMicroGC_LIBS += \
|
---|
201 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
202 | $(LIB_VMMGC)
|
---|
203 | endif
|
---|
204 | tstMicroGC_SOURCES.win = tstMicroGC.def
|
---|
205 |
|
---|
206 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
207 | tstPDMAsyncCompletion_TEMPLATE = VBOXR3EXE
|
---|
208 | tstPDMAsyncCompletion_SOURCES = tstPDMAsyncCompletion.cpp
|
---|
209 | tstPDMAsyncCompletion_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
|
---|
210 | endif
|
---|
211 |
|
---|
212 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
213 |
|
---|
214 |
|
---|
215 | #
|
---|
216 | # Run rule for tstInstrEmul.
|
---|
217 | #
|
---|
218 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstInstrEmul.run: $$(INSTARGET_tstInstrEmul) | $$(dir $$@)
|
---|
219 | $(QUIET)$(RM) -f $@
|
---|
220 | $(QUIET)$(REDIRECT) -E 'VBOX_LOG_FLAGS=disabled' -E 'VBOX_LOG_DEST=nofile' \
|
---|
221 | $(if $(eq $(KBUILD_TARGET),darwin), -E 'DYLD_FALLBACK_LIBRARY_PATH=$(dir $(LIB_RUNTIME))') \
|
---|
222 | -- \
|
---|
223 | $(INSTARGET_tstInstrEmul)
|
---|
224 | $(QUIET)$(APPEND) "$@" "done"
|
---|
225 |
|
---|
226 |
|
---|
227 | #
|
---|
228 | # Some handcrafted support targets for tstAsmStructs.
|
---|
229 | #
|
---|
230 |
|
---|
231 | ifeq ($(KBUILD_HOST),win)
|
---|
232 | ifndef TOOL_MINGW32
|
---|
233 | include $(KBUILD_PATH)/tools/MINGW32.kmk
|
---|
234 | endif
|
---|
235 | VBOX_NM ?= $(PATH_TOOL_MINGW32)/bin/nm.exe -p
|
---|
236 | else
|
---|
237 | VBOX_NM ?= nm -p
|
---|
238 | endif
|
---|
239 |
|
---|
240 | MY_ASA_ASM_STUFF = \
|
---|
241 | $(addprefix -D, \
|
---|
242 | $(DEFS) \
|
---|
243 | $(DEFS.$(KBUILD_TYPE)) \
|
---|
244 | $(DEFS.$(KBUILD_TARGET)) \
|
---|
245 | IN_RING3 $(ARCH_BITS_DEFS) \
|
---|
246 | $(DEFS.$(KBUILD_TARGET_ARCH)) \
|
---|
247 | $(DEFS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \
|
---|
248 | ) \
|
---|
249 | -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \
|
---|
250 | $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_VMM_TESTCASE_OUT_DIR),-I$(inc)/)
|
---|
251 |
|
---|
252 | # 1a. make a header file which makes all the structures+members globals.
|
---|
253 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac: \
|
---|
254 | $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
|
---|
255 | $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed \
|
---|
256 | $(DEPTH)/include/iprt/asmdefs.mac \
|
---|
257 | $(DEPTH)/include/VBox/cpum.mac \
|
---|
258 | $(DEPTH)/include/VBox/sup.mac \
|
---|
259 | $(DEPTH)/include/VBox/vm.mac \
|
---|
260 | $(VBOX_PATH_VMM_SRC)/CPUMInternal.mac \
|
---|
261 | $(VBOX_PATH_VMM_SRC)/TRPMInternal.mac \
|
---|
262 | $(VBOX_PATH_VMM_SRC)/HWACCMInternal.mac \
|
---|
263 | $(VBOX_PATH_VMM_SRC)/VMMInternal.mac \
|
---|
264 | $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
|
---|
265 | $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) \
|
---|
266 | | $$(dir $$@)
|
---|
267 | $(call MSG_GENERATE,tstVMStructSize,$@,$<)
|
---|
268 | ifndef DONT_USE_YASM
|
---|
269 | $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -o $@.o -l $@.lst $<
|
---|
270 | $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed --output $@ $@.lst
|
---|
271 | else
|
---|
272 | $(QUIET)$(TOOL_NASM_AS) -g $(MY_ASA_ASM_STUFF) -o $@.o -l $@.lst $<
|
---|
273 | $(VBOX_NM) $@.o | $(SED) \
|
---|
274 | -e '/[0-9a-fA-F][0-9a-fA-F]* [^a] /d' \
|
---|
275 | -e 's/[0-9a-fA-F][0-9a-fA-F]* a \([^ ]*\)/global \1/' \
|
---|
276 | > $@
|
---|
277 | endif
|
---|
278 |
|
---|
279 | # 1b. make an elf/macho object containing the offsets.
|
---|
280 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o: \
|
---|
281 | $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
|
---|
282 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
|
---|
283 | $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
|
---|
284 | | $$(dir $$@)
|
---|
285 | $(call MSG_COMPILE,tstAsmStructsasm,$<,$@,AS)
|
---|
286 | ifndef DONT_USE_YASM
|
---|
287 | $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -DDO_GLOBALS -o $@ $<
|
---|
288 | else
|
---|
289 | $(QUIET)$(TOOL_NASM_AS) $(MY_ASA_ASM_STUFF) -DDO_GLOBALS -o $@ $<
|
---|
290 | endif
|
---|
291 |
|
---|
292 | # 2. use nm and sed to transform this into the header we want.
|
---|
293 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o
|
---|
294 | $(call MSG_GENERATE,tstVMStructSize,$@,$<)
|
---|
295 | $(QUIET)$(RM) -f $@ $@.dump $@.tmp
|
---|
296 | $(QUIET)$(REDIRECT) -wo $@.dump -- $(VBOX_NM) $<
|
---|
297 | $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \
|
---|
298 | -e '/00[0-9a-fA-F]* [aA] [^_.]*\./!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \
|
---|
299 | --output $@.tmp $@.dump
|
---|
300 | $(QUIET)$(SED) -e '/VM_size$$/d' -e '/VMCPU_size$$/d' \
|
---|
301 | -e '/00[0-9a-fA-F]* [aA] [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \
|
---|
302 | --append $@.tmp $@.dump
|
---|
303 | $(QUIET)$(MV) -f $@.tmp $@
|
---|
304 | $(QUIET)$(RM) -f $@.dump
|
---|
305 |
|
---|
306 | # 3. transform the HC header into a GC one by omitting some HC only structures.
|
---|
307 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h
|
---|
308 | $(call MSG_GENERATE,tstVMStructSize,$@,$<)
|
---|
309 | $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' --output $@ $^
|
---|
310 |
|
---|
311 | ## @todo make this default kBuild behaviour.
|
---|
312 | .SECONDEXPANSION:
|
---|
313 |
|
---|
314 | # 4. run it.
|
---|
315 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run: $$(INSTARGET_tstAsmStructs) $$(INSTARGET_tstAsmStructsGC)
|
---|
316 | $(QUIET)$(RM) -f $@
|
---|
317 | $(INSTARGET_tstAsmStructs)
|
---|
318 | $(INSTARGET_tstAsmStructsGC)
|
---|
319 | $(QUIET)$(APPEND) "$@" "done"
|
---|
320 |
|
---|
321 |
|
---|
322 |
|
---|
323 | #
|
---|
324 | # Run rule for tstVMStructSize.
|
---|
325 | #
|
---|
326 |
|
---|
327 | # 1. Manually dump selected structures and members.
|
---|
328 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC) | $$(dir $$@)
|
---|
329 | $(call MSG_GENERATE,tstVMStructSize,$@)
|
---|
330 | $(QUIET)$(REDIRECT) -wo $@ -- $<
|
---|
331 |
|
---|
332 | # 2. run it.
|
---|
333 | $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run: $$(INSTARGET_tstVMStructSize) | $$(dir $$@)
|
---|
334 | $(QUIET)$(RM) -f $@
|
---|
335 | $<
|
---|
336 | $(QUIET)$(APPEND) "$@" "done"
|
---|
337 |
|
---|
338 | # alias for the two struct tests.
|
---|
339 | run-struct-tests: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
|
---|
340 |
|
---|
341 |
|
---|