VirtualBox

source: vbox/trunk/Makefile.kmk@ 47635

Last change on this file since 47635 was 47046, checked in by vboxsync, 11 years ago

Config.kmk: GCCConfig.kmk -> DynamicConfig.kmk, adding a yasm warning detection to it.

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