VirtualBox

source: vbox/trunk/Makefile.kmk@ 49439

Last change on this file since 49439 was 49155, checked in by vboxsync, 11 years ago

extpacks build fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 68.8 KB
Line 
1# $Id: Makefile.kmk 49155 2013-10-17 08:20:45Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2013 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
18SUB_DEPTH = .
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Sub-makefiles / Sub-directories.
23#
24if defined(VBOX_WITH_DOCS) && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK))
25 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
26endif
27include $(PATH_SUB_CURRENT)/src/Makefile.kmk
28
29#
30# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
31# from the build server), and it's not really worth the effort of dragging in
32#q this tool only if absolutely needed.
33#
34## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
35include $(KBUILD_PATH)/tools/ZIP.kmk
36ifndef TOOL_ZIP_PACK
37 TOOL_ZIP_PACK = zip
38endif
39
40
41## @todo split up this file!
42
43
44#
45# Clean up global stuff that Config.kmk generates.
46#
47OTHER_CLEAN += \
48 $(VBOX_PACKAGE_HEADER) \
49 $(VBOX_LICENSE_VER_KMK) \
50 $(VBOX_VERSION_MK) \
51 $(VBOX_VERSION_HEADER) \
52 $(VBOX_VERSION_STAMP) \
53 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
54 $(VBOX_SVN_REV_KMK).ts \
55 $(VBOX_SVN_REV_KMK) \
56 $(PATH_OUT)/DynamicConfig.kmk
57
58
59if !defined(VBOX_ONLY_ADDITIONS) \
60 && !defined(VBOX_ONLY_DOCS) \
61 && !defined(VBOX_ONLY_EXTPACKS) \
62 && !defined(VBOX_ONLY_TESTSUITE) # -> line 426b ;-)
63
64 if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
65 #
66 # Install the license (and misc non-executable stuff).
67 #
68 INSTALLS += InstallLicenseFiles
69 InstallLicenseFiles_INST = $(INST_BIN)
70 InstallLicenseFiles_MODE = 0644
71 InstallLicenseFiles_SOURCES =
72 InstallLicenseFiles_SOURCES += \
73 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
74 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
75 endif
76
77
78#
79# Install external binaries (mostly redistributable parts of tools we use).
80#
81# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
82# and .linux property suffixes.
83#
84INSTALLS += InstallExternalLibs
85
86InstallExternalLibs_INST = $(INST_BIN)
87
88# The SDL DLLs
89if1of ($(KBUILD_TARGET), win os2)
90 ifdef VBOX_WITH_VBOXSDL
91 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
92 InstallExternalLibs_SOURCES += \
93 $(DLL_SDK_LIBSDL_SDL)
94 ifdef VBOX_WITH_SECURELABEL
95 InstallExternalLibs_SOURCES += \
96 $(DLL_SDK_LIBSDL_SDLTTF)
97 endif
98 ifeq ($(KBUILD_TARGET),os2)
99 InstallExternalLibs_SOURCES += \
100 $(DLL_SDK_LIBSDL_FSLIB)
101 endif
102 endif
103endif
104
105
106# The compiler runtime DLLs.
107ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
108 VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
109 VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/Microsoft.VC100.CRT
110 VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/Microsoft.VC100.DebugCRT
111 InstallExternalLibs_SOURCES += \
112 $(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
113 $(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
114 $(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
115 $(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
116 ifeq ($(VBOX_VCC_CRT_TYPE),d)
117 $(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
118 $(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
119 $(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
120 $(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
121 endif
122endif
123
124#
125# Install our Qt DLLs / Shared Objects / Frameworks.
126# Note: The installer fixes the darwin .dylibs when hardening is enabled.
127#
128ifeq ($(KBUILD_TARGET),darwin)
129 INSTALLS += qt4-bin
130 qt4-bin_MODE = 755
131 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
132 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \
133 ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod))
134 ifdef VBOX_WITH_COCOA_QT
135 qt4-bin_SOURCES += \
136 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
137 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
138 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
139 endif
140 ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
141 qt4-bin_SOURCES += \
142 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
143 endif
144 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
145 ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))
146 ifdef VBOX_WITH_COCOA_QT
147 qt4-bin_SYMLINKS += \
148 Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
149 endif
150else
151 if defined(VBOX_WITH_QT4_SUN) || defined(VBOX_WITH_QT4_PAYLOAD)
152 ifeq ($(KBUILD_TARGET),win)
153 INSTALLS += qt4-bin
154 qt4-bin_MODE = 755
155 qt4-bin_INST = $(INST_BIN)
156 qt4-bin_SOURCES = \
157 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL)) \
158 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL)=>accessible/qtaccessiblewidgets4$(SUFF_DLL)
159 else
160 INSTALLS += qt4-bin
161 qt4-bin_MODE = 755
162 qt4-bin_INST = $(INST_BIN)
163 qt4-bin_SOURCES = \
164 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \
165 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
166 endif
167 endif # VBOX_WITH_QT4_SUN
168endif
169
170
171#
172# For building the combined package, just get the additions .ISO
173# once for amd64 to prevent version inconsistences. In all other
174# cases we get the .ISO per target architecture.
175#
176ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
177 ifdef VBOX_WITH_COMBINED_PACKAGE
178 ifeq ($(KBUILD_TARGET_ARCH),amd64)
179 INSTALLS += buildserver-additions
180 endif
181 else
182 INSTALLS += buildserver-additions
183 endif
184
185#
186# Install additions iso from the build server.
187# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
188# been added to kBuild.
189#
190buildserver-additions_INST = $(INST_ADDITIONS_ISO)
191buildserver-additions_MODE = 0644
192buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
193buildserver-additions_CLEANS = \
194 $(buildserver-additions_0_OUTDIR)/unpacked.ts \
195 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
196 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
197 $(PATH_TARGET)/VBoxGuestAdditions.iso
198
199$$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
200 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
201 $(call MSG_L1,Unpacking additions archive)
202 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
203 $(APPEND) -t $@ "done"
204
205$$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
206 $(RM) -f $@ [email protected]
207 ifneq ($(KBUILD_HOST),win)
208 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename [email protected]
209 else
210 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
211 endif
212 $(CP) -f [email protected] $@
213 $(RM) -f [email protected]
214
215 ifeq ($(KBUILD_HOST),win)
216buildserver-additions-affinity-hack:
217 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp
218 endif
219endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
220
221
222#
223# Install documentation files (at the moment the .chm) from the build server.
224#
225ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
226## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
227INSTALLS += buildserver-docs
228buildserver-docs_INST = $(INST_BIN)
229buildserver-docs_MODE = 0644
230buildserver-docs_SOURCES = \
231 $(addprefix $(PATH_TARGET)/, \
232 VirtualBox.chm UserManual.pdf \
233 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
234buildserver-docs_CLEANS = \
235 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
236 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
237 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
238 $(addprefix $(PATH_TARGET)/, \
239 VirtualBox.chm UserManual.pdf \
240 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
241
242$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
243$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
244 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
245 $(call MSG_L1,Unpacking documentation)
246 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
247 $(APPEND) -t $@ "done"
248
249$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
250 $(RM) -f $@ [email protected]
251 ifneq ($(KBUILD_HOST),win)
252 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename [email protected]
253 else
254 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
255 endif
256 $(CP) -f [email protected] $@
257 $(RM) -f [email protected]
258## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
259
260 ifeq ($(KBUILD_HOST),win)
261buildserver-documentation-affinity-hack:
262 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
263 endif
264endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
265
266
267 ifdef VBOX_WITH_EFI
268 #
269 # Install EFI firmware image
270 #
271 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
272 #
273 # Either from the build server.
274 #
275 INSTALLS += buildserver-efifw
276 buildserver-efifw_INST = $(INST_BIN)
277 buildserver-efifw_MODE = 0644
278 buildserver-efifw_SOURCES = \
279 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
280 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
281 buildserver-efifw_CLEANS = \
282 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
283 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
284 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
285 $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
286 $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd \
287 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
288 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
289
290 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
291 +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
292 $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd: \
293 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
294 $(call MSG_L1,Unpacking EFI firmware)
295 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
296 $(TEST_EXT) -f "$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd" -- $(MV_EXT) -f -- "$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd" "$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd"
297 $(TEST_EXT) -f "$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd" -- $(MV_EXT) -f -- "$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd" "$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd"
298 $(APPEND) -t $@ "done"
299
300 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
301 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
302 $(RM) -f $@ [email protected]
303 ifneq ($(KBUILD_HOST),win)
304 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename [email protected]
305 else
306 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
307 endif
308 $(CP) -f [email protected] $@
309 $(RM) -f [email protected]
310## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
311
312 ifeq ($(KBUILD_HOST),win)
313 buildserver-efifw-affinity-hack:
314 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
315 endif
316 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
317 #
318 # Or from the local copy
319 #
320 INSTALLS += local-efifw
321 local-efifw_INST = $(INST_BIN)
322 local-efifw_MODE = 0644
323 local-efifw_SOURCES = \
324 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
325 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
326 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
327 endif # VBOX_WITH_EFI
328
329
330ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
331#
332# Get the extension pack from from the build server to facility the automatic
333# testing (everything in one tarball (VBoxAll-*)).
334#
335# Note! Using the plural here as we might be downloading more packages eventually.
336#
337INSTALLS += buildserver-extpacks
338buildserver-extpacks_INST = $(INST_DIST)
339buildserver-extpacks_MODE = 0644
340buildserver-extpacks_SOURCES = \
341 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
342buildserver-extpacks_CLEANS = \
343 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
344 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
345
346$$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
347 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
348 $(RM) -f -- "[email protected]" "$@"
349 $(SHELL) $(PATH_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "[email protected]" --vbox-version "$(VBOX_VERSION_STRING)"
350 $(MV) -f -- "[email protected]" "$@"
351
352endif
353
354
355#
356# Install staged binaries on platforms where we can't cross
357# compile things.
358#
359ifn1of ($(KBUILD_TARGET), linux win)
360 VBOX_PATH_STAGED ?= .
361
362 # Additions.
363 ifndef VBOX_WITH_LINUX_ADDITIONS
364 ifndef VBOX_WITH_WIN32_ADDITIONS
365 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
366 INSTALLS += staged-additions
367 staged-additions_INST = $(INST_ADDITIONS_ISO)
368 staged-additions_MODE = 0644
369 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
370 endif
371 endif
372 endif
373
374 # guesttool.exe
375 ifndef VBOX_WITH_WIN32_ADDITIONS
376 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
377 INSTALLS += staged-guesttool
378 staged-guesttool_INST = $(INST_BIN)
379 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
380 endif
381 endif
382
383endif
384
385endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
386
387
388ifdef VBOX_ONLY_DOCS
389# It may sound a bit odd, but for preparing the documentation package the
390# doxygen documentation isn't needed and increases the build time a lot.
391docs:
392else # !VBOX_ONLY_DOCS
393#
394# Generate documentation.
395# (This should be converted into a separate pass or merged with an existing one later.)
396#
397 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
398docs: docs.Core
399 endif
400endif # !VBOX_ONLY_DOCS
401
402docs.Core docs.core: $(PATH_TARGET)/docs.Core
403
404
405
406#
407# The core (VMM+REM+Devices+Main) documentation.
408#
409# This includes so much because we wish to have the complete CFGM
410# and GCFGM lists.
411#
412OTHER_CLEAN += \
413 $(PATH_TARGET)/Doxyfile.Core \
414 $(PATH_TARGET)/Doxyfile.Core.dep
415
416VBOX_CORE_DOXYFILE_INPUT_DIRS = \
417 include/iprt \
418 include/iprt/cpp \
419 include/iprt/linux \
420 include/VBox \
421 include/VBox/vmm \
422 include/VBox/com \
423 include/VBox/ExtPack \
424 include/VBox/HostServices \
425 include/VBox/GuestHost \
426 include/VBox/HGSMI \
427 src/VBox/VMM \
428 src/VBox/VMM/VMMR0 \
429 src/VBox/VMM/VMMRC \
430 src/VBox/VMM/VMMR3 \
431 src/VBox/VMM/VMMAll \
432 src/VBox/VMM/VMMSwitcher \
433 src/VBox/Debugger \
434 src/VBox/Devices \
435 src/VBox/Devices/Audio \
436 src/VBox/Devices/Bus \
437 src/VBox/Devices/Graphics \
438 src/VBox/Devices/Graphics/BIOS \
439 src/VBox/Devices/Input \
440 src/VBox/Devices/Networking \
441 src/VBox/Devices/PC \
442 src/VBox/Devices/PC/BIOS \
443 src/VBox/Devices/Parallel \
444 src/VBox/Devices/Serial \
445 src/VBox/Devices/Storage \
446 src/VBox/Devices/USB \
447 src/VBox/Devices/USB/darwin \
448 src/VBox/Devices/USB/linux \
449 src/VBox/Devices/USB/os2 \
450 src/VBox/Devices/USB/solaris \
451 src/VBox/Devices/USB/vrdp \
452 src/VBox/Devices/USB/win32 \
453 src/VBox/Devices/VMMDev \
454 src/VBox/Main/include \
455 src/VBox/Main/include/hgcm \
456 src/VBox/Main \
457 src/VBox/Main/glue \
458 src/VBox/Main/webservice \
459 src/VBox/Main/xml \
460 src/VBox/Main/src-all \
461 src/VBox/Main/src-all/win \
462 src/VBox/Main/src-client \
463 src/VBox/Main/src-client/win \
464 src/VBox/Main/src-client/xpcom \
465 src/VBox/Main/src-server \
466 src/VBox/Main/src-server/darwin \
467 src/VBox/Main/src-server/linux \
468 src/VBox/Main/src-server/os2 \
469 src/VBox/Main/src-server/solaris \
470 src/VBox/Main/src-server/win \
471 src/VBox/Main/src-server/xpcom \
472 src/VBox/HostServices \
473 src/VBox/HostServices/DragAndDrop \
474 src/VBox/HostServices/GuestControl \
475 src/VBox/HostServices/GuestProperties \
476 src/VBox/HostServices/SharedClipboard \
477 src/VBox/HostServices/SharedFolders \
478 src/VBox/HostServices/SharedOpenGL \
479 src/VBox/HostServices/SharedOpenGL/crserver \
480 src/VBox/HostServices/SharedOpenGL/crserverlib \
481 src/VBox/HostServices/SharedOpenGL/render \
482 src/VBox/HostServices/SharedOpenGL/unpacker \
483 src/VBox/HostServices/auth \
484 src/VBox/HostServices/auth/directoryservice \
485 src/VBox/HostServices/auth/pam \
486 src/VBox/HostServices/auth/simple \
487 src/VBox/HostServices/auth/winlogon \
488 src/VBox/HostDrivers/Support \
489 src/VBox/HostDrivers/Support/darwin \
490 src/VBox/HostDrivers/Support/freebsd \
491 src/VBox/HostDrivers/Support/linux \
492 src/VBox/HostDrivers/Support/os2 \
493 src/VBox/HostDrivers/Support/solaris \
494 src/VBox/HostDrivers/Support/win \
495 src/VBox/HostDrivers/VBoxNetFlt \
496 src/VBox/HostDrivers/VBoxNetFlt/darwin \
497 src/VBox/HostDrivers/VBoxNetFlt/linux \
498 src/VBox/HostDrivers/VBoxNetFlt/solaris \
499 src/VBox/HostDrivers/VBoxNetFlt/win \
500 src/VBox/HostDrivers/VBoxNetNat \
501 src/VBox/HostDrivers/VBoxNetNat/darwin \
502 src/VBox/HostDrivers/VBoxNetNat/linux \
503 src/VBox/HostDrivers/VBoxNetNat/solaris \
504 src/VBox/HostDrivers/VBoxNetNat/win \
505 src/VBox/HostDrivers/VBoxNetAdp \
506 src/VBox/HostDrivers/VBoxNetAdp/darwin \
507 src/VBox/HostDrivers/VBoxNetAdp/linux \
508 src/VBox/HostDrivers/VBoxNetAdp/solaris \
509 src/VBox/HostDrivers/VBoxNetAdp/win \
510 src/VBox/HostDrivers/VBoxPci \
511 src/VBox/HostDrivers/VBoxPci/darwin \
512 src/VBox/HostDrivers/VBoxPci/linux \
513 src/VBox/HostDrivers/VBoxPci/solaris \
514 src/VBox/HostDrivers/VBoxPci/win \
515 src/VBox/HostDrivers/VBoxUSB \
516 src/VBox/HostDrivers/VBoxUSB/darwin \
517 src/VBox/HostDrivers/VBoxUSB/os2 \
518 src/VBox/HostDrivers/VBoxUSB/solaris \
519 src/VBox/HostDrivers/VBoxUSB/win \
520 src/VBox/HostDrivers/VBoxUSB/win/Device \
521 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
522 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
523 src/VBox/HostDrivers/VBoxUSB/win/Filter \
524 src/VBox/HostDrivers/VBoxUSB/win/Install \
525 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
526 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
527 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
528 src/VBox/HostDrivers/VBoxUSB/win/usbd \
529 src/VBox/Additions \
530 src/VBox/Additions/WINNT \
531 src/VBox/Additions/WINNT/Graphics \
532 src/VBox/Additions/WINNT/Graphics/Video \
533 src/VBox/Additions/WINNT/Graphics/Video/common \
534 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
535 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
536 src/VBox/Additions/WINNT/Graphics/Video/disp \
537 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
538 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
539 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
540 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
541 src/VBox/Additions/WINNT/Graphics/Video/mp \
542 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
543 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
544 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
545 src/VBox/Additions/WINNT/Graphics/Wine \
546 src/VBox/Additions/WINNT/Graphics/Wine/d3d8 \
547 src/VBox/Additions/WINNT/Graphics/Wine/d3d9 \
548 src/VBox/Additions/WINNT/Graphics/Wine/libWine \
549 src/VBox/Additions/WINNT/Graphics/Wine/switcher \
550 src/VBox/Additions/WINNT/Graphics/Wine/vbox \
551 src/VBox/Additions/WINNT/Graphics/Wine/vbox/libWineStub \
552 src/VBox/Additions/WINNT/Graphics/Wine/vbox/libWineStub/include \
553 src/VBox/Additions/WINNT/Graphics/Wine/vbox/libWineStub/include/backup \
554 src/VBox/Additions/WINNT/Graphics/Wine/vbox/libWineStub/include/wine \
555 src/VBox/Additions/WINNT/Graphics/Wine/wined3d \
556 src/VBox/Additions/WINNT/Installer \
557 src/VBox/Additions/WINNT/Installer/ISO \
558 src/VBox/Additions/WINNT/Installer/InstallHelper \
559 src/VBox/Additions/WINNT/Installer/Languages \
560 src/VBox/Additions/WINNT/Installer/Loader \
561 src/VBox/Additions/WINNT/Mouse \
562 src/VBox/Additions/WINNT/Mouse/NT5 \
563 src/VBox/Additions/WINNT/Mouse/common \
564 src/VBox/Additions/WINNT/SharedFolders \
565 src/VBox/Additions/WINNT/SharedFolders/redirector \
566 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
567 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
568 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
569 src/VBox/Additions/WINNT/VBoxCredProv \
570 src/VBox/Additions/WINNT/VBoxGINA \
571 src/VBox/Additions/WINNT/VBoxHook \
572 src/VBox/Additions/WINNT/VBoxTray \
573 src/VBox/Additions/WINNT/VBoxUSB \
574 src/VBox/Additions/WINNT/i8042prt \
575 src/VBox/Additions/WINNT/i8042prt/i386 \
576 src/VBox/Additions/WINNT/i8042prt/include \
577 src/VBox/Additions/WINNT/include \
578 src/VBox/Additions/common \
579 src/VBox/Additions/common/VBoxControl \
580 src/VBox/Additions/common/VBoxGuest \
581 src/VBox/Additions/common/VBoxGuest/freebsd \
582 src/VBox/Additions/common/VBoxGuest/linux \
583 src/VBox/Additions/common/VBoxGuest/win \
584 src/VBox/Additions/common/VBoxGuestLib \
585 src/VBox/Additions/common/VBoxService \
586 src/VBox/Additions/common/VBoxVideo \
587 src/VBox/Additions/common/crOpenGL \
588 src/VBox/Additions/common/crOpenGL/array \
589 src/VBox/Additions/common/crOpenGL/feedback \
590 src/VBox/Additions/common/crOpenGL/pack \
591 src/VBox/Additions/common/crOpenGL/passthrough \
592 src/VBox/Additions/common/pam \
593 src/VBox/Additions/darwin \
594 src/VBox/Additions/freebsd \
595 src/VBox/Additions/freebsd/Installer \
596 src/VBox/Additions/freebsd/drm \
597 src/VBox/Additions/freebsd/vboxvfs \
598 src/VBox/Additions/linux \
599 src/VBox/Additions/linux/drm \
600 src/VBox/Additions/linux/installer \
601 src/VBox/Additions/linux/selinux-fedora \
602 src/VBox/Additions/linux/sharedfolders \
603 src/VBox/Additions/os2 \
604 src/VBox/Additions/os2/VBoxGradd \
605 src/VBox/Additions/os2/VBoxGradd/graddlib \
606 src/VBox/Additions/os2/VBoxGrext \
607 src/VBox/Additions/os2/VBoxMouse \
608 src/VBox/Additions/os2/VBoxSF \
609 src/VBox/Additions/solaris \
610 src/VBox/Additions/solaris/DRM \
611 src/VBox/Additions/solaris/DRM/include \
612 src/VBox/Additions/solaris/Installer \
613 src/VBox/Additions/solaris/SharedFolders \
614 src/VBox/Additions/solaris/SharedFolders/solaris10 \
615 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
616 src/VBox/Additions/solaris/Virtio \
617 src/VBox/Additions/x11 \
618 src/VBox/Additions/x11/Installer \
619 src/VBox/Additions/x11/VBoxClient \
620 src/VBox/Additions/x11/vboxmouse \
621 src/VBox/Additions/x11/vboxmouse/xorg70 \
622 src/VBox/Additions/x11/vboxmouse/xorg71 \
623 src/VBox/Additions/x11/vboxvideo \
624 src/VBox/NetworkServices \
625 src/VBox/NetworkServices/DHCP \
626 src/VBox/NetworkServices/NAT \
627 src/VBox/NetworkServices/NetLib \
628 src/VBox/Storage
629
630# These must come first in order to make things look nice.
631VBOX_CORE_DOXYFILE_INPUT_FIRST =\
632 $(PATH_ROOT)/doc/VBox-doc.c \
633 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
634 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
635 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
636 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
637 $(PATH_ROOT)/include/VBox/cdefs.h \
638 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
639 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
640 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
641 $(PATH_ROOT)/include/VBox/vmm/mm.h \
642 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
643 $(PATH_ROOT)/include/VBox/vmm/selm.h \
644 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
645 $(PATH_ROOT)/include/VBox/vmm/patm.h \
646 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
647 $(PATH_ROOT)/include/VBox/vmm/stam.h \
648 $(PATH_ROOT)/include/VBox/vmm/em.h \
649 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
650 $(PATH_ROOT)/include/VBox/vmm/rem.h \
651 $(PATH_ROOT)/include/VBox/vmm/iom.h \
652 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
653 $(PATH_ROOT)/include/VBox/vmm/tm.h \
654 $(PATH_ROOT)/include/VBox/vmm/csam.h \
655 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
656 $(PATH_ROOT)/include/VBox/vmm/hm.h \
657 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
658 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
659 \
660 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
661 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
662 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
663 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
664 $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
665 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
666 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
667 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
668 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
669 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
670 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
671 $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
672 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
673 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
674 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
675 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
676 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
677 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
678 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
679 \
680 $(PATH_ROOT)/include/VBox/vmm/vm.h \
681 \
682 $(PATH_ROOT)/include/VBox/sup.h \
683 $(PATH_ROOT)/include/VBox/vd.h \
684 $(PATH_ROOT)/include/VBox/types.h \
685 $(PATH_ROOT)/include/VBox/err.h \
686 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
687 $(PATH_ROOT)/include/VBox/dbggui.h \
688 $(PATH_ROOT)/include/VBox/dis.h \
689 $(PATH_ROOT)/include/VBox/disopcode.h \
690 $(PATH_ROOT)/include/VBox/intnet.h \
691 $(PATH_ROOT)/include/VBox/settings.h \
692 $(PATH_ROOT)/include/VBox/pci.h \
693 $(PATH_ROOT)/include/VBox/scsi.h \
694 $(PATH_ROOT)/include/VBox/shflsvc.h \
695 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
696 $(PATH_ROOT)/include/VBox/usb.h \
697 $(PATH_ROOT)/include/VBox/vusb.h \
698 \
699 $(PATH_ROOT)/include/VBox/log.h \
700 $(PATH_ROOT)/include/VBox/param.h \
701 $(PATH_ROOT)/include/VBox/version.h
702
703VBOX_CORE_DOXYFILE_INPUT := \
704 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
705 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
706VBOX_CORE_DOXYFILE_INPUT := \
707 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
708 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
709
710# And some some additional stuff.
711VBOX_CORE_DOXYFILE_INPUT += \
712 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
713 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
714
715
716VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
717BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
718
719-include $(PATH_TARGET)/Doxyfile.Core.dep
720
721# Generate the Doxyfile
722$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
723 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
724 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
725 | $$(dir $$@)
726 $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
727 $(CP) -f Doxyfile.Core [email protected]
728 $(APPEND) [email protected]
729 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
730 $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
731 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
732 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
733 $(APPEND) [email protected]
734 $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
735 $(APPEND) [email protected]
736 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
737 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
738 $(APPEND) [email protected]
739 $(MV) -f [email protected] $@
740 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
741 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
742
743# Do the actual job.
744$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
745 $(RM) -f $(PATH_TARGET)/docs.Core
746 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
747 doxygen $(PATH_TARGET)/Doxyfile.Core
748 $(APPEND) $(PATH_TARGET)/docs.Core
749
750
751#
752# Alias for kmk_time. Used by both the additions and testsuite build setups.
753#
754VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
755
756#
757# Common rsync bits.
758#
759
760##
761# The basic rsync invocation for syncing the tree into a VM; the source and
762# target specs are missing.
763#
764# @param 1 os name.
765# @param 2 arch or *.
766#
767VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
768 --exclude=*.pyc \
769 --exclude=.svn/ \
770 --exclude=doc/Devices/ \
771 --exclude=doc/tg/ \
772 --exclude=doc/vp/ \
773 --exclude=tinderclient.log \
774 --exclude=tools/FetchDir/ \
775 --exclude=webtools/ \
776 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
777 --exclude=tools/$(os).x86/ \
778 --exclude=tools/$(os).amd64/ \
779 --exclude=out/$(os).amd64/ \
780 --exclude=out/$(os).x86/ \
781 ,$(select \
782 "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
783 "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
784 ))
785
786#
787# VM IP addresses.
788#
789VBOX_BLD_VM_LNX_X86_IP := 192.168.27.2
790VBOX_BLD_VM_LNX_AMD64_IP := 192.168.27.12
791VBOX_BLD_VM_LNX_NEW_X86_IP := 192.168.27.11
792VBOX_BLD_VM_OS2_IP := 192.168.27.3
793VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
794VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
795VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
796VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
797VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
798VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
799VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
800
801VBOX_WITH_OS2_ADD_BUILD=1
802
803#
804# For profiling the VM building steps.
805#
806if 0
807 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
808 VBOX_BLD_VM_MSG_END__ =
809else
810 VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Building $1.
811 VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
812endif
813
814#
815# Build the additions, all of them.
816#
817# This is currently tailored (hardcoded) for the additions
818# build box. Can make it pretty and configurable later.
819#
820# The fetching must be done in serial fashion, while the building
821# should be more flexible wrt to -jN.
822#
823additions-fetch:
824 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
825 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
826 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
827ifdef VBOX_WITH_OS2_ADD_BUILD
828 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
829endif
830 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
831 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
832 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
833 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
834
835
836## @todo Currently combined solaris additions building assumes that amd64 is
837# built first. The windows amd64 additions need some x86 files, so don't change
838# the order of the windows builds. TODO: Split building and packing for these two VMs.
839additions-build: \
840 additions-build-rsync-into-vms \
841 additions-build-win.x86 \
842 additions-build-win.amd64 \
843 additions-build-solaris.amd64 \
844 additions-build-solaris.x86 \
845 additions-build-os2.x86 \
846 additions-build-linux.x86.combined
847
848additions-build-rsync-into-vms: \
849 additions-build-solaris.rsync-into-vm \
850 additions-build-os2.rsync-into-vm
851 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
852#.NOTPARALLEL: additions-build-rsync-into-vms
853
854
855VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
856 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
857 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
858 VBOX_SVN_REV=$(VBOX_SVN_REV)
859
860VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
861 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
862 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
863 VBOX_SVN_REV=$(VBOX_SVN_REV)
864
865# Automatically determine the additions build subdir name. Used for figuring
866# out directory names inside the additions building VMs.
867VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
868
869# When building in parallel on a Windows host, make sure we finish the host
870# bit before kicking off any UNIX guest or we'll run into file sharing issues.
871ifeq ($(KBUILD_TARGET),win)
872VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
873else
874VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
875endif
876
877# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
878additions-build-win.amd64: additions-build-win.x86
879ifeq ($(KBUILD_TARGET),win)
880 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
881 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
882else
883 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions)
884 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing "
885 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions)
886endif
887
888additions-build-win.x86:
889ifeq ($(KBUILD_TARGET),win)
890 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
891 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
892else
893 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions)
894 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
895 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions)
896endif
897
898# ASSUMES the 64-bit edition are built first. This also serializes VM access.
899ifeq ($(KBUILD_TARGET),solaris)
900additions-build-solaris.amd64:
901 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
902 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
903
904additions-build-solaris.x86: additions-build-solaris.amd64
905 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
906 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
907
908additions-build-solaris.rsync-into-vm:
909else
910additions-build-solaris.rsync-into-vm:
911 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
912 '--exclude=src/VBox/Additions/WINNT/**' \
913 '--exclude=src/VBox/Frontends/**' \
914 '--exclude=src/VBox/VMM/**' \
915 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
916
917additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
918 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions)
919 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing"
920 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions)
921 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions)
922 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
923 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions)
924
925additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
926 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
927 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
928
929#.NOTPARALLEL: additions-build-solaris.rsync-into-vm
930.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
931
932additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
933additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
934endif
935
936ifdef VBOX_WITH_OS2_ADD_BUILD
937 ifeq ($(KBUILD_TARGET),os2)
938additions-build-os2.x86:
939 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
940 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
941
942additions-build-os2.rsync-into-vm:
943 else
944additions-build-os2.rsync-into-vm:
945 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
946 '--exclude=src/VBox/Additions/x11/**' \
947 '--exclude=src/VBox/Additions/WINNT/**' \
948 '--exclude=src/VBox/Frontends/**' \
949 '--exclude=src/VBox/VMM/**' \
950 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
951
952additions-build-os2.build-it: additions-build-os2.rsync-into-vm
953 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions)
954 $(VBOX_KMK_TIME) rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
955 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions)
956
957additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
958 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
959
960#.NOTPARALLEL: additions-build-os2.rsync-into-vm
961.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
962
963additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
964 endif
965#
966else
967additions-build-os2.x86:
968# Dummy
969endif
970
971additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
972ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
973 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
974 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
975else
976 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
977 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
978 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_AMD64_IP) "echo $@ && dchroot -c ubuntu-11.10-amd64 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux2.amd64/$(KBUILD_TYPE) VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
979 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
980 endif
981 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions)
982 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_LNX_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING)"
983 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions)
984endif
985
986additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
987ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
988 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
989 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
990else
991 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
992 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
993 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_AMD64_IP) "echo $@ && dchroot -c ubuntu-11.10-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && BUILD_PLATFORM_ARCH=x86 tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux2.x86/$(KBUILD_TYPE) VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
994 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
995 endif
996 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions)
997 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_NEW_X86_IP) "echo $@ && dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING)\""'
998 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions)
999endif
1000
1001# Combined Linux Additions .run package. This depends on the archives
1002# created during packing by the architecture-specific builds.
1003additions-build-linux.x86.combined: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST) additions-build-linux.x86 additions-build-linux.amd64
1004ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1005 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1006 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1007else
1008 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions)
1009 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_NEW_X86_IP) "echo $@ && dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1\""'
1010 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions)
1011endif
1012
1013
1014additions-packing:
1015 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1016 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1017 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1018 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1019 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1020 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1021 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1022 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1023 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1024 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1025 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1026 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1027 -C src/VBox/Additions \
1028 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1029
1030.PHONY: \
1031 additions-build-win.x86 \
1032 additions-build-win.amd64 \
1033 additions-build-solaris.amd64 \
1034 additions-build-solaris.x86 \
1035 additions-build-os2.x86 \
1036 additions-build-linux.amd64 \
1037 additions-build-linux.x86 \
1038 additions-build-linux.x86.combined \
1039 additions-packing
1040
1041
1042#
1043# Build the extension packs, all of them.
1044#
1045# This is tailored (hardcoded) for the extension pack build box.
1046#
1047# The fetching must be done in serial fashion, while the building should be
1048# more flexible wrt to -jN.
1049#
1050extpacks-fetch:
1051 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1052 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1053 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1054# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1055# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1056 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1057 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1058# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1059 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1060 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1061 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1062
1063
1064extpacks-build: \
1065 extpacks-build-win.amd64 \
1066 extpacks-build-win.x86 \
1067 extpacks-build-solaris.amd64 \
1068 extpacks-build-os2.x86 \
1069 extpacks-build-linux.amd64 \
1070 extpacks-build-linux.x86 \
1071 extpacks-build-darwin.amd64 \
1072 extpacks-build-darwin.x86 \
1073 extpacks-build-freebsd.amd64 \
1074 extpacks-build-freebsd.x86
1075
1076VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1077 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1078 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1079 VBOX_SVN_REV=$(VBOX_SVN_REV)
1080
1081VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1082 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1083 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1084 VBOX_SVN_REV=$(VBOX_SVN_REV)
1085
1086# Automatically determine the extpack build subdir name. Used for figuring out
1087# directory names inside the extension pack building VMs.
1088VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1089
1090# When building in parallel on a Windows host, make sure we finish the host
1091# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1092ifeq ($(KBUILD_TARGET),win)
1093VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1094else
1095VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1096endif
1097
1098extpacks-build-win.amd64:
1099ifeq ($(KBUILD_TARGET),win)
1100 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1101else
1102 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1103 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1104 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1105endif
1106
1107extpacks-build-win.x86:
1108ifeq ($(KBUILD_TARGET),win)
1109 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1110else
1111 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1112 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1113 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1114endif
1115
1116ifeq ($(KBUILD_TARGET),solaris)
1117extpacks-build-solaris.amd64:
1118 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1119
1120else
1121# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1122extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1123 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1124
1125extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1126 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1127 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1128 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1129
1130extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1131 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1132
1133#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1134.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1135
1136extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1137endif
1138
1139extpacks-build-os2.x86:
1140#ifeq ($(KBUILD_TARGET),os2)
1141# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1142#else
1143# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_OS2_IP) " cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) "
1144#endif
1145
1146extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1147ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
1148 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1149else
1150 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1151 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_LNX_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1152 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1153endif
1154
1155extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1156ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1157 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1158else
1159 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1160 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_LNX_NEW_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1161 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1162endif
1163
1164extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1165#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1166# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1167#else
1168# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1169# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1170# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1171#endif
1172
1173extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1174#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1175# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1176#else
1177# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1178# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1179# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1180#endif
1181
1182extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1183ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1184 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1185else
1186 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1187 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1188 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1189 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1190 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1191endif
1192
1193extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1194ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1195 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1196else
1197 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 extension packs)
1198 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1199 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1200 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1201 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 extension packs)
1202endif
1203
1204
1205extpacks-packing:
1206 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1207 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1208 packing
1209# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1210
1211.PHONY: \
1212 extpacks-build-win.x86 \
1213 extpacks-build-win.amd64 \
1214 extpacks-build-solaris.amd64 \
1215 extpacks-build-os2.x86 \
1216 extpacks-build-linux.amd64 \
1217 extpacks-build-linux.x86 \
1218 extpacks-build-freebsd.amd64 \
1219 extpacks-build-freebsd.x86 \
1220 extpacks-build-darwin.amd64 \
1221 extpacks-build-darwin.x86 \
1222 extpacks-packing
1223
1224
1225#
1226# Build the test suite, all of it.
1227#
1228# This is currently tailored (hardcoded) for the additions build box just like
1229# the additions build above, which it in fact is a copy of.
1230#
1231testsuite-fetch:
1232 + $(KMK) -C tools fetch VBOX_ONLY_TESTSUITE=1
1233 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1234 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1235# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1236# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1237 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1238 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1239 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
1240 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1241 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1242 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1243 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1244
1245
1246testsuite-build: \
1247 testsuite-build-rsync-into-vms \
1248 testsuite-build-solaris.amd64 \
1249 testsuite-build-solaris.x86 \
1250 testsuite-build-win.x86 \
1251 testsuite-build-win.amd64 \
1252 testsuite-build-os2.x86 \
1253 testsuite-build-linux.amd64 \
1254 testsuite-build-linux.x86 \
1255 testsuite-build-freebsd.amd64 \
1256 testsuite-build-freebsd.x86 \
1257 testsuite-build-darwin.amd64 \
1258 testsuite-build-darwin.x86
1259
1260testsuite-build-rsync-into-vms: \
1261 testsuite-build-solaris.rsync-into-vm \
1262 testsuite-build-os2.rsync-into-vm
1263 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1264.NOTPARALLEL: testsuite-build-rsync-into-vms
1265
1266
1267VBOX_TESTSUITE_BUILD.amd64 = VBOX_ONLY_TESTSUITE=1 \
1268 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1269 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1270 VBOX_SVN_REV=$(VBOX_SVN_REV)
1271
1272VBOX_TESTSUITE_BUILD.x86 = VBOX_ONLY_TESTSUITE=1 \
1273 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1274 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1275 VBOX_SVN_REV=$(VBOX_SVN_REV)
1276
1277# Automatically determine the testsuite build subdir name. Used for figuring
1278# out directory names inside the test suite building VMs.
1279VBOX_TESTSUITE_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1280
1281# When building in parallel on a Windows host, make sure we finish the host
1282# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1283ifeq ($(KBUILD_TARGET),win)
1284VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST = testsuite-build-win.x86 testsuite-build-win.amd64
1285else
1286VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
1287endif
1288
1289# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1290testsuite-build-win.amd64: testsuite-build-win.x86
1291ifeq ($(KBUILD_TARGET),win)
1292 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1293else
1294 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 testsuite)
1295 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.amd64) all "
1296 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 testsuite)
1297endif
1298
1299testsuite-build-win.x86:
1300ifeq ($(KBUILD_TARGET),win)
1301 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1302else
1303 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 testsuite)
1304 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1305 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 testsuite)
1306endif
1307
1308ifeq ($(KBUILD_TARGET),solaris)
1309testsuite-build-solaris.amd64:
1310 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1311
1312testsuite-build-solaris.x86:
1313 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1314
1315else
1316testsuite-build-solaris.rsync-into-vm: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1317 $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude=FetchDir --exclude=tinderclient.log --exclude=win.amd64 --exclude=win.x86 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)
1318
1319testsuite-build-solaris.build-it: testsuite-build-solaris.rsync-into-vm
1320 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 testsuite)
1321 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1322 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 testsuite)
1323 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 testsuite)
1324 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all "
1325 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 testsuite)
1326
1327testsuite-build-solaris.rsync-out-of-vm: testsuite-build-solaris.build-it
1328 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1329 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1330
1331.NOTPARALLEL: testsuite-build-solaris.rsync-into-vm
1332.PHONY: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
1333
1334testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
1335testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
1336endif
1337
1338ifeq ($(KBUILD_TARGET),os2)
1339testsuite-build-os2.x86:
1340 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1341testsuite-build-os2.rsync-into-vm:
1342else # !OS/2
1343testsuite-build-os2.rsync-into-vm:
1344 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
1345 '--exclude=src/VBox/Additions/x11/**' \
1346 '--exclude=src/VBox/Additions/WINNT/**' \
1347 '--exclude=src/VBox/Frontends/**' \
1348 '--exclude=src/VBox/VMM/**' \
1349 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)
1350
1351testsuite-build-os2.build-it: testsuite-build-os2.rsync-into-vm
1352 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 TestSuite)
1353 $(VBOX_KMK_TIME) rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all packing"
1354 $(call VBOX_BLD_VM_MSG_END__,OS/2 TestSuite)
1355
1356testsuite-build-os2.rsync-out-of-vm: testsuite-build-os2.build-it
1357 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1358
1359.NOTPARALLEL: testsuite-build-os2.rsync-into-vm
1360.PHONY: testsuite-build-os2.rsync-into-vm testsuite-build-os2.rsync-out-of-vm testsuite-build-os2.build-it
1361
1362testsuite-build-os2.x86: testsuite-build-os2.rsync-out-of-vm
1363endif # !OS/2
1364
1365testsuite-build-linux.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1366ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
1367 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1368else
1369 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 testsuite)
1370 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_LNX_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1371 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 testsuite)
1372endif
1373
1374testsuite-build-linux.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1375ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1376 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1377else
1378 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 testsuite)
1379 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_NEW_X86_IP) "echo $@ && dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all\""'
1380 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 testsuite)
1381endif
1382
1383testsuite-build-freebsd.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1384#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1385# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1386#else
1387# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 testsuite)
1388# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1389# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 testsuite)
1390#endif
1391
1392testsuite-build-freebsd.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1393#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1394# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1395#else
1396# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 testsuite)
1397# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1398# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 testsuite)
1399#endif
1400
1401testsuite-build-darwin.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1402ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1403 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1404else
1405 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 testsuite)
1406 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1407 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1408 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1409 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 testsuite)
1410endif
1411
1412testsuite-build-darwin.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1413ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1414 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1415else
1416 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 testsuite)
1417 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1418 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1419 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1420 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 testsuite)
1421endif
1422
1423
1424testsuite-packing:
1425 + $(KMK) VBOX_ONLY_TESTSUITE=1 \
1426 VBOX_WITH_TESTSUITE_PACKING.darwin.amd64=1 \
1427 VBOX_WITH_TESTSUITE_PACKING.darwin.x86=2 \
1428 VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64= \
1429 VBOX_WITH_TESTSUITE_PACKING.freebsd.x86= \
1430 VBOX_WITH_TESTSUITE_PACKING.linux.amd64=1 \
1431 VBOX_WITH_TESTSUITE_PACKING.linux.x86=1 \
1432 VBOX_WITH_TESTSUITE_PACKING.os2.x86=1 \
1433 VBOX_WITH_TESTSUITE_PACKING.solaris.amd64=1 \
1434 VBOX_WITH_TESTSUITE_PACKING.solaris.x86=1 \
1435 VBOX_WITH_TESTSUITE_PACKING.win.amd64=1 \
1436 VBOX_WITH_TESTSUITE_PACKING.win.x86=1 \
1437 -C src/VBox/Testsuite \
1438 $(PATH_OUT)/VBoxTestSuite.zip \
1439 $(PATH_OUT)/VBoxTestBoxScript.zip
1440
1441.PHONY: \
1442 testsuite-build-win.x86 \
1443 testsuite-build-win.amd64 \
1444 testsuite-build-solaris.amd64 \
1445 testsuite-build-solaris.x86 \
1446 testsuite-build-os2.x86 \
1447 testsuite-build-linux.amd64 \
1448 testsuite-build-linux.x86 \
1449 testsuite-build-freebsd.amd64 \
1450 testsuite-build-freebsd.x86 \
1451 testsuite-build-darwin.amd64 \
1452 testsuite-build-darwin.x86 \
1453 testsuite-packing
1454
1455
1456#
1457# Build the EFI firmware, all of it.
1458#
1459efi-fetch:
1460 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1461
1462efi-build: $(VBOX_VERSION_HEADER)
1463 + $(KMK) -C src/VBox/Devices/EFI/Firmware
1464
1465efi-packing:
1466 $(REDIRECT) -C "$(PATH_STAGE_BIN)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X \
1467 ../VBoxEfiFirmware.zip \
1468 VBoxEFI32.fd \
1469 VBoxEFI64.fd
1470## @todo zip up debug info as well!
1471
1472#
1473# Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
1474# - includes kBuild
1475# - must be executed on an OSE checkout
1476#
1477
1478# the path where to store the tarball
1479TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
1480# the root directory inside the tarball
1481TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
1482# the name of the tarball file
1483TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
1484snapshot-ose:
1485 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
1486 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1487 echo; \
1488 echo "Found RDP stuff, refused to build OSE tarball!"; \
1489 echo; \
1490 exit 1; \
1491 fi; \
1492 if [ -z "$(VBOX_OSE)" ]; then \
1493 echo; \
1494 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1495 echo; \
1496 exit 1; \
1497 fi
1498 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
1499 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
1500 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
1501 $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
1502 --exclude=.svn \
1503 --exclude=$(TARBALLROOT)/out \
1504 --exclude=$(TARBALLROOT)/env.sh \
1505 --exclude=$(TARBALLROOT)/configure.log \
1506 --exclude=$(TARBALLROOT)/build.log \
1507 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1508 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
1509 --exclude=$(TARBALLROOT)/prebuild \
1510 -C $(TARBALLPATH) \
1511 -f $(TARBALLPATH)/$(TARBALLNAME) \
1512 $(TARBALLROOT)
1513 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
1514
1515
1516#
1517# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1518# - includes kBuild
1519# - must be executed on an PUEL checkout
1520#
1521
1522# the path where to store the zip archive
1523ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1524# the root directory inside the zip archive
1525ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1526# the name of the zip archive
1527ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1528snapshot-puel:
1529 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1530 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1531 echo; \
1532 echo "Did not find RDP stuff, is this an OSE branch?"; \
1533 echo; \
1534 exit 1; \
1535 fi
1536 @if [ -z "$(PASSWORD)" ]; then \
1537 echo; \
1538 echo "Please specify a password with PASSWORD=..."; \
1539 echo; \
1540 exit 1; \
1541 fi
1542 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1543 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1544 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1545 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1546 $(QUIET)(cd $(ZIPPATH); 7z a \
1547 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1548 -xr!.svn \
1549 -i!$(ZIPROOT)/Config.kmk \
1550 -i!$(ZIPROOT)/Doxyfile.Core \
1551 -i!$(ZIPROOT)/Makefile.kmk \
1552 -i!$(ZIPROOT)/configure \
1553 -i!$(ZIPROOT)/configure.vbs \
1554 -i!$(ZIPROOT)/doc \
1555 -i!$(ZIPROOT)/include \
1556 -i!$(ZIPROOT)/kBuild \
1557 -i!$(ZIPROOT)/src \
1558 -i!$(ZIPROOT)/tools/env.sh \
1559 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1560 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1561 -x!$(ZIPROOT)/doc/Devices \
1562 -x!$(ZIPROOT)/doc/\*pdf \
1563 -x!$(ZIPROOT)/doc/VMM \
1564 -x!$(ZIPROOT)/doc/licenses_old \
1565 -x!$(ZIPROOT)/doc/manual/de_DE \
1566 -x!$(ZIPROOT)/doc/manual/fr_FR \
1567 -x!$(ZIPROOT)/src/tests \
1568 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1569 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1570 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1571 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1572 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1573 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1574 $(ZIPPATH)/$(ZIPNAME))
1575 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1576
1577
1578#
1579# Generate ALL the rules.
1580#
1581include $(FILE_KBUILD_SUB_FOOTER)
1582
1583
1584#
1585# Generate x86.mac and err.mac.
1586#
1587incs:
1588 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1589 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1590 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1591 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1592 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
1593 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1594 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1595 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1596
1597
1598#
1599# Legacy.
1600#
1601vslick.h:
1602 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1603 exit 1
1604
1605
1606#
1607# Add fetching of the tools to the 'up[date][2]' targets.
1608#
1609up update up2 update2::
1610ifndef VBOX_OSE
1611 +$(MAKE) -C tools fetch
1612else
1613 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1614endif
1615
1616
1617#
1618# For efficiently build serveral build types / archs.
1619#
1620both-debug-release both-release-debug: \
1621 build-release-$(KBUILD_TARGET_ARCH) \
1622 build-debug-$(KBUILD_TARGET_ARCH)
1623both-x86-amd64 both-amd64-x86: \
1624 build-$(KBUILD_TYPE)-x86 \
1625 build-$(KBUILD_TYPE)-x86
1626both-types-archs both-archs-types: \
1627 build-debug-x86 \
1628 build-release-x86 \
1629 build-debug-amd64 \
1630 build-release-amd64
1631
1632build-release-x86:
1633 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
1634
1635build-debug-x86:
1636 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
1637
1638build-release-amd64:
1639 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
1640
1641build-debug-amd64:
1642 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
1643
1644
1645#
1646# Aliases for building the SDK.
1647#
1648.NOTPARALLEL: sdk sdk-fetch
1649sdk:
1650 + $(KMK) VBOX_ONLY_SDK=1 \
1651 pass_bldprogs pass_others pass_installs pass_packing
1652
1653sdk-fetch:
1654 + $(KMK) VBOX_ONLY_SDK=1 -C tools
1655
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