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