VirtualBox

source: vbox/trunk/Makefile.kmk@ 44115

Last change on this file since 44115 was 44075, checked in by vboxsync, 12 years ago

lightdm-greeter, next try

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