VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/Makefile.kmk@ 102455

Last change on this file since 102455 was 101665, checked in by vboxsync, 14 months ago

ValidationKit: linux.arm64 build fix, bugref:10541

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.0 KB
Line 
1# $Id: Makefile.kmk 101665 2023-10-30 20:58:22Z vboxsync $
2## @file
3# VirtualBox Validation Kit.
4#
5
6#
7# Copyright (C) 2006-2023 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
37SUB_DEPTH = ../../..
38include $(KBUILD_PATH)/subheader.kmk
39
40# Make sure our Config.kmk is included.
41ifndef VBOX_VALIDATIONKIT_CONFIG_KMK_INCLUDED
42 include $(PATH_SUB_CURRENT)/Config.kmk
43endif
44
45# Collect install targets
46VBOX_VALIDATIONKIT_INSTALLS := $(INSTALLS)
47
48#
49# Include sub-makefiles.
50#
51include $(PATH_SUB_CURRENT)/tests/Makefile.kmk
52ifneq ($(KBUILD_HOST),os2) # needs yasm
53 if1of ($(KBUILD_TARGET_ARCH), amd64 x86 arm64) # needs yasm
54 ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.arm64) # No yasm for linux.arm64 right now
55 include $(PATH_SUB_CURRENT)/bootsectors/Makefile.kmk
56 endif
57 endif
58endif
59include $(PATH_SUB_CURRENT)/utils/Makefile.kmk
60include $(PATH_SUB_CURRENT)/common/Makefile.kmk
61include $(PATH_SUB_CURRENT)/testboxscript/Makefile.kmk
62include $(PATH_SUB_CURRENT)/testdriver/Makefile.kmk
63include $(PATH_SUB_CURRENT)/testmanager/Makefile.kmk
64
65#
66# Globals.
67#
68
69# The current target is enabled by default.
70VBOX_WITH_VALIDATIONKIT_PACKING.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
71ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
72 VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
73endif
74
75#
76# Install the test driver framework.
77#
78INSTALLS += ValidationKit-testdriver
79ValidationKit-testdriver_TEMPLATE = VBoxValidationKitR3
80ValidationKit-testdriver_INST = $(INST_VALIDATIONKIT)testdriver/
81ValidationKit-testdriver_MODE = a+r,u+w
82ValidationKit-testdriver_SOURCES := \
83 $(PATH_SUB_CURRENT)/testdriver/__init__.py \
84 $(PATH_SUB_CURRENT)/testdriver/base.py \
85 $(PATH_SUB_CURRENT)/testdriver/btresolver.py \
86 $(PATH_SUB_CURRENT)/testdriver/reporter.py \
87 $(PATH_SUB_CURRENT)/testdriver/testfileset.py \
88 $(PATH_SUB_CURRENT)/testdriver/tst-txsclient.py \
89 $(PATH_SUB_CURRENT)/testdriver/txsclient.py \
90 $(PATH_SUB_CURRENT)/testdriver/vbox.py \
91 $(PATH_SUB_CURRENT)/testdriver/vboxcon.py \
92 $(PATH_SUB_CURRENT)/testdriver/vboxtestfileset.py \
93 $(PATH_SUB_CURRENT)/testdriver/vboxtestvms.py \
94 $(PATH_SUB_CURRENT)/testdriver/vboxwrappers.py \
95 $(PATH_SUB_CURRENT)/testdriver/winbase.py \
96 $(PATH_SUB_CURRENT)/testdriver/win-vbox-net-uninstall.ps1
97ValidationKit-testdriver_EXEC_SOURCES := \
98 $(PATH_SUB_CURRENT)/testdriver/vboxinstaller.py
99$(PATH_SUB_CURRENT)/testdriver/txsclient.py_VBOX_PYCHECKER_FLAGS = --no-reimport
100
101
102#
103# Packing target.
104#
105ifndef VBOX_WITHOUT_VALIDATIONKIT_ZIP
106
107 VBOX_VALIDATIONKIT_INSTALLS := $(filter-out $(VBOX_VALIDATIONKIT_INSTALLS), $(INSTALLS))
108
109 #
110 # VBoxValidationKit.zip.
111 # TODO: Don't pack the python stuff multiple times? Lazy works for now.
112 #
113 PACKING += $(PATH_OUT)/VBoxValidationKit.zip
114 $(PATH_OUT)/VBoxValidationKit.zip: \
115 $(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso \
116 $(VBOX_PATH_VALIDATIONKIT)/ \
117 $$(foreach inst, $$(VBOX_VALIDATIONKIT_INSTALLS), \
118 $$(filter $(PATH_STAGE)/$(INST_VALIDATIONKIT)%, $$($$(inst)_2_STAGE_TARGETS)))
119 $(call MSG_L1,Packing the Test Suite $@)
120 $(QUIET)$(RM) -f $@
121 # Note: Exclude packing the testcase directory into .zip, as that directory only needs to be
122 # included in VBoxValidationKit.iso.
123 $(foreach os, darwin freebsd linux os2 solaris win,$(foreach arch, x86 amd64 arm64\
124 ,$(if-expr defined(VBOX_WITH_VALIDATIONKIT_PACKING.$(os).$(arch))\
125 ,$(NLTAB)$(QUIET)$(REDIRECT) -C $(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/ \
126 -- $(VBOX_ZIP) -r9 $@ $(INST_VALIDATIONKIT) -x '$(INST_VALIDATIONKIT)testcase/*' -x '*.pyc',)))
127
128 #
129 # VBoxTestBoxScript.zip - For setting up the testboxes.
130 #
131 PACKING += $(PATH_OUT)/VBoxTestBoxScript.zip
132 $(PATH_OUT)/VBoxTestBoxScript.zip: \
133 $$(testboxscript_2_STAGE_TARGETS) \
134 $$(testboxscript-common_2_STAGE_TARGETS) \
135 $$(TestBoxHelper_2_STAGE_TARGETS)
136 $(call MSG_L1,Packing the TestBox Script files to $@)
137 $(QUIET)$(RM) -f $@
138 $(foreach os, darwin freebsd linux os2 solaris win,$(foreach arch, x86 amd64 arm64\
139 ,$(if-expr defined(VBOX_WITH_VALIDATIONKIT_PACKING.$(os).$(arch))\
140 ,$(NLTAB)$(QUIET)$(REDIRECT) -C $(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/ \
141 -- $(VBOX_ZIP) -r9X $@ $(INST_TESTBOXSCRIPT) -x '*.pyc',)))
142
143endif # !VBOX_WITHOUT_VALIDATIONKIT_ZIP
144
145
146#
147# Automatically lint python code and python unit tests during build.
148#
149if defined(VBOX_WITH_PYLINT) && !defined(VBOX_WITHOUT_AUTO_PYLINT)
150 OTHERS += $(PATH_TARGET)/pylint.run
151 OTHER_CLEAN += $(PATH_TARGET)/pylint.run
152 $(PATH_TARGET)/pylint.run: $$(filter-out %/testboxscript.o, $$(VBOX_VALIDATIONKIT_PYLINT_TARGETS))
153 $(QUIET)$(APPEND) -t "$@"
154endif
155if defined(VBOX_WITH_PYLINT) && !defined(VBOX_WITHOUT_AUTO_PYUNITTEST) # Tied to pylint for hysterical raisins.
156 OTHERS += $(PATH_TARGET)/pyunittest.run
157 OTHER_CLEAN += $(PATH_TARGET)/pyunittest.run
158 $(PATH_TARGET)/pyunittest.run: $$(VBOX_VALIDATIONKIT_PYUNITTEST_TARGETS)
159 $(QUIET)$(APPEND) -t "$@"
160endif
161
162$(evalcall def_vbox_validationkit_process_python_sources,FORCE)
163$(evalcall def_vbox_validationkit_process_js_sources,FORCE)
164include $(FILE_KBUILD_SUB_FOOTER)
165
166
167VBOX_VALIDATIONKIT_ISO_RSP = $(PATH_TARGET)/VBoxValidationKitISO.rsp
168OTHERS_CLEAN += $(VBOX_VALIDATIONKIT_ISO_RSP)
169
170#
171# Construct the file spec for creating the Validation Kit guest iso.
172#
173VBOX_VALIDATIONKIT_FILESPEC = \
174 valkit.txt=$(VBOX_PATH_VALIDATIONKIT_SRC)/docs/valkit.txt \
175 $(VBOX_PATH_VALIDATIONKIT)/vboxtxs-readme.txt
176ifneq ($(KBUILD_HOST),os2)
177 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
178 VBOX_VALIDATIONKIT_FILESPEC += \
179 $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-pae.img \
180 $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-shutdown.img
181 endif
182endif
183
184VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS =
185
186# Generate VBOX_PATH_VALIDATIONKIT.os.arch variables.
187$(foreach os, darwin freebsd linux os2 solaris win,$(foreach arch, x86 amd64 arm64, \
188 $(eval VBOX_PATH_VALIDATIONKIT.$(os).$(arch) = $(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/$(INST_VALIDATIONKIT)$(os)/$(arch)) \
189 $(eval VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch) = $(abspath $(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/../../testcase/$(os)/$(arch)/testcase)) \
190))
191
192# Common files first.
193define def_vbox_validationkit_common_files
194 ifdef VBOX_WITH_VALIDATIONKIT_PACKING.$(os).$(arch)
195 VBOX_VALIDATIONKIT_FILESPEC += \
196 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/cpu-alloc-all-mem$(TMP_SUFF_EXE) \
197 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/cpu-numa$(TMP_SUFF_EXE) \
198 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/FsPerf$(TMP_SUFF_EXE) \
199 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/IoPerf$(TMP_SUFF_EXE) \
200 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/NetPerf$(TMP_SUFF_EXE) \
201 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/LoadGenerator$(TMP_SUFF_EXE) \
202 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/SerialTest$(TMP_SUFF_EXE) \
203 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/TestExecService$(TMP_SUFF_EXE) \
204 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_rm$(TMP_SUFF_EXE) \
205 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_shutdown$(TMP_SUFF_EXE) \
206 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_tar$(TMP_SUFF_EXE)
207 if1of ($(arch), amd64) ## HACK ALERT! This mirrors VBOX_WITH_R0_MODULES logic in /Config.kmk.
208 VBOX_VALIDATIONKIT_FILESPEC += \
209 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/loadgeneratorR0.r0
210 endif
211 ifn1of ($(os).$(arch), os2.x86 linux.arm64) ## not compiling bootsectors, no yasm. could fix this better.
212 VBOX_VALIDATIONKIT_FILESPEC += \
213 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/bs3-timing-1$(TMP_SUFF_EXE)
214 endif
215 ifn1of ($(os), os2 freebsd netbsd openbsd) ## must match utils/audio/Makefile.kmk
216 VBOX_VALIDATIONKIT_FILESPEC += \
217 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vkat$(TMP_SUFF_EXE)
218 endif
219 ifn1of ($(arch), arm64)
220 VBOX_VALIDATIONKIT_FILESPEC += \
221 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/exceptionsR3$(TMP_SUFF_EXE) \
222 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/xmmsaving$(TMP_SUFF_EXE)
223 endif
224 endif
225endef
226
227TMP_SUFF_EXE = .exe
228$(foreach os, os2 win,$(foreach arch, x86 amd64, \
229 $(eval $(def_vbox_validationkit_common_files)) \
230))
231TMP_SUFF_EXE =
232$(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64 arm64, \
233 $(eval $(def_vbox_validationkit_common_files)) \
234))
235
236# OS specific files - Linux
237ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86
238 VBOX_VALIDATIONKIT_FILESPEC += \
239 $(VBOX_PATH_VALIDATIONKIT.linux.x86)/UsbTest
240endif
241ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64
242 VBOX_VALIDATIONKIT_FILESPEC += \
243 $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/UsbTest
244endif
245ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86
246 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs)
247 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs-nat)
248 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs.service)
249
250else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64
251 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs)
252 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs-nat)
253 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs.service)
254endif
255
256# OS specific files - OS/2
257ifdef VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86
258 VBOX_VALIDATIONKIT_FILESPEC += \
259 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc06.dll \
260 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc061.dll \
261 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc062.dll \
262 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc063.dll \
263 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc064.dll \
264 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc065.dll \
265 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc066.dll
266endif
267
268# OS specific files - Solaris
269ifdef VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86
270 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs.sh)
271 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs.xml)
272 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs-sol10.xml)
273else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64
274 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs.sh)
275 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs.xml)
276 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs-sol10.xml)
277endif
278
279# OS specific files - Windows
280ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
281 VBOX_VALIDATIONKIT_FILESPEC += \
282 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntSetFreq.exe \
283 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntTimeSources.exe \
284 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntDisplay.exe
285 # Disabled for now; does not work without WinMM.dll export verification files.
286 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
287 # VBOX_VALIDATIONKIT_FILESPEC += \
288 # $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntPlayToneWaveX.exe
289 #endif
290endif
291ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64
292 VBOX_VALIDATIONKIT_FILESPEC += \
293 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntSetFreq.exe \
294 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntTimeSources.exe \
295 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntDisplay.exe
296 # Disabled for now; does not work without WinMM.dll export verification files.
297 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
298 # VBOX_VALIDATIONKIT_FILESPEC += \
299 # $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntPlayToneWaveX.exe
300 #endif
301endif
302ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
303 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs.cmd)
304 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs.reg)
305 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs-nat.cmd)
306 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs-nat.reg)
307else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64
308 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs.cmd)
309 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs.reg)
310 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs-nat.cmd)
311 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs-nat.reg)
312endif
313
314#
315# If enabled, this includes specially built unit tests (statically linked, for guests) located
316# in the $(VBOX_PATH_VALIDATIONKIT)/../../testcase/ directory.
317#
318# This is useful if we want to run those on platforms where we don't have / support
319# any host support anymore (like Windows XP, for instance).
320#
321# Note that executing the tests require an additional component (tdUnitTest test driver)
322# which runs as part of the Validation Kit.
323#
324# See @bugref{10195}
325#
326ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
327 define def_vbox_validationkit_unittests
328 # IPRT unit tests.
329 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
330 $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $(VALKIT_UNITTESTS_WHITELIST_IPRT.$(os)), \
331 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
332 # Unit tests which utilize parts of the Guest Additions.
333 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
334 $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS) $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS.$(os)), \
335 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
336 endef
337
338 TMP_SUFF_EXE = .exe
339 $(foreach os, win,$(foreach arch, x86 amd64, \
340 $(eval $(def_vbox_validationkit_unittests)) \
341 ))
342 TMP_SUFF_EXE =
343 $(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64 arm64, \
344 $(eval $(def_vbox_validationkit_unittests)) \
345 ))
346
347endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
348
349#
350# Build the Validation Kit guest ISO response file for RTIsoMaker.
351#
352# We need this response file because passing all those arguments to RTIsoMaker
353# will blow up the maximum command line length on some OSes.
354#
355$(VBOX_VALIDATIONKIT_ISO_RSP): | $$(dir $$@)
356 $(call MSG_L1,Creating Validation Kit guest ISO response file $@ )
357 kmk_builtin_append -nt "$@" \
358 '--iso-level=3' \
359 '--rock-ridge' \
360 '--joliet' \
361 '--rational-attribs' \
362 '--random-order-verification=2048' \
363 $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC) \
364 ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
365 $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS) \
366 ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
367 $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC)) \
368 ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
369 $(subst =, $(SP), $(spec)), \
370 $(subst /$(INST_VALIDATIONKIT), ,$(spec))))) \
371 $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS)) \
372 ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
373 $(subst =, $(SP), $(spec)), \
374 $(subst $(INST_VALIDATIONKIT), ,$(spec))))) \
375 '--volume-id="VBOXVALK_$(VBOX_SVN_REV)_$(VBOX_VERSION_STRING_RAW)"' \
376 '--name-setup=joliet' \
377 '--volume-id="VBoxValK $(VBOX_SVN_REV)"'
378
379#
380# Build the Validation Kit guest ISO.
381#
382$(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso: \
383 $(filter-out %=deleteme=, $(subst =,=deleteme= , $(VBOX_VALIDATIONKIT_FILESPEC))) \
384 $(VBOX_SVN_REV_KMK) \
385 $(VBOX_PATH_VALIDATIONKIT_SRC)/Makefile.kmk \
386 $(VBOX_VALIDATIONKIT_ISO_RSP) \
387 | $(if-expr defined(VBOX_USE_RTISOMAKER),$(VBOX_RTISOMAKER),)
388 $(call MSG_TOOL,RTIsoMaker,,$@)
389 $(QUIET)$(MKDIR) -p $(@D)
390ifneq ($(KBUILD_TARGET),os2)
391 $(QUIET)$(ECHO) VBOX_VALIDATIONKIT_FILESPEC $(VBOX_VALIDATIONKIT_FILESPEC)
392endif
393ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
394 $(foreach os, darwin linux solaris win,$(foreach arch, x86 amd64 arm64, \
395 $(call MSG_L1, VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch): $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))) \
396 ))
397 $(call MSG_L1, VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS))
398endif
399 $(VBOX_RTISOMAKER) \
400 @$(VBOX_VALIDATIONKIT_ISO_RSP) \
401 --output $@
402
403
404
405# Alias for creating the iso.
406.PHONY: validationkit-iso
407validationkit-iso: $(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso
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