VirtualBox

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

Last change on this file since 100298 was 99040, checked in by vboxsync, 21 months ago

*.kmk: Applied scm with new indenting of multiline variable/function expansions in variable assignments. bugref:10348

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