VirtualBox

source: vbox/trunk/Makefile.kmk@ 43138

Last change on this file since 43138 was 42870, checked in by vboxsync, 12 years ago

Makefile.kmk: taking source snapshots should include the build tag

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 65.6 KB
RevLine 
[2478]1# $Id: Makefile.kmk 42870 2012-08-17 15:25:50Z vboxsync $
2## @file
[1]3# Top level makefile.
4#
[2478]5
[1]6#
[40346]7# Copyright (C) 2006-2012 Oracle Corporation
[4398]8#
[5999]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#
[1]17
[10195]18SUB_DEPTH = .
19include $(KBUILD_PATH)/subheader.kmk
[1]20
[12243]21#
22# Sub-makefiles / Sub-directories.
23#
[42276]24if defined(VBOX_WITH_DOCS) && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK))
[34609]25 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
[10195]26endif
[34609]27include $(PATH_SUB_CURRENT)/src/Makefile.kmk
[1]28
[12243]29
[42276]30## @todo split up this file!
31
32
[15800]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 \
[15802]44 $(VBOX_SVN_REV_KMK) \
45 $(PATH_OUT)/GCCConfig.kmk
[15800]46
47
[34482]48if !defined(VBOX_ONLY_ADDITIONS) \
49 && !defined(VBOX_ONLY_DOCS) \
50 && !defined(VBOX_ONLY_EXTPACKS) \
[42276]51 && !defined(VBOX_ONLY_TESTSUITE) # -> line 426b ;-)
[12576]52
[42276]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 += \
[13264]62 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
[42276]63 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
[12576]64 endif
65
66
[1]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#
[42276]73INSTALLS += InstallExternalLibs
[1]74
[42276]75InstallExternalLibs_INST = $(INST_BIN)
[1]76
77# The SDL DLLs
[8758]78if1of ($(KBUILD_TARGET), win os2)
[1]79 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
[8760]80 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
[42276]81 InstallExternalLibs_SOURCES += \
[1]82 $(DLL_SDK_LIBSDL_SDL)
83 ifdef VBOX_WITH_SECURELABEL
[42276]84 InstallExternalLibs_SOURCES += \
[1]85 $(DLL_SDK_LIBSDL_SDLTTF)
86 endif
[8758]87 ifeq ($(KBUILD_TARGET),os2)
[42276]88 InstallExternalLibs_SOURCES += \
[1]89 $(DLL_SDK_LIBSDL_FSLIB)
90 endif
91 endif
92endif
93
[3405]94
[1]95# The compiler runtime DLLs.
[8758]96ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
[42288]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
[42221]110 endif
[1]111endif
112
[1648]113#
[12173]114# Install our Qt DLLs / Shared Objects / Frameworks.
[12952]115# Note: The installer fixes the darwin .dylibs when hardening is enabled.
[12173]116#
[31967]117ifeq ($(KBUILD_TARGET),darwin)
[12173]118 INSTALLS += qt4-bin
[12948]119 qt4-bin_MODE = 755
[31967]120 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
[32012]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))
[31967]123 ifdef VBOX_WITH_COCOA_QT
[16925]124 qt4-bin_SOURCES += \
[31967]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 += \
[17849]131 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
[31967]132 endif
[32012]133 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
134 ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))
[31967]135 ifdef VBOX_WITH_COCOA_QT
136 qt4-bin_SYMLINKS += \
137 Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
138 endif
139else
[42298]140 if defined(VBOX_WITH_QT4_SUN) || defined(VBOX_WITH_QT4_PAYLOAD)
[31967]141 ifeq ($(KBUILD_TARGET),win)
142 INSTALLS += qt4-bin
143 qt4-bin_MODE = 755
144 qt4-bin_INST = $(INST_BIN)
145 qt4-bin_SOURCES = \
[32013]146 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL)) \
[32012]147 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL)=>accessible/qtaccessiblewidgets4$(SUFF_DLL)
[31967]148 else
149 INSTALLS += qt4-bin
150 qt4-bin_MODE = 755
151 qt4-bin_INST = $(INST_BIN)
152 qt4-bin_SOURCES = \
[32013]153 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \
[31967]154 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
[16985]155 endif
[31967]156 endif # VBOX_WITH_QT4_SUN
157endif
[12173]158
159
160#
[17250]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
[17849]167 ifeq ($(KBUILD_TARGET_ARCH),amd64)
[17250]168 INSTALLS += buildserver-additions
169 endif
170 else
171 INSTALLS += buildserver-additions
172 endif
173
174#
[6129]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#
[16957]179buildserver-additions_INST = $(INST_ADDITIONS_ISO)
[6129]180buildserver-additions_MODE = 0644
181buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
182buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
183
[13348]184$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
[6129]185 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
[13893]186 ifneq ($(KBUILD_HOST),win)
187 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
188 else
[34609]189 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
[13893]190 endif
[6129]191 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
192 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
193
[13893]194 ifeq ($(KBUILD_HOST),win)
[6129]195buildserver-additions-affinity-hack:
[6142]196 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
[13893]197 endif
[6129]198endif
199
200
201#
[11686]202#
203# Install documentation files (at the moment the .chm) from the build server.
204#
205ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
[13348]206## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
[11686]207INSTALLS += buildserver-docs
208buildserver-docs_INST = $(INST_BIN)
209buildserver-docs_MODE = 0644
[13228]210buildserver-docs_SOURCES = \
[13246]211 $(addprefix $(PATH_TARGET)/, \
[13244]212 VirtualBox.chm UserManual.pdf \
213 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
[13228]214buildserver-docs_CLEANS = \
[21925]215 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
216 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
217 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
[13246]218 $(addprefix $(PATH_TARGET)/, \
[13244]219 VirtualBox.chm UserManual.pdf \
220 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
[11686]221
[13348]222## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
[11686]223include $(KBUILD_PATH)/tools/ZIP.kmk
224
[21925]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
[11686]228 $(call MSG_L1,Unpacking documentation)
229 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
[21925]230 $(APPEND) -t $@ "done"
[11686]231
[21925]232$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
233 $(RM) -f $@ $@.tmp
[13893]234 ifneq ($(KBUILD_HOST),win)
[21925]235 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $@.tmp
[13893]236 else
[34609]237 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
[13893]238 endif
[21925]239 $(CP) -f $@.tmp $@
240 $(RM) -f $@.tmp
[23658]241## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
[11686]242
[13893]243 ifeq ($(KBUILD_HOST),win)
[11686]244buildserver-documentation-affinity-hack:
[21925]245 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
[13893]246 endif
[13348]247endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
[11686]248
249
[29079]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)
[23650]271
[29079]272 ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
273 include $(KBUILD_PATH)/tools/ZIP.kmk
[23650]274
[29079]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
[25706]279 $(call MSG_L1,Unpacking EFI firmware)
[23658]280 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
[25706]281 $(APPEND) -t $@ "done"
[23656]282
[29079]283 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
284 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
[23660]285 $(RM) -f $@ $@.tmp
[29079]286 ifneq ($(KBUILD_HOST),win)
[23658]287 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $@.tmp
[29079]288 else
[34609]289 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
[29079]290 endif
[23658]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.
[23650]294
[29079]295 ifeq ($(KBUILD_HOST),win)
296 buildserver-efifw-affinity-hack:
[23661]297 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
[29079]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
[23658]311
312
[11686]313#
[4398]314# Install staged binaries on platforms where we can't cross
[1648]315# compile things.
316#
[8758]317ifn1of ($(KBUILD_TARGET), l4 linux win)
[1648]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
[16957]325 staged-additions_INST = $(INST_ADDITIONS_ISO)
[1648]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
[34482]343endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
[1648]344
345
[12780]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.
[12781]349docs:
[12780]350else # !VBOX_ONLY_DOCS
[1]351#
352# Generate documentation.
353# (This should be converted into a separate pass or merged with an existing one later.)
354#
[34609]355 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
[12780]356docs: docs.Core
[34609]357 endif
[11703]358endif # !VBOX_ONLY_DOCS
[1]359
[12647]360docs.Core docs.core: $(PATH_TARGET)/docs.Core
[1]361
362
[6288]363
[1]364#
[6288]365# The core (VMM+REM+Devices+Main) documentation.
[1]366#
[6288]367# This includes so much because we wish to have the complete CFGM
368# and GCFGM lists.
369#
370OTHER_CLEAN += \
[10226]371 $(PATH_TARGET)/Doxyfile.Core \
372 $(PATH_TARGET)/Doxyfile.Core.dep
[1]373
[10226]374VBOX_CORE_DOXYFILE_INPUT_DIRS = \
[6288]375 include/iprt \
[25647]376 include/iprt/cpp \
377 include/iprt/linux \
[6288]378 include/VBox \
[35350]379 include/VBox/vmm \
[6288]380 include/VBox/com \
[35350]381 include/VBox/ExtPack \
[6288]382 include/VBox/HostServices \
[25647]383 include/VBox/GuestHost \
384 include/VBox/HGSMI \
[6288]385 src/VBox/VMM \
386 src/VBox/VMM/VMMR0 \
[35350]387 src/VBox/VMM/VMMRC \
388 src/VBox/VMM/VMMR3 \
[6288]389 src/VBox/VMM/VMMAll \
390 src/VBox/VMM/VMMSwitcher \
391 src/VBox/Debugger \
[10029]392 src/VBox/Devices \
[6288]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 \
[10029]414 src/VBox/Main \
[6288]415 src/VBox/Main/glue \
416 src/VBox/Main/webservice \
417 src/VBox/Main/xml \
[35379]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 \
[10029]430 src/VBox/HostServices \
[39687]431 src/VBox/HostServices/DragAndDrop \
432 src/VBox/HostServices/GuestControl \
433 src/VBox/HostServices/GuestProperties \
[6307]434 src/VBox/HostServices/SharedClipboard \
435 src/VBox/HostServices/SharedFolders \
436 src/VBox/HostServices/SharedOpenGL \
[39689]437 src/VBox/HostServices/SharedOpenGL/crserver \
438 src/VBox/HostServices/SharedOpenGL/crserverlib \
439 src/VBox/HostServices/SharedOpenGL/render \
440 src/VBox/HostServices/SharedOpenGL/unpacker \
[39687]441 src/VBox/HostServices/auth \
[39689]442 src/VBox/HostServices/auth/directoryservice \
443 src/VBox/HostServices/auth/pam \
444 src/VBox/HostServices/auth/simple \
445 src/VBox/HostServices/auth/winlogon \
[6307]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 \
[10029]454 src/VBox/HostDrivers/VBoxNetFlt \
[10020]455 src/VBox/HostDrivers/VBoxNetFlt/darwin \
456 src/VBox/HostDrivers/VBoxNetFlt/linux \
457 src/VBox/HostDrivers/VBoxNetFlt/solaris \
458 src/VBox/HostDrivers/VBoxNetFlt/win \
[10029]459 src/VBox/HostDrivers/VBoxNetNat \
[10020]460 src/VBox/HostDrivers/VBoxNetNat/darwin \
461 src/VBox/HostDrivers/VBoxNetNat/linux \
462 src/VBox/HostDrivers/VBoxNetNat/solaris \
463 src/VBox/HostDrivers/VBoxNetNat/win \
[17850]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 \
[39687]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 \
[10029]474 src/VBox/HostDrivers/VBoxUSB \
[6307]475 src/VBox/HostDrivers/VBoxUSB/darwin \
476 src/VBox/HostDrivers/VBoxUSB/os2 \
[10020]477 src/VBox/HostDrivers/VBoxUSB/solaris \
[6307]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 \
[39687]488 src/VBox/Additions \
[39689]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 \
[39687]537 src/VBox/Additions/common \
[39689]538 src/VBox/Additions/common/VBoxControl \
[39687]539 src/VBox/Additions/common/VBoxGuest \
[39689]540 src/VBox/Additions/common/VBoxGuest/freebsd \
541 src/VBox/Additions/common/VBoxGuest/linux \
542 src/VBox/Additions/common/VBoxGuest/win \
[39687]543 src/VBox/Additions/common/VBoxGuestLib \
544 src/VBox/Additions/common/VBoxService \
545 src/VBox/Additions/common/VBoxVideo \
546 src/VBox/Additions/common/crOpenGL \
[39689]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 \
[39687]551 src/VBox/Additions/common/pam \
[39689]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 \
[39688]583 src/VBox/NetworkServices \
584 src/VBox/NetworkServices/DHCP \
585 src/VBox/NetworkServices/NAT \
586 src/VBox/NetworkServices/NetLib \
[33747]587 src/VBox/Storage
[6288]588
589# These must come first in order to make things look nice.
[10226]590VBOX_CORE_DOXYFILE_INPUT_FIRST =\
[6288]591 $(PATH_ROOT)/doc/VBox-doc.c \
592 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
[19010]593 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
[35350]594 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
595 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
[6288]596 $(PATH_ROOT)/include/VBox/cdefs.h \
[35350]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/hwaccm.h \
616 $(PATH_ROOT)/include/VBox/vmm/hwacc_svm.h \
617 $(PATH_ROOT)/include/VBox/vmm/hwacc_vmx.h \
[10029]618 \
[35338]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/HWACCMInternal.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 \
[35350]628 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
629 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
[35338]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 \
[10029]638 \
[35350]639 $(PATH_ROOT)/include/VBox/vmm/vm.h \
[6288]640 \
641 $(PATH_ROOT)/include/VBox/sup.h \
[33573]642 $(PATH_ROOT)/include/VBox/vd.h \
[6288]643 $(PATH_ROOT)/include/VBox/types.h \
644 $(PATH_ROOT)/include/VBox/err.h \
[35350]645 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
[6288]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 \
[10029]657 \
[6288]658 $(PATH_ROOT)/include/VBox/log.h \
659 $(PATH_ROOT)/include/VBox/param.h \
660 $(PATH_ROOT)/include/VBox/version.h
661
[10226]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))
[6288]668
669# And some some additional stuff.
[10226]670VBOX_CORE_DOXYFILE_INPUT += \
[6288]671 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
672 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
673
674
[10226]675VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
[13547]676BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
[6288]677
[10226]678-include $(PATH_TARGET)/Doxyfile.Core.dep
[6288]679
680# Generate the Doxyfile
[10226]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) \
[16532]684 | $$(dir $$@)
[10226]685 $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
[6288]686 $(CP) -f Doxyfile.Core $@.tmp
687 $(APPEND) $@.tmp
[10226]688 $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
689 $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
[6288]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
[10226]693 $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
[6288]694 $(APPEND) $@.tmp
[8758]695 $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
[6288]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 $@
[10226]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)"
[6288]701
702# Do the actual job.
[13547]703$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
[10029]704 $(RM) -f $(PATH_TARGET)/docs.Core
[10226]705 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
706 doxygen $(PATH_TARGET)/Doxyfile.Core
[6288]707 $(APPEND) $(PATH_TARGET)/docs.Core
[1]708
[6288]709
[27014]710#
711# Alias for kmk_time. Used by both the additions and testsuite build setups.
712#
713VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
[1]714
[34637]715#
[34648]716# Common rsync bits.
[34637]717#
[34639]718
719##
[34648]720# The basic rsync invocation for syncing the tree into a VM; the source and
721# target specs are missing.
722#
[34639]723# @param 1 os name.
[34648]724# @param 2 arch or *.
725#
[34649]726VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
[40343]727 --exclude=*.pyc \
[40332]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/ \
[34640]736 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
[40332]737 --exclude=tools/$(os).x86/ \
738 --exclude=tools/$(os).amd64/ \
739 --exclude=out/$(os).amd64/ \
740 --exclude=out/$(os).x86/ \
[34651]741 ,$(select \
[40332]742 "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
743 "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
[34651]744 ))
[27014]745
[1]746#
[40327]747# VM IP addresses.
748#
[40336]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
[40327]760
[40328]761VBOX_WITH_OS2_ADD_BUILD=1
[40327]762
763#
[40346]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
[40347]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.
[40346]772endif
773
774#
[6052]775# Build the additions, all of them.
776#
[6129]777# This is currently tailored (hardcoded) for the additions
[6052]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:
[27076]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
[40315]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
[27076]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
[5957]794
[6052]795
[12337]796## @todo Currently combined solaris additions building assumes that amd64 is
[16043]797# built first. The windows amd64 additions need some x86 files, so don't change
[25220]798# the order of the windows builds. TODO: Split building and packing for these two VMs.
[6052]799additions-build: \
[40339]800 additions-build-rsync-into-vms \
[40346]801 additions-build-win.x86 \
802 additions-build-win.amd64 \
[25222]803 additions-build-solaris.amd64 \
804 additions-build-solaris.x86 \
[6052]805 additions-build-os2.x86 \
[31139]806 additions-build-linux.x86.combined
[6052]807
[40339]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
[10161]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 \
[25209]818 VBOX_SVN_REV=$(VBOX_SVN_REV)
[10161]819
[8762]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 \
[25209]823 VBOX_SVN_REV=$(VBOX_SVN_REV)
[6052]824
[12833]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
[25225]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
[25220]837# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
[25221]838additions-build-win.amd64: additions-build-win.x86
[10161]839ifeq ($(KBUILD_TARGET),win)
[25209]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
[10161]842else
[40346]843 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions)
[40336]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 "
[40346]845 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions)
[10161]846endif
847
[6052]848additions-build-win.x86:
[8758]849ifeq ($(KBUILD_TARGET),win)
[25209]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
[6052]852else
[40346]853 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions)
[40336]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"
[40346]855 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions)
[6052]856endif
[6129]857
[25221]858# ASSUMES the 64-bit edition are built first. This also serializes VM access.
859ifeq ($(KBUILD_TARGET),solaris)
[10161]860additions-build-solaris.amd64:
[25209]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
[25221]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
[40339]868additions-build-solaris.rsync-into-vm:
[10161]869else
[40339]870additions-build-solaris.rsync-into-vm:
[40340]871 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
[40338]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)
[25221]876
[25683]877additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
[40346]878 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions)
[40335]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"
[40346]880 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions)
881 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions)
[40335]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"
[40346]883 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions)
[25221]884
[25222]885additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
[40335]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/
[25222]888
[40337]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
[25222]891
892additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
[40339]893additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
[8032]894endif
[6052]895
[40328]896ifdef VBOX_WITH_OS2_ADD_BUILD
[40315]897 ifeq ($(KBUILD_TARGET),os2)
[6052]898additions-build-os2.x86:
[40315]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
[40339]901
902additions-build-os2.rsync-into-vm:
[40315]903 else
[40339]904additions-build-os2.rsync-into-vm:
[40332]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/**' \
[40331]910 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
[6052]911
[40315]912additions-build-os2.build-it: additions-build-os2.rsync-into-vm
[40346]913 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions)
[40333]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"
[40346]915 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions)
[40315]916
917additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
[40334]918 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
[40315]919
[40337]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
[40315]922
923additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
924 endif
925#
926else
927additions-build-os2.x86:
928# Dummy
929endif
930
[25225]931additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
[10161]932ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
[25209]933 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
[31139]934 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
[10161]935else
[40346]936 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions)
[40336]937 $(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"
[40346]938 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions)
[10161]939endif
940
[31139]941additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
[8904]942ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
[25209]943 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
[31139]944 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
[6052]945else
[40346]946 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions)
[40336]947 $(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"
[40346]948 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions)
[31139]949endif
950
951# Combined Linux Additions .run package. This depends on the archives
[40337]952# created during packing by the architecture-specific builds.
[31139]953additions-build-linux.x86.combined: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST) additions-build-linux.x86 additions-build-linux.amd64
954ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
955 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
956 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
957else
[40346]958 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions)
[40336]959 $(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"
[40346]960 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions)
[6052]961endif
962
963
964additions-packing:
965 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
[9641]966 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
[9643]967 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
[31139]968 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
[6052]969 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
[31150]970 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
[40327]971 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
[12337]972 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
[8058]973 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
[12337]974 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
[11898]975 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
[9641]976 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
[6052]977 -C src/VBox/Additions \
978 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
979
[25221]980.PHONY: \
981 additions-build-win.x86 \
982 additions-build-win.amd64 \
983 additions-build-solaris.amd64 \
984 additions-build-solaris.x86 \
985 additions-build-os2.x86 \
986 additions-build-linux.amd64 \
987 additions-build-linux.x86 \
[31139]988 additions-build-linux.x86.combined \
[25221]989 additions-packing
[12804]990
991
992#
[34482]993# Build the extension packs, all of them.
994#
995# This is tailored (hardcoded) for the extension pack build box.
996#
997# The fetching must be done in serial fashion, while the building should be
998# more flexible wrt to -jN.
999#
1000extpacks-fetch:
1001 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
[34620]1002 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1003 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
[34482]1004# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1005# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1006 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1007 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1008# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1009 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1010 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1011 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1012 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1013
1014
1015extpacks-build: \
[34625]1016 extpacks-build-win.amd64 \
1017 extpacks-build-win.x86 \
[34482]1018 extpacks-build-solaris.amd64 \
1019 extpacks-build-solaris.x86 \
[34625]1020 extpacks-build-os2.x86 \
1021 extpacks-build-linux.amd64 \
1022 extpacks-build-linux.x86 \
[34620]1023 extpacks-build-darwin.amd64 \
1024 extpacks-build-darwin.x86 \
[34625]1025 extpacks-build-freebsd.amd64 \
1026 extpacks-build-freebsd.x86
[34482]1027
1028VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1029 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1030 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1031 VBOX_SVN_REV=$(VBOX_SVN_REV)
1032
1033VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1034 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1035 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1036 VBOX_SVN_REV=$(VBOX_SVN_REV)
1037
1038# Automatically determine the extpack build subdir name. Used for figuring out
1039# directory names inside the extension pack building VMs.
1040VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1041
1042# When building in parallel on a Windows host, make sure we finish the host
1043# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1044ifeq ($(KBUILD_TARGET),win)
1045VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1046else
1047VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1048endif
1049
1050extpacks-build-win.amd64:
1051ifeq ($(KBUILD_TARGET),win)
1052 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1053else
[40346]1054 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
[40336]1055 $(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"
[40346]1056 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
[34482]1057endif
1058
1059extpacks-build-win.x86:
1060ifeq ($(KBUILD_TARGET),win)
1061 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1062else
[40346]1063 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
[40336]1064 $(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"
[40346]1065 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
[34482]1066endif
1067
1068ifeq ($(KBUILD_TARGET),solaris)
1069extpacks-build-solaris.amd64:
1070 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1071
1072extpacks-build-solaris.x86: extpacks-build-solaris.amd64
1073 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1074
1075else
1076# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1077extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
[40335]1078 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
[34482]1079
1080extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
[40346]1081 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
[40335]1082 $(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"
[40346]1083 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1084 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 extension packs)
[40335]1085 $(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"
[40346]1086 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 extension packs)
[34482]1087
1088extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
[40335]1089 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1090 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
[34482]1091
1092.NOTPARALLEL: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
1093.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1094
1095extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1096extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
1097endif
1098
1099extpacks-build-os2.x86:
1100#ifeq ($(KBUILD_TARGET),os2)
1101# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1102#else
[40327]1103# $(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) "
[34482]1104#endif
1105
1106extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1107ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
1108 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1109else
[40346]1110 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
[40336]1111 $(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"
[40346]1112 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
[34482]1113endif
1114
1115extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1116ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1117 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1118else
[40346]1119 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
[40336]1120 $(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"
[40346]1121 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
[34482]1122endif
1123
1124extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
[34625]1125#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1126# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1127#else
[40346]1128# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
[40336]1129# $(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"
[40346]1130# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
[34625]1131#endif
[34482]1132
1133extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
[34625]1134#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1135# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1136#else
[40346]1137# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
[40336]1138# $(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"
[40346]1139# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
[34625]1140#endif
[34482]1141
1142extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1143ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1144 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1145else
[40346]1146 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
[40336]1147 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1148 $(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"
1149 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
[40346]1150 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
[34482]1151endif
1152
1153extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1154ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1155 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1156else
[40346]1157 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 extension packs)
[40336]1158 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1159 $(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"
1160 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
[40346]1161 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 extension packs)
[34482]1162endif
1163
1164
1165extpacks-packing:
[34484]1166 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
[34622]1167 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86" \
[34484]1168 packing
[34622]1169# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
[34482]1170
1171.PHONY: \
1172 extpacks-build-win.x86 \
1173 extpacks-build-win.amd64 \
1174 extpacks-build-solaris.amd64 \
1175 extpacks-build-solaris.x86 \
1176 extpacks-build-os2.x86 \
1177 extpacks-build-linux.amd64 \
1178 extpacks-build-linux.x86 \
1179 extpacks-build-freebsd.amd64 \
1180 extpacks-build-freebsd.x86 \
1181 extpacks-build-darwin.amd64 \
1182 extpacks-build-darwin.x86 \
1183 extpacks-packing
1184
1185
1186#
[27014]1187# Build the test suite, all of it.
1188#
1189# This is currently tailored (hardcoded) for the additions build box just like
1190# the additions build above, which it in fact is a copy of.
1191#
1192testsuite-fetch:
[27076]1193 + $(KMK) -C tools fetch VBOX_ONLY_TESTSUITE=1
[34625]1194 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1195 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1196# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1197# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
[27029]1198 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1199 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1200# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
1201 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1202 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1203 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1204 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
[27014]1205
1206
1207testsuite-build: \
1208 testsuite-build-solaris.amd64 \
1209 testsuite-build-solaris.x86 \
1210 testsuite-build-win.x86 \
1211 testsuite-build-win.amd64 \
1212 testsuite-build-os2.x86 \
1213 testsuite-build-linux.amd64 \
[34625]1214 testsuite-build-linux.x86 \
1215 testsuite-build-freebsd.amd64 \
1216 testsuite-build-freebsd.x86 \
1217 testsuite-build-darwin.amd64 \
1218 testsuite-build-darwin.x86
[27014]1219
[27070]1220VBOX_TESTSUITE_BUILD.amd64 = VBOX_ONLY_TESTSUITE=1 \
[27014]1221 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1222 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1223 VBOX_SVN_REV=$(VBOX_SVN_REV)
1224
[27070]1225VBOX_TESTSUITE_BUILD.x86 = VBOX_ONLY_TESTSUITE=1 \
[27014]1226 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1227 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1228 VBOX_SVN_REV=$(VBOX_SVN_REV)
1229
1230# Automatically determine the testsuite build subdir name. Used for figuring
1231# out directory names inside the test suite building VMs.
1232VBOX_TESTSUITE_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1233
1234# When building in parallel on a Windows host, make sure we finish the host
1235# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1236ifeq ($(KBUILD_TARGET),win)
1237VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST = testsuite-build-win.x86 testsuite-build-win.amd64
1238else
1239VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
1240endif
1241
1242# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1243testsuite-build-win.amd64: testsuite-build-win.x86
1244ifeq ($(KBUILD_TARGET),win)
1245 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1246else
[40346]1247 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 testsuite)
[40336]1248 $(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 "
[40346]1249 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 testsuite)
[27014]1250endif
1251
1252testsuite-build-win.x86:
1253ifeq ($(KBUILD_TARGET),win)
1254 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1255else
[40346]1256 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 testsuite)
[40336]1257 $(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"
[40346]1258 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 testsuite)
[27014]1259endif
1260
1261ifeq ($(KBUILD_TARGET),solaris)
1262testsuite-build-solaris.amd64:
1263 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1264
[27070]1265testsuite-build-solaris.x86:
1266 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
[27014]1267
1268else
1269testsuite-build-solaris.rsync-into-vm: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
[40335]1270 $(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)
[27014]1271
1272testsuite-build-solaris.build-it: testsuite-build-solaris.rsync-into-vm
[40346]1273 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 testsuite)
[40335]1274 $(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"
[40346]1275 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 testsuite)
1276 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 testsuite)
[40335]1277 $(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 "
[40346]1278 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 testsuite)
[27014]1279
1280testsuite-build-solaris.rsync-out-of-vm: testsuite-build-solaris.build-it
[40335]1281 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1282 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
[27014]1283
1284.NOTPARALLEL: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm
1285.PHONY: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
1286
1287testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
[27070]1288testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
[27014]1289endif
1290
1291testsuite-build-os2.x86:
1292#ifeq ($(KBUILD_TARGET),os2)
1293# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1294#else
[40327]1295# $(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) "
[27014]1296#endif
1297
1298testsuite-build-linux.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1299ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
1300 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1301else
[40346]1302 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 testsuite)
[40336]1303 $(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"
[40346]1304 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 testsuite)
[27014]1305endif
1306
1307testsuite-build-linux.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1308ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1309 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1310else
[40346]1311 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 testsuite)
[40336]1312 $(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"
[40346]1313 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 testsuite)
[27014]1314endif
1315
[34625]1316testsuite-build-freebsd.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1317#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1318# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1319#else
[40346]1320# $(call VBOX_BLD_VM_MSG_BEGIN,freebsd/amd64 testsuite)
[40336]1321# $(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"
[40346]1322# $(call VBOX_BLD_VM_MSG_END__,freebsd/amd64 testsuite)
[34625]1323#endif
[27014]1324
[34625]1325testsuite-build-freebsd.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1326#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1327# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1328#else
[40346]1329# $(call VBOX_BLD_VM_MSG_BEGIN,freebsd/x86 testsuite)
[40336]1330# $(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"
[40346]1331# $(call VBOX_BLD_VM_MSG_END__,freebsd/x86 testsuite)
[34625]1332#endif
1333
1334testsuite-build-darwin.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1335ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1336 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1337else
[40346]1338 $(call VBOX_BLD_VM_MSG_BEGIN,darwin/amd64 testsuite)
[40336]1339 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1340 $(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"
1341 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
[40346]1342 $(call VBOX_BLD_VM_MSG_END__,darwin/amd64 testsuite)
[34625]1343endif
1344
1345testsuite-build-darwin.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1346ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1347 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1348else
[40346]1349 $(call VBOX_BLD_VM_MSG_BEGIN,darwin/x86 testsuite)
[40336]1350 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1351 $(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"
1352 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
[40346]1353 $(call VBOX_BLD_VM_MSG_END__,darwin/x86 testsuite)
[34625]1354endif
1355
1356
[27014]1357testsuite-packing:
1358 + $(KMK) VBOX_ONLY_TESTSUITE=1 \
[34625]1359 VBOX_WITH_TESTSUITE_PACKING.darwin.amd64=1 \
1360 VBOX_WITH_TESTSUITE_PACKING.darwin.x86=2 \
[27078]1361 VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64= \
1362 VBOX_WITH_TESTSUITE_PACKING.freebsd.x86= \
1363 VBOX_WITH_TESTSUITE_PACKING.linux.amd64=1 \
1364 VBOX_WITH_TESTSUITE_PACKING.linux.x86=1 \
1365 VBOX_WITH_TESTSUITE_PACKING.os2.x86= \
1366 VBOX_WITH_TESTSUITE_PACKING.solaris.amd64=1 \
1367 VBOX_WITH_TESTSUITE_PACKING.solaris.x86=1 \
1368 VBOX_WITH_TESTSUITE_PACKING.win.amd64=1 \
1369 VBOX_WITH_TESTSUITE_PACKING.win.x86=1 \
[33382]1370 -C src/VBox/Testsuite \
[27024]1371 $(PATH_OUT)/VBoxTestSuite.zip
[27014]1372
1373.PHONY: \
1374 testsuite-build-win.x86 \
1375 testsuite-build-win.amd64 \
1376 testsuite-build-solaris.amd64 \
1377 testsuite-build-solaris.x86 \
1378 testsuite-build-os2.x86 \
1379 testsuite-build-linux.amd64 \
1380 testsuite-build-linux.x86 \
[34625]1381 testsuite-build-freebsd.amd64 \
1382 testsuite-build-freebsd.x86 \
1383 testsuite-build-darwin.amd64 \
1384 testsuite-build-darwin.x86 \
[27014]1385 testsuite-packing
1386
1387
1388#
[23618]1389# Build the EFI firmware, all of it.
1390#
1391# Mainly hooks right now, maybe we need them later.
1392#
1393efi-fetch:
1394
1395efi-build: $(VBOX_VERSION_HEADER)
1396 $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
1397
1398efi-packing:
1399
1400#
[39670]1401# Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
[293]1402# - includes kBuild
1403# - must be executed on an OSE checkout
1404#
1405
1406# the path where to store the tarball
[19153]1407TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
[293]1408# the root directory inside the tarball
[42870]1409TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
[293]1410# the name of the tarball file
[42870]1411TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
[19162]1412snapshot-ose:
[293]1413 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
[31889]1414 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
[19162]1415 echo; \
[31889]1416 echo "Found RDP stuff, refused to build OSE tarball!"; \
[19162]1417 echo; \
1418 exit 1; \
1419 fi; \
1420 if [ -z "$(VBOX_OSE)" ]; then \
1421 echo; \
1422 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1423 echo; \
1424 exit 1; \
[20645]1425 fi
[293]1426 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
[19153]1427 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
[293]1428 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
[38466]1429 $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
[293]1430 --exclude=.svn \
1431 --exclude=$(TARBALLROOT)/out \
1432 --exclude=$(TARBALLROOT)/env.sh \
1433 --exclude=$(TARBALLROOT)/configure.log \
[19158]1434 --exclude=$(TARBALLROOT)/build.log \
[293]1435 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1436 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
[19158]1437 --exclude=$(TARBALLROOT)/prebuild \
[293]1438 -C $(TARBALLPATH) \
1439 -f $(TARBALLPATH)/$(TARBALLNAME) \
1440 $(TARBALLROOT)
1441 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
[16532]1442
1443
1444#
[19162]1445# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1446# - includes kBuild
[19594]1447# - must be executed on an PUEL checkout
[19162]1448#
1449
1450# the path where to store the zip archive
1451ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1452# the root directory inside the zip archive
1453ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1454# the name of the zip archive
1455ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1456snapshot-puel:
1457 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
[31889]1458 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
[19162]1459 echo; \
[31889]1460 echo "Did not find RDP stuff, is this an OSE branch?"; \
[19162]1461 echo; \
1462 exit 1; \
1463 fi
[19163]1464 @if [ -z "$(PASSWORD)" ]; then \
[19162]1465 echo; \
1466 echo "Please specify a password with PASSWORD=..."; \
1467 echo; \
1468 exit 1; \
1469 fi
1470 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1471 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
[19683]1472 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
[19162]1473 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1474 $(QUIET)(cd $(ZIPPATH); 7z a \
1475 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1476 -xr!.svn \
[19683]1477 -i!$(ZIPROOT)/Config.kmk \
1478 -i!$(ZIPROOT)/Doxyfile.Core \
1479 -i!$(ZIPROOT)/Makefile.kmk \
1480 -i!$(ZIPROOT)/configure \
1481 -i!$(ZIPROOT)/configure.vbs \
1482 -i!$(ZIPROOT)/doc \
1483 -i!$(ZIPROOT)/include \
1484 -i!$(ZIPROOT)/kBuild \
1485 -i!$(ZIPROOT)/src \
1486 -i!$(ZIPROOT)/tools/env.sh \
1487 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1488 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
[19162]1489 -x!$(ZIPROOT)/doc/Devices \
1490 -x!$(ZIPROOT)/doc/\*pdf \
1491 -x!$(ZIPROOT)/doc/L4VM \
1492 -x!$(ZIPROOT)/doc/VMM \
1493 -x!$(ZIPROOT)/doc/licenses_old \
1494 -x!$(ZIPROOT)/doc/manual/de_DE \
1495 -x!$(ZIPROOT)/doc/manual/fr_FR \
1496 -x!$(ZIPROOT)/src/tests \
[23030]1497 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
[19162]1498 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1499 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1500 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1501 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1502 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
[19683]1503 $(ZIPPATH)/$(ZIPNAME))
[19162]1504 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1505
1506
1507#
[16532]1508# Generate ALL the rules.
1509#
[41477]1510include $(FILE_KBUILD_SUB_FOOTER)
[16532]1511
1512
1513#
1514# Generate x86.mac and err.mac.
1515#
1516incs:
[30724]1517 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
[16532]1518 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
[30724]1519 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
[37955]1520 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
[40138]1521 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
[34113]1522 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
[30724]1523 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1524 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
[16532]1525
1526
1527#
[39396]1528# Legacy.
[16532]1529#
[39396]1530vslick.h:
1531 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1532 exit 1
[16532]1533
1534
1535#
1536# Add fetching of the tools to the 'up[date][2]' targets.
1537#
1538up update up2 update2::
1539ifndef VBOX_OSE
1540 +$(MAKE) -C tools fetch
1541else
1542 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1543endif
1544
1545
[39785]1546#
1547# For efficiently build serveral build types / archs.
1548#
1549both-debug-release both-release-debug: \
1550 build-release-$(KBUILD_TARGET_ARCH) \
1551 build-debug-$(KBUILD_TARGET_ARCH)
1552both-x86-amd64 both-amd64-x86: \
1553 build-$(KBUILD_TYPE)-x86 \
1554 build-$(KBUILD_TYPE)-x86
1555both-types-archs both-archs-types: \
1556 build-debug-x86 \
1557 build-release-x86 \
1558 build-debug-amd64 \
1559 build-release-amd64
[16532]1560
[39785]1561build-release-x86:
1562 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
1563
1564build-debug-x86:
1565 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
1566
1567build-release-amd64:
1568 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
1569
1570build-debug-amd64:
1571 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
1572
1573
[16532]1574#
1575# Aliases for building the SDK.
1576#
1577.NOTPARALLEL: sdk sdk-fetch
1578sdk:
1579 + $(KMK) VBOX_ONLY_SDK=1 \
1580 pass_bldprogs pass_others pass_installs pass_packing
1581
1582sdk-fetch:
[42307]1583 + $(KMK) VBOX_ONLY_SDK=1 -C tools
[16532]1584
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use