VirtualBox

source: vbox/trunk/Makefile.kmk@ 44358

Last change on this file since 44358 was 44273, checked in by vboxsync, 12 years ago

-debug

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