1 | # $Id: Makefile.kmk 93115 2022-01-01 11:31:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # VirtualBox Validation Kit - Bootsector Tests for Test Drivers or standalone testing.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 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 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 |
|
---|
27 | SUB_DEPTH = ../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Make sure our Config.kmk gets included when kmk is running from a parent directory.
|
---|
33 | #
|
---|
34 | ifndef VBOX_BOOTSECTORS_CONFIG_KMK_INCLUDED
|
---|
35 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
36 | endif
|
---|
37 |
|
---|
38 |
|
---|
39 | #
|
---|
40 | # Include sub-makefile.
|
---|
41 | #
|
---|
42 | # The VBOX_WITH_BS3KIT feature requires NASM 2.12 and either MSVC or gcc
|
---|
43 | # with ms_abi function attribute (gcc v4.4+, MSVC default).
|
---|
44 | # Some 32-bit gcc compilers come without 64-bit support (e.g. EL5).
|
---|
45 | #
|
---|
46 | if defined(VBOX_WITH_OPEN_WATCOM)
|
---|
47 | if1of ($(KBUILD_TARGET), win)
|
---|
48 | VBOX_WITH_BS3KIT = 1
|
---|
49 | else if $(VBOX_GCC_VERSION_CC) >= 40400 # ms_abi was added in 4.4
|
---|
50 | if1of ($(KBUILD_TARGET), linux)
|
---|
51 | ifneq ($(VBOX_GCC_m64),)
|
---|
52 | VBOX_WITH_BS3KIT = 1
|
---|
53 | endif
|
---|
54 | endif
|
---|
55 | endif
|
---|
56 | ifdef VBOX_WITH_BS3KIT
|
---|
57 | include $(PATH_SUB_CURRENT)/bs3kit/Makefile.kmk
|
---|
58 | endif
|
---|
59 | endif
|
---|
60 |
|
---|
61 |
|
---|
62 | #
|
---|
63 | # Boot Sector "Linker" tool.
|
---|
64 | #
|
---|
65 | TOOL_VBoxBootSectorLd = Joins one or more BS2 object files into a floppy img.
|
---|
66 | TOOL_VBoxBootSectorLd_LINK_MISCBIN_OUTPUT =
|
---|
67 | TOOL_VBoxBootSectorLd_LINK_MISCBIN_DEPEND =
|
---|
68 | TOOL_VBoxBootSectorLd_LINK_MISCBIN_DEPORD = $(VBoxBs2Linker_1_TARGET)
|
---|
69 | define TOOL_VBoxBootSectorLd_LINK_MISCBIN_CMDS
|
---|
70 | $(VBoxBs2Linker_1_TARGET) -o $(out) $(objs) $(othersrc)
|
---|
71 | endef
|
---|
72 |
|
---|
73 | BLDPROGS += VBoxBs2Linker
|
---|
74 | VBoxBs2Linker_TEMPLATE = VBoxBldProg
|
---|
75 | VBoxBs2Linker_SOURCES = VBoxBs2Linker.cpp
|
---|
76 |
|
---|
77 |
|
---|
78 | #
|
---|
79 | # Makes a boot sector test image.
|
---|
80 | #
|
---|
81 | TEMPLATE_VBoxBsTestImg = kBuild tool config for building boot sector stuff.
|
---|
82 | TEMPLATE_VBoxBsTestImg_INST = $(INST_VALIDATIONKIT)bootsectors/
|
---|
83 | TEMPLATE_VBoxBsTestImg_BINSUFF = .img
|
---|
84 | TEMPLATE_VBoxBsTestImg_MODE = 0644
|
---|
85 | TEMPLATE_VBoxBsTestImg_ASTOOL = YASM
|
---|
86 | TEMPLATE_VBoxBsTestImg_ASFLAGS = -f bin -P $(VBOX_PATH_BOOTSECTORS_SRC)/bootsector2-first.mac $(VBOX_YASM_Wno-segreg-in-64bit) --mapfile
|
---|
87 | TEMPLATE_VBoxBsTestImg_ASDEFS = ASM_FORMAT_BIN
|
---|
88 | TEMPLATE_VBoxBsTestImg_INCS = \
|
---|
89 | . \
|
---|
90 | ../../VMM/testcase/Instructions
|
---|
91 | TEMPLATE_VBoxBsTestImg_LDTOOL = VBoxBootSectorLd
|
---|
92 |
|
---|
93 |
|
---|
94 | #
|
---|
95 | # The boot sector tests.
|
---|
96 | #
|
---|
97 | MISCBINS += bootsector-shutdown
|
---|
98 | bootsector-shutdown_TEMPLATE = VBoxBsTestImg
|
---|
99 | bootsector-shutdown_SOURCES = bootsector-shutdown.asm
|
---|
100 |
|
---|
101 | MISCBINS += bootsector-pae
|
---|
102 | bootsector-pae_TEMPLATE = VBoxBsTestImg
|
---|
103 | bootsector-pae_SOURCES = bootsector-pae.asm
|
---|
104 |
|
---|
105 | MISCBINS += bootsector-empty
|
---|
106 | bootsector-empty_TEMPLATE = VBoxBsTestImg
|
---|
107 | bootsector-empty_SOURCES = bootsector-empty.asm
|
---|
108 |
|
---|
109 | MISCBINS += bootsector2-test1
|
---|
110 | bootsector2-test1_TEMPLATE = VBoxBsTestImg
|
---|
111 | bootsector2-test1_SOURCES = bootsector2-test1.asm
|
---|
112 |
|
---|
113 | MISCBINS += bootsector2-cpu-hidden-regs-1
|
---|
114 | bootsector2-cpu-hidden-regs-1_TEMPLATE = VBoxBsTestImg
|
---|
115 | bootsector2-cpu-hidden-regs-1_SOURCES = bootsector2-cpu-hidden-regs-1.asm
|
---|
116 |
|
---|
117 | MISCBINS += bootsector2-cpu-instr-1
|
---|
118 | bootsector2-cpu-instr-1_TEMPLATE = VBoxBsTestImg
|
---|
119 | bootsector2-cpu-instr-1_SOURCES = bootsector2-cpu-instr-1.asm
|
---|
120 |
|
---|
121 | MISCBINS += bootsector2-cpu-pf-1
|
---|
122 | bootsector2-cpu-pf-1_TEMPLATE = VBoxBsTestImg
|
---|
123 | bootsector2-cpu-pf-1_SOURCES = bootsector2-cpu-pf-1.asm
|
---|
124 |
|
---|
125 | MISCBINS += bootsector2-cpu-xcpt-1
|
---|
126 | bootsector2-cpu-xcpt-1_TEMPLATE = VBoxBsTestImg
|
---|
127 | bootsector2-cpu-xcpt-1_SOURCES = bootsector2-cpu-xcpt-1.asm
|
---|
128 |
|
---|
129 | MISCBINS += bootsector2-cpu-xcpt-2
|
---|
130 | bootsector2-cpu-xcpt-2_TEMPLATE = VBoxBsTestImg
|
---|
131 | bootsector2-cpu-xcpt-2_SOURCES = bootsector2-cpu-xcpt-2.asm
|
---|
132 |
|
---|
133 | MISCBINS += bootsector2-cpu-a20-1
|
---|
134 | bootsector2-cpu-a20-1_TEMPLATE = VBoxBsTestImg
|
---|
135 | bootsector2-cpu-a20-1_SOURCES = bootsector2-cpu-a20-1.asm
|
---|
136 |
|
---|
137 | MISCBINS += bootsector2-cpu-basic-1
|
---|
138 | bootsector2-cpu-basic-1_TEMPLATE = VBoxBsTestImg
|
---|
139 | bootsector2-cpu-basic-1_SOURCES = bootsector2-cpu-basic-1.asm
|
---|
140 |
|
---|
141 | MISCBINS += bootsector2-cpu-ac-loop
|
---|
142 | bootsector2-cpu-ac-loop_TEMPLATE = VBoxBsTestImg
|
---|
143 | bootsector2-cpu-ac-loop_SOURCES = bootsector2-cpu-ac-loop.asm
|
---|
144 |
|
---|
145 | MISCBINS += bootsector2-cpu-db-loop
|
---|
146 | bootsector2-cpu-db-loop_TEMPLATE = VBoxBsTestImg
|
---|
147 | bootsector2-cpu-db-loop_SOURCES = bootsector2-cpu-db-loop.asm
|
---|
148 |
|
---|
149 | MISCBINS += bootsector2-boot-registers-1
|
---|
150 | bootsector2-boot-registers-1_TEMPLATE = VBoxBsTestImg
|
---|
151 | bootsector2-boot-registers-1_SOURCES = bootsector2-boot-registers-1.asm
|
---|
152 |
|
---|
153 | MISCBINS += bootsector2-triple-fault-1
|
---|
154 | bootsector2-triple-fault-1_TEMPLATE = VBoxBsTestImg
|
---|
155 | bootsector2-triple-fault-1_SOURCES = bootsector2-triple-fault-1.asm
|
---|
156 |
|
---|
157 |
|
---|
158 | ifeq ($(USERNAME),birdxx)
|
---|
159 | if1of ($(KBUILD_HOST).$(KBUILD_HOST_ARCH),win.amd64)
|
---|
160 | #
|
---|
161 | # Generated instruction tests (work in progress).
|
---|
162 | #
|
---|
163 |
|
---|
164 | VBOX_PATH_VBINSTST = $(PATH_ROOT)/src/VBox/VMM/testcase/Instructions
|
---|
165 | VBOX_VBINSTST_GEN = $(VBOX_PATH_VBINSTST)/InstructionTestGen.py
|
---|
166 | VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN = $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) \
|
---|
167 | --split 3 --target bs2-r0-64 --output-base $(bootsectors_0_OUTDIR)/VBInsTst-64 --test-size tiny
|
---|
168 | VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES = $(shell $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN) --makefile-mode)
|
---|
169 |
|
---|
170 | #$$(bootsectors_0_OUTDIR)/VBInsTst.ts + $$(VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES): $(VBOX_VBINSTST_GEN) | $$(dir $$@)
|
---|
171 | # $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN)
|
---|
172 | # $(APPEND) -t $@
|
---|
173 | #
|
---|
174 | #bootsectors_SOURCES += $(bootsectors_0_OUTDIR)/bootsector2-vbinstst-1.img
|
---|
175 | #bootsectors_CLEAN += $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES)
|
---|
176 | #
|
---|
177 | #$$(bootsectors_0_OUTDIR)/bootsector2-vbinstst-1.img: \
|
---|
178 | # $(PATH_SUB_CURRENT)/bootsector2-vbinstst-64-1.asm \
|
---|
179 | # $$(bootsectors_0_OUTDIR)/VBInsTst-64.asm
|
---|
180 | # $(TOOL_$(VBOX_ASTOOL)_AS) -f bin -D ASM_FORMAT_BIN -I $(dir $@) -I $(PATH_ROOT)/include -I $(VBOX_PATH_VBINSTST) -o $@ -L nasm -l $@.lst $<
|
---|
181 |
|
---|
182 | MISCBINS += bootsector2-vbinstst-kernel
|
---|
183 | bootsector2-vbinstst-kernel_TEMPLATE = VBoxBsTestImg
|
---|
184 | bootsector2-vbinstst-kernel_SOURCES = \
|
---|
185 | bootsector2-vbinstst-kernel.asm
|
---|
186 |
|
---|
187 |
|
---|
188 | MISCBINS += bootsector2-vbinstst-64-1
|
---|
189 | bootsector2-vbinstst-64-1_TEMPLATE = VBoxBsTestImg
|
---|
190 | bootsector2-vbinstst-64-1_DEFS = \
|
---|
191 | BS2_BIG_IMAGE_LM64 \
|
---|
192 | BS2_BIG_IMAGE_GEN_SOURCE_FILE=bs2-vbinstst-64-1.asm \
|
---|
193 | BS2_BIG_IMAGE_GEN_TEST_NAME=\"bs2-vbinstst-64-1\"
|
---|
194 | bootsector2-vbinstst-64-1_INCS = $(bootsector2-vbinstst-64-1_0_OUTDIR)/
|
---|
195 | bootsector2-vbinstst-64-1_SOURCES = \
|
---|
196 | bootsector2-vbinstst-kernel.asm \
|
---|
197 | bootsector2-vbinstst-big-template.asm
|
---|
198 | bootsector2-vbinstst-64-1_INTERMEDIATES = \
|
---|
199 | $(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm
|
---|
200 | bootsector2-vbinstst-64-1_CLEAN = \
|
---|
201 | $(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm
|
---|
202 |
|
---|
203 | $$(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm: $(VBOX_VBINSTST_GEN) | $$(dir $$@)
|
---|
204 | $(REDIRECT) -0 /dev/null -- $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) --target bs2-r0-64-big --output-base $(basename $@) --test-size medium
|
---|
205 |
|
---|
206 | MISCBINS += bootsector2-vbinstst-32-1
|
---|
207 | bootsector2-vbinstst-32-1_TEMPLATE = VBoxBsTestImg
|
---|
208 | bootsector2-vbinstst-32-1_DEFS = \
|
---|
209 | BS2_BIG_IMAGE_PP32 \
|
---|
210 | BS2_BIG_IMAGE_GEN_SOURCE_FILE=bs2-vbinstst-32-1.asm \
|
---|
211 | BS2_BIG_IMAGE_GEN_TEST_NAME=\"bs2-vbinstst-32-1\"
|
---|
212 | bootsector2-vbinstst-32-1_INCS = $(bootsector2-vbinstst-32-1_0_OUTDIR)/
|
---|
213 | bootsector2-vbinstst-32-1_SOURCES = \
|
---|
214 | bootsector2-vbinstst-kernel.asm \
|
---|
215 | bootsector2-vbinstst-big-template.asm
|
---|
216 | bootsector2-vbinstst-32-1_INTERMEDIATES = \
|
---|
217 | $(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm
|
---|
218 | bootsector2-vbinstst-32-1_CLEAN = \
|
---|
219 | $(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm
|
---|
220 |
|
---|
221 | $$(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm: $(VBOX_VBINSTST_GEN) | $$(dir $$@)
|
---|
222 | $(REDIRECT) -0 /dev/null -- $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) --target bs2-r0-32-big --output-base $(basename $@) --test-size medium
|
---|
223 |
|
---|
224 | endif
|
---|
225 | endif # bird-only
|
---|
226 |
|
---|
227 |
|
---|
228 | ifdef VBOX_WITH_BS3KIT
|
---|
229 | #
|
---|
230 | # Bs3kit
|
---|
231 | #
|
---|
232 |
|
---|
233 | #
|
---|
234 | # APIC
|
---|
235 | #
|
---|
236 | MISCBINS += bs3-apic-1
|
---|
237 | bs3-apic-1_TEMPLATE = VBoxBS3KitImg
|
---|
238 | bs3-apic-1_SOURCES = \
|
---|
239 | bs3kit/bs3-first-rm.asm \
|
---|
240 | bs3-apic-1.c \
|
---|
241 |
|
---|
242 |
|
---|
243 | # CPU basics #2 (first being bootsector2-cpu-basic-1).
|
---|
244 | MISCBINS += bs3-cpu-basic-2
|
---|
245 | bs3-cpu-basic-2_TEMPLATE = VBoxBS3KitImg
|
---|
246 | bs3-cpu-basic-2_INCS = .
|
---|
247 | bs3-cpu-basic-2_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-basic-2-template.c
|
---|
248 | bs3-cpu-basic-2_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-basic-2-template.c
|
---|
249 | bs3-cpu-basic-2_SOURCES = \
|
---|
250 | bs3kit/bs3-first-rm.asm \
|
---|
251 | bs3-cpu-basic-2.c \
|
---|
252 | bs3-cpu-basic-2-x0.c \
|
---|
253 | bs3-cpu-basic-2-32.c32 \
|
---|
254 | bs3-cpu-basic-2-pf.c32 \
|
---|
255 | bs3-cpu-basic-2-asm.asm \
|
---|
256 | bs3kit/bs3-cmn-instantiate-x0.c16 \
|
---|
257 | bs3kit/bs3-cmn-instantiate.c32 \
|
---|
258 | bs3kit/bs3-cmn-instantiate.c64
|
---|
259 | bs3-cpu-basic-2-template.o:: \
|
---|
260 | $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
|
---|
261 | $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
|
---|
262 | $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
|
---|
263 | $$(bs3-cpu-basic-2_0_OUTDIR)/bs3-cpu-basic-2-asm.o16
|
---|
264 |
|
---|
265 | #
|
---|
266 | # CPU weird stuff #1.
|
---|
267 | #
|
---|
268 | MISCBINS += bs3-cpu-weird-1
|
---|
269 | bs3-cpu-weird-1_TEMPLATE = VBoxBS3KitImg
|
---|
270 | bs3-cpu-weird-1_INCS = .
|
---|
271 | bs3-cpu-weird-1_SOURCES = \
|
---|
272 | bs3kit/bs3-first-rm.asm \
|
---|
273 | bs3-cpu-weird-1.c \
|
---|
274 | bs3-cpu-weird-1-x0.c \
|
---|
275 | bs3-cpu-weird-1-asm.asm
|
---|
276 |
|
---|
277 | #
|
---|
278 | # 64-bit CPU state #1.
|
---|
279 | #
|
---|
280 | MISCBINS += bs3-cpu-state64-1
|
---|
281 | bs3-cpu-state64-1_TEMPLATE = VBoxBS3KitImg
|
---|
282 | bs3-cpu-state64-1_INCS = .
|
---|
283 | bs3-cpu-state64-1_SOURCES = \
|
---|
284 | bs3kit/bs3-first-init-all-lm64.asm \
|
---|
285 | bs3-cpu-state64-1.c64 \
|
---|
286 | bs3-cpu-state64-1-asm.asm
|
---|
287 |
|
---|
288 | #
|
---|
289 | # FPU state corruption checker.
|
---|
290 | #
|
---|
291 | MISCBINS += bs3-fpustate-1
|
---|
292 | bs3-fpustate-1_TEMPLATE = VBoxBS3KitImg
|
---|
293 | bs3-fpustate-1_INCS = .
|
---|
294 | bs3-fpustate-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-fpustate-1-template.c
|
---|
295 | bs3-fpustate-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-fpustate-1-template.c
|
---|
296 | bs3-fpustate-1_SOURCES = \
|
---|
297 | bs3kit/bs3-first-rm.asm \
|
---|
298 | bs3-fpustate-1.c \
|
---|
299 | bs3kit/bs3-cmn-instantiate.c16 \
|
---|
300 | bs3kit/bs3-cmn-instantiate.c32 \
|
---|
301 | bs3kit/bs3-cmn-instantiate.c64 \
|
---|
302 | bs3-fpustate-1-asm.asm
|
---|
303 | bs3-fpustate-1-template.o:: \
|
---|
304 | $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o16 \
|
---|
305 | $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
|
---|
306 | $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
|
---|
307 | $$(bs3-fpustate-1_0_OUTDIR)/bs3-fpustate-1-asm.o16
|
---|
308 |
|
---|
309 | #
|
---|
310 | # CPU instruction decoding experiments.
|
---|
311 | #
|
---|
312 | MISCBINS += bs3-cpu-decoding-1
|
---|
313 | bs3-cpu-decoding-1_TEMPLATE = VBoxBS3KitImg
|
---|
314 | bs3-cpu-decoding-1_INCS = .
|
---|
315 | bs3-cpu-decoding-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-decoding-1-template.c
|
---|
316 | bs3-cpu-decoding-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-decoding-1-template.c
|
---|
317 | bs3-cpu-decoding-1_SOURCES = \
|
---|
318 | bs3kit/bs3-first-init-all-pp32.asm \
|
---|
319 | bs3-cpu-decoding-1.c32 \
|
---|
320 | bs3-cpu-decoding-1-asm.asm
|
---|
321 | # bs3kit/bs3-cmn-instantiate.c16 \
|
---|
322 | # bs3kit/bs3-cmn-instantiate.c32 \
|
---|
323 | # bs3kit/bs3-cmn-instantiate.c64
|
---|
324 | bs3-cpu-decoding-1-template.o:: \
|
---|
325 | $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3-cpu-decoding-1-asm.o16
|
---|
326 | # $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o16 \
|
---|
327 | # $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
|
---|
328 | # $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
|
---|
329 |
|
---|
330 |
|
---|
331 | #
|
---|
332 | # CPU instructions #2 (first being bootsector2-cpu-instr-1).
|
---|
333 | #
|
---|
334 | MISCBINS += bs3-cpu-instr-2
|
---|
335 | bs3-cpu-instr-2_TEMPLATE = VBoxBS3KitImg
|
---|
336 | bs3-cpu-instr-2_INCS = .
|
---|
337 | bs3-cpu-instr-2_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-instr-2-template.c
|
---|
338 | bs3-cpu-instr-2_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-instr-2-template.c
|
---|
339 | bs3-cpu-instr-2_SOURCES = \
|
---|
340 | bs3kit/bs3-first-rm.asm \
|
---|
341 | bs3-cpu-instr-2.c \
|
---|
342 | bs3-cpu-instr-2-asm.asm \
|
---|
343 | bs3kit/bs3-cmn-instantiate-x0.c16 \
|
---|
344 | bs3kit/bs3-cmn-instantiate.c32 \
|
---|
345 | bs3kit/bs3-cmn-instantiate.c64
|
---|
346 | bs3-cpu-instr-2-template.o:: \
|
---|
347 | $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
|
---|
348 | $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
|
---|
349 | $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
|
---|
350 | $$(bs3-cpu-instr-2_0_OUTDIR)/bs3-cpu-instr-2-asm.o16
|
---|
351 |
|
---|
352 | #
|
---|
353 | # CPU generated instruction tests #1
|
---|
354 | #
|
---|
355 | MISCBINS += bs3-cpu-generated-1
|
---|
356 | bs3-cpu-generated-1_TEMPLATE = VBoxBS3KitImg
|
---|
357 | bs3-cpu-generated-1_INCS = .
|
---|
358 | bs3-cpu-generated-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-generated-1-template.c
|
---|
359 | bs3-cpu-generated-1_SOURCES = \
|
---|
360 | bs3kit/bs3-first-rm.asm \
|
---|
361 | bs3-cpu-generated-1.c \
|
---|
362 | bs3-cpu-generated-1-asm.asm \
|
---|
363 | bs3kit/bs3-cmn-instantiate-x0.c16 \
|
---|
364 | bs3kit/bs3-cmn-instantiate.c32 \
|
---|
365 | bs3kit/bs3-cmn-instantiate.c64 \
|
---|
366 | $(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16
|
---|
367 | bs3-cpu-generated-1_CLEAN = $(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16
|
---|
368 |
|
---|
369 | bs3-cpu-generated-1-template.o:: \
|
---|
370 | $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
|
---|
371 | $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
|
---|
372 | $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
|
---|
373 | $$(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-asm.o16
|
---|
374 |
|
---|
375 | $$(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16: \
|
---|
376 | $(PATH_SUB_CURRENT)/bs3-cpu-generated-1-data.py \
|
---|
377 | $(PATH_SUB_CURRENT)/../../VMM/VMMAll/IEMAllInstructionsPython.py \
|
---|
378 | $(PATH_SUB_CURRENT)/../../VMM/VMMAll/IEMAllInstructions*.cpp.h \
|
---|
379 | | $$(dir $$@)
|
---|
380 | $(REDIRECT) -0 /dev/null -- $(VBOX_BLD_PYTHON) $< $@
|
---|
381 |
|
---|
382 | #
|
---|
383 | # Memory allocation.
|
---|
384 | #
|
---|
385 | MISCBINS += bs3-memalloc-1
|
---|
386 | bs3-memalloc-1_TEMPLATE = VBoxBS3KitImg
|
---|
387 | bs3-memalloc-1_INCS = .
|
---|
388 | bs3-memalloc-1_SOURCES = \
|
---|
389 | bs3kit/bs3-first-init-all-lm64.asm \
|
---|
390 | bs3-memalloc-1.c64
|
---|
391 |
|
---|
392 |
|
---|
393 | #
|
---|
394 | # Timer Interrupts
|
---|
395 | #
|
---|
396 | MISCBINS += bs3-timers-1
|
---|
397 | bs3-timers-1_TEMPLATE = VBoxBS3KitImg
|
---|
398 | bs3-timers-1_INCS = .
|
---|
399 | bs3-timers-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-timers-1-template.c
|
---|
400 | bs3-timers-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-timers-1-template.c
|
---|
401 | bs3-timers-1_SOURCES = \
|
---|
402 | bs3kit/bs3-first-rm.asm \
|
---|
403 | bs3-timers-1.c \
|
---|
404 | bs3-timers-1-x0.c
|
---|
405 |
|
---|
406 | #
|
---|
407 | # Timing
|
---|
408 | #
|
---|
409 | MISCBINS += bs3-timing-1
|
---|
410 | bs3-timing-1_TEMPLATE = VBoxBS3KitImg
|
---|
411 | bs3-timing-1_INCS = .
|
---|
412 | bs3-timing-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-timing-1-template.c
|
---|
413 | bs3-timing-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-timing-1-template.c
|
---|
414 | bs3-timing-1_SOURCES = \
|
---|
415 | bs3kit/bs3-first-rm.asm \
|
---|
416 | bs3-timing-1.c \
|
---|
417 | bs3-timing-1-32.c32
|
---|
418 |
|
---|
419 | #
|
---|
420 | # Lock contention and interruption.
|
---|
421 | #
|
---|
422 | MISCBINS += bs3-locking-1
|
---|
423 | bs3-locking-1_TEMPLATE = VBoxBS3KitImg
|
---|
424 | bs3-locking-1_INCS = .
|
---|
425 | bs3-locking-1_SOURCES = \
|
---|
426 | bs3kit/bs3-first-rm.asm \
|
---|
427 | bs3-locking-1.c
|
---|
428 |
|
---|
429 | endif # VBOX_WITH_BS3KIT
|
---|
430 |
|
---|
431 |
|
---|
432 | #
|
---|
433 | # Executable version of the bs3-timing-1 bootsector.
|
---|
434 | #
|
---|
435 | PROGRAMS += bs3-timing-1-exe
|
---|
436 | bs3-timing-1-exe_TEMPLATE = VBoxValidationKitR3
|
---|
437 | bs3-timing-1-exe_NAME = bs3-timing-1
|
---|
438 | bs3-timing-1-exe_SOURCES = bs3-timing-1-exe.c
|
---|
439 |
|
---|
440 |
|
---|
441 | #
|
---|
442 | # pylint
|
---|
443 | #
|
---|
444 | VBOX_VALIDATIONKIT_PYTHON_SOURCES += $(wildcard $(PATH_SUB_CURRENT)/*.py)
|
---|
445 | $(evalcall def_vbox_validationkit_process_python_sources)
|
---|
446 |
|
---|
447 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
448 |
|
---|