VirtualBox

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

Last change on this file since 98412 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.7 KB
Line 
1# $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z 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) # 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 \
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 \
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, \
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))/exceptionsR3$(TMP_SUFF_EXE) \
195 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/cpu-alloc-all-mem$(TMP_SUFF_EXE) \
196 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/cpu-numa$(TMP_SUFF_EXE) \
197 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/FsPerf$(TMP_SUFF_EXE) \
198 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/IoPerf$(TMP_SUFF_EXE) \
199 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/NetPerf$(TMP_SUFF_EXE) \
200 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/LoadGenerator$(TMP_SUFF_EXE) \
201 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/SerialTest$(TMP_SUFF_EXE) \
202 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/TestExecService$(TMP_SUFF_EXE) \
203 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_rm$(TMP_SUFF_EXE) \
204 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_shutdown$(TMP_SUFF_EXE) \
205 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_tar$(TMP_SUFF_EXE) \
206 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/xmmsaving$(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), os2) ## 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 endif
220endef
221
222TMP_SUFF_EXE=.exe
223$(foreach os, os2 win,$(foreach arch, x86 amd64, \
224 $(eval $(def_vbox_validationkit_common_files)) \
225))
226TMP_SUFF_EXE=
227$(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64, \
228 $(eval $(def_vbox_validationkit_common_files)) \
229))
230
231# OS specific files - Linux
232ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86
233 VBOX_VALIDATIONKIT_FILESPEC += \
234 $(VBOX_PATH_VALIDATIONKIT.linux.x86)/UsbTest
235endif
236ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64
237 VBOX_VALIDATIONKIT_FILESPEC += \
238 $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/UsbTest
239endif
240ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86
241 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs)
242 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs-nat)
243 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs.service)
244
245else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64
246 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs)
247 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs-nat)
248 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs.service)
249endif
250
251# OS specific files - OS/2
252ifdef VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86
253 VBOX_VALIDATIONKIT_FILESPEC += \
254 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc06.dll \
255 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc061.dll \
256 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc062.dll \
257 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc063.dll \
258 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc064.dll \
259 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc065.dll \
260 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc066.dll
261endif
262
263# OS specific files - Solaris
264ifdef VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86
265 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs.sh)
266 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs.xml)
267 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs-sol10.xml)
268else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64
269 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs.sh)
270 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs.xml)
271 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs-sol10.xml)
272endif
273
274# OS specific files - Windows
275ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
276 VBOX_VALIDATIONKIT_FILESPEC += \
277 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntSetFreq.exe \
278 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntTimeSources.exe
279 # Disabled for now; does not work without WinMM.dll export verification files.
280 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
281 # VBOX_VALIDATIONKIT_FILESPEC += \
282 # $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntPlayToneWaveX.exe
283 #endif
284endif
285ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64
286 VBOX_VALIDATIONKIT_FILESPEC += \
287 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntSetFreq.exe \
288 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntTimeSources.exe
289 # Disabled for now; does not work without WinMM.dll export verification files.
290 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
291 # VBOX_VALIDATIONKIT_FILESPEC += \
292 # $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntPlayToneWaveX.exe
293 #endif
294endif
295ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
296 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs.cmd)
297 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs.reg)
298 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs-nat.cmd)
299 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs-nat.reg)
300else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64
301 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs.cmd)
302 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs.reg)
303 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs-nat.cmd)
304 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs-nat.reg)
305endif
306
307#
308# If enabled, this includes specially built unit tests (statically linked, for guests) located
309# in the $(VBOX_PATH_VALIDATIONKIT)/../../testcase/ directory.
310#
311# This is useful if we want to run those on platforms where we don't have / support
312# any host support anymore (like Windows XP, for instance).
313#
314# Note that executing the tests require an additional component (tdUnitTest test driver)
315# which runs as part of the Validation Kit.
316#
317# See @bugref{10195}
318#
319ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
320 define def_vbox_validationkit_unittests
321 # IPRT unit tests.
322 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
323 $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $(VALKIT_UNITTESTS_WHITELIST_IPRT.$(os)), \
324 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
325 # Unit tests which utilize parts of the Guest Additions.
326 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
327 $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS) $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS.$(os)), \
328 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
329 endef
330
331 TMP_SUFF_EXE=.exe
332 $(foreach os, win,$(foreach arch, x86 amd64, \
333 $(eval $(def_vbox_validationkit_unittests)) \
334 ))
335 TMP_SUFF_EXE=
336 $(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64, \
337 $(eval $(def_vbox_validationkit_unittests)) \
338 ))
339
340endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
341
342#
343# Build the Validation Kit guest ISO response file for RTIsoMaker.
344#
345# We need this response file because passing all those arguments to RTIsoMaker
346# will blow up the maximum command line length on some OSes.
347#
348$(VBOX_VALIDATIONKIT_ISO_RSP): | $$(dir $$@)
349 $(call MSG_L1,Creating Validation Kit guest ISO response file $@ )
350 kmk_builtin_append -nt "$@" \
351 '--iso-level=3' \
352 '--rock-ridge' \
353 '--joliet' \
354 '--rational-attribs' \
355 '--random-order-verification=2048' \
356 $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC) \
357 ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
358 $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS) \
359 ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
360 $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC)) \
361 ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
362 $(subst =, $(SP), $(spec)), \
363 $(subst /$(INST_VALIDATIONKIT), ,$(spec))))) \
364 $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS)) \
365 ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
366 $(subst =, $(SP), $(spec)), \
367 $(subst $(INST_VALIDATIONKIT), ,$(spec))))) \
368 '--volume-id="VBOXVALK_$(VBOX_SVN_REV)_$(VBOX_VERSION_STRING_RAW)"' \
369 '--name-setup=joliet' \
370 '--volume-id="VBoxValK $(VBOX_SVN_REV)"'
371
372#
373# Build the Validation Kit guest ISO.
374#
375$(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso: \
376 $(filter-out %=deleteme=, $(subst =,=deleteme= , $(VBOX_VALIDATIONKIT_FILESPEC))) \
377 $(VBOX_SVN_REV_KMK) \
378 $(VBOX_PATH_VALIDATIONKIT_SRC)/Makefile.kmk \
379 $(VBOX_VALIDATIONKIT_ISO_RSP) \
380 | $(if-expr defined(VBOX_USE_RTISOMAKER),$(VBOX_RTISOMAKER),)
381 $(call MSG_TOOL,RTIsoMaker,,$@)
382 $(QUIET)$(MKDIR) -p $(@D)
383ifneq ($(KBUILD_TARGET),os2)
384 $(QUIET)$(ECHO) VBOX_VALIDATIONKIT_FILESPEC $(VBOX_VALIDATIONKIT_FILESPEC)
385endif
386ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
387 $(foreach os, darwin linux solaris win,$(foreach arch, x86 amd64, \
388 $(call MSG_L1, VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch): $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))) \
389 ))
390 $(call MSG_L1, VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS))
391endif
392 $(VBOX_RTISOMAKER) \
393 @$(VBOX_VALIDATIONKIT_ISO_RSP) \
394 --output $@
395
396
397
398# Alias for creating the iso.
399.PHONY: validationkit-iso
400validationkit-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