VirtualBox

source: vbox/trunk/Makefile.kmk@ 45131

Last change on this file since 45131 was 45059, checked in by vboxsync, 12 years ago

build fix

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