VirtualBox

source: vbox/trunk/Makefile.kmk@ 69564

Last change on this file since 69564 was 69517, checked in by vboxsync, 7 years ago

/Makefile.kmk: no logs from scm, please.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 78.6 KB
RevLine 
[2478]1# $Id: Makefile.kmk 69517 2017-10-29 18:19:00Z vboxsync $
2## @file
[1]3# Top level makefile.
4#
[2478]5
[1]6#
[69111]7# Copyright (C) 2006-2017 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#
[51770]24ifndef VBOX_ONLY_ROOT_MAKEFILE
[56347]25 if (defined(VBOX_WITH_DOCS) || defined(VBOX_WITH_MAIN)) \
[56346]26 && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK))
[51770]27 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
28 endif
29 include $(PATH_SUB_CURRENT)/src/Makefile.kmk
[68676]30 ifdef VBOX_WITH_INCLUDE_SYNTAX_CHECKING
31 include $(PATH_SUB_CURRENT)/include/Makefile.kmk
32 endif
[10195]33endif
[1]34
[48584]35#
36# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
37# from the build server), and it's not really worth the effort of dragging in
38#q this tool only if absolutely needed.
39#
40## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
41include $(KBUILD_PATH)/tools/ZIP.kmk
42ifndef TOOL_ZIP_PACK
43 TOOL_ZIP_PACK = zip
44endif
[12243]45
[48584]46
[42276]47## @todo split up this file!
48
49
[15800]50#
51# Clean up global stuff that Config.kmk generates.
52#
53OTHER_CLEAN += \
54 $(VBOX_PACKAGE_HEADER) \
55 $(VBOX_LICENSE_VER_KMK) \
56 $(VBOX_VERSION_MK) \
57 $(VBOX_VERSION_HEADER) \
58 $(VBOX_VERSION_STAMP) \
59 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
60 $(VBOX_SVN_REV_KMK).ts \
[15802]61 $(VBOX_SVN_REV_KMK) \
[47046]62 $(PATH_OUT)/DynamicConfig.kmk
[15800]63
64
[34482]65if !defined(VBOX_ONLY_ADDITIONS) \
66 && !defined(VBOX_ONLY_DOCS) \
67 && !defined(VBOX_ONLY_EXTPACKS) \
[51346]68 && !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
[12576]69
[42276]70 if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
71 #
72 # Install the license (and misc non-executable stuff).
73 #
74 INSTALLS += InstallLicenseFiles
75 InstallLicenseFiles_INST = $(INST_BIN)
76 InstallLicenseFiles_MODE = 0644
77 InstallLicenseFiles_SOURCES =
78 InstallLicenseFiles_SOURCES += \
[13264]79 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
[42276]80 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
[12576]81 endif
82
83
[1]84#
85# Install external binaries (mostly redistributable parts of tools we use).
86#
87# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
88# and .linux property suffixes.
89#
[42276]90INSTALLS += InstallExternalLibs
[1]91
[42276]92InstallExternalLibs_INST = $(INST_BIN)
[1]93
94# The SDL DLLs
[8758]95if1of ($(KBUILD_TARGET), win os2)
[44580]96 ifdef VBOX_WITH_VBOXSDL
[8760]97 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
[42276]98 InstallExternalLibs_SOURCES += \
[51770]99 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
[1]100 ifdef VBOX_WITH_SECURELABEL
[42276]101 InstallExternalLibs_SOURCES += \
[51770]102 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
[1]103 endif
[8758]104 ifeq ($(KBUILD_TARGET),os2)
[42276]105 InstallExternalLibs_SOURCES += \
[1]106 $(DLL_SDK_LIBSDL_FSLIB)
107 endif
108 endif
109endif
110
[3405]111
[1]112# The compiler runtime DLLs.
[8758]113ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
[51770]114 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
115 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
[66834]116 VBOX_VCC_REDIR_BASE := Microsoft.VC$(substr $(VBOX_VCC_TOOL),4,3)
[51770]117 VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
[66834]118 VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).CRT
119 VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).DebugCRT
120 VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/$(VBOX_VCC_REDIR_BASE).CRT
121 VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/$(VBOX_VCC_REDIR_BASE).DebugCRT
[51770]122
123 InstallExternalLibs_SOURCES += \
124 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
125 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
126 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
127 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
[49537]128 ifdef VBOX_WITH_32_ON_64_MAIN_API
129 InstallExternalLibs_SOURCES += \
[59355]130 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
131 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
[49537]132 endif
[42288]133 ifeq ($(VBOX_VCC_CRT_TYPE),d)
[49537]134 InstallExternalLibs_SOURCES += \
[58227]135 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
136 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
137 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
138 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
[49537]139 ifdef VBOX_WITH_32_ON_64_MAIN_API
140 InstallExternalLibs_SOURCES += \
[59355]141 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
142 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
[49537]143 endif
[42221]144 endif
[1]145endif
146
[1648]147#
[12173]148# Install our Qt DLLs / Shared Objects / Frameworks.
[12952]149# Note: The installer fixes the darwin .dylibs when hardening is enabled.
[54680]150# Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
151# https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
152# the Info.plist file goes into Resources.
[12173]153#
[67067]154ifeq ($(KBUILD_TARGET),darwin)
155 include $(KBUILD_PATH)/units/qt5.kmk
156 INSTALLS += qt5-bin
157 qt5-bin_MODE = 755
158 qt5-bin_INST = $(INST_VIRTUALBOX)Contents/
159 qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
160 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/5/$(qtmod) \
161 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/5/Resources/Info.plist)
162 qt5-bin_SOURCES += \
163 $(PATH_SDK_QT5)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \
164 $(PATH_SDK_QT5)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \
165 $(PATH_SDK_QT5)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL)
166 qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
167 Frameworks/$(qtmod).framework/Versions/Current=>5 \
168 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/5/$(qtmod) \
169 Frameworks/$(qtmod).framework/Resources=>Versions/5/Resources)
170else # win x11
171 if1of ($(KBUILD_TARGET), linux solaris)
172 ifndef VBOX_ONLY_BUILD
173 ifneq ($(VBOX_GCC_VERSION_CXX),)
174 ifeq ($(int-ge $(VBOX_GCC_VERSION_CXX),40400),)
175 $(error gcc >= 4.4 required when compiling against Qt5!)
[59509]176 endif
[52609]177 endif
[67067]178 endif
[59509]179 endif
[67067]180 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
[59509]181 include $(KBUILD_PATH)/units/qt5.kmk
[67067]182 ifeq ($(KBUILD_TARGET),win)
183 INSTALLS += qt5-bin
184 qt5-bin_MODE = 755
185 qt5-bin_INST = $(INST_BIN)
186 qt5-bin_SOURCES = \
187 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL)))
188 qt5-bin_SOURCES += \
189 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \
190 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \
191 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL)
192 ifdef VBOX_WITH_QT_PDBS
193 qt5-bin_SOURCES += \
194 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
195 endif # VBOX_WITH_QT_PDBS
196 else # x11
197 INSTALLS += qt5-bin
198 qt5-bin_MODE = 755
199 qt5-bin_INST = $(INST_BIN)
200 ifdef VBOX_WITH_HARDENING
201 # The wildcards are necessary to install the libs instead of the symlinks
202 qt5-bin_SOURCES = \
203 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*)=>lib$(qtmod).so.5) \
204 $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
205 ifneq ($(KBUILD_TARGET),solaris)
206 qt5-bin_SOURCES += \
207 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(wildcard $(VBOX_PATH_QT_LIB)/legacy/$(lib).*.*)=>legacy/$(lib))
208 endif # solaris
209 else # !VBOX_WITH_HARDENING
210 # For non-hardened builds we need to remove the RUNPATH. This stuff is
211 # ugly but we need to prevent kBuild from hard-linking otherwise we
212 # (indirectly) change the binaries in tools
213 ifneq ($(KBUILD_TARGET),solaris)
214 QT5_VERSION = 5.6.1
215 else
[67125]216 QT5_VERSION = 5.6.2
[62313]217 endif
[59509]218 qt5-bin_SOURCES = \
[67067]219 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \
220 $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib))
[62828]221 ifneq ($(KBUILD_TARGET),solaris)
[67067]222 qt5-bin_SOURCES += \
223 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(qt5-bin_0_OUTDIR)/$(lib)=>legacy/$(lib))
224 endif # solaris
[60081]225
[62828]226$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)): \
[67126]227 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt5-bin_0_OUTDIR)/
228 $(call MSG_INST_FILE,$^,$@)
229 $(QUIET)$(CP) $^ $@
230 $(QUIET)chrpath --delete $@
[62472]231
[69134]232 ifn1of ($(KBUILD_TARGET),solaris linux)
[60117]233$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
[67126]234 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
235 $(call MSG_INST_FILE,$^,$@)
236 $(QUIET)$(MKDIR) -p $(@D)
237 $(QUIET)$(CP) $^ $@
238 $(QUIET)chrpath --delete $@
[69134]239 endif # !solaris and !linux
[60081]240
[69134]241 # @todo For solaris and some linuxes dlopen fails to navigate executable rpath to dependent libraries,
[67067]242 # so add explicit rpath for libqxcb.so, find better solution later.
[69134]243 if1of ($(KBUILD_TARGET),solaris linux)
[60690]244$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
[67126]245 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
246 $(call MSG_INST_FILE,$^,$@)
247 $(QUIET)$(MKDIR) -p $(@D)
248 $(QUIET)$(CP) $^ $@
249 $(QUIET)chrpath --replace "\$$ORIGIN/../../" $@
[69134]250 endif # solaris linux
[60690]251
[60117]252$(foreach lib,$(VBOX_QT_LEGACY_LIBS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
[67126]253 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/legacy/% | $$(qt5-bin_0_OUTDIR)/
254 $(call MSG_INST_FILE,$^,$@)
255 $(QUIET)$(CP) $^ $@
256 $(QUIET)chrpath --delete $@
[60093]257
[67067]258 endif # !VBOX_WITH_HARDENING
259 endif # x11
260 endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD
261endif # win x11
[12173]262
[61846]263
[12173]264#
[61846]265# Install additions iso from the build server if configured to do so.
[17250]266#
[61846]267# Note! For building the combined package, just get the additions .ISO
268# once for amd64 to prevent version inconsistences. In all other
269# cases we get the .ISO per target architecture.
[17250]270#
[61846]271if defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
272 && ( !defined(VBOX_WITH_COMBINED_PACKAGE) \
273 || "$(KBUILD_TARGET_ARCH)" == "amd64" )
274 INSTALLS += buildserver-additions
275 buildserver-additions_INST = $(INST_ADDITIONS_ISO)
276 buildserver-additions_MODE = 0644
277 buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
278 buildserver-additions_CLEANS = \
279 $(buildserver-additions_0_OUTDIR)/unpacked.ts \
280 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
281 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
282 $(PATH_TARGET)/VBoxGuestAdditions.iso
[6129]283
[61846]284 $$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
285 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
[45056]286 $(call MSG_L1,Unpacking additions archive)
[68790]287 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
[69094]288 $(TOUCH) -c -- $(PATH_TARGET)/VBoxGuestAdditions.iso
[45056]289 $(APPEND) -t $@ "done"
290
[61846]291 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
[58530]292 $(RM) -f -- "$@" "$@.tmp"
[69376]293 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
[58530]294 $(MV) -f -- "$@.tmp" "$@"
[6129]295
[61846]296endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER unless win.x86+combined
[6129]297
298
299#
[11686]300# Install documentation files (at the moment the .chm) from the build server.
301#
302ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
[13348]303## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
[11686]304INSTALLS += buildserver-docs
305buildserver-docs_INST = $(INST_BIN)
306buildserver-docs_MODE = 0644
[13228]307buildserver-docs_SOURCES = \
[13246]308 $(addprefix $(PATH_TARGET)/, \
[13244]309 VirtualBox.chm UserManual.pdf \
310 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
[13228]311buildserver-docs_CLEANS = \
[21925]312 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
313 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
314 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
[13246]315 $(addprefix $(PATH_TARGET)/, \
[13244]316 VirtualBox.chm UserManual.pdf \
317 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
[11686]318
[21925]319$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
320$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
321 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
[11686]322 $(call MSG_L1,Unpacking documentation)
[68790]323 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
[69094]324 $(TOUCH) -c -- $(PATH_TARGET)/VirtualBox.chm \
325 $(PATH_TARGET)/UserManual.pdf \
[69071]326 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf)
[21925]327 $(APPEND) -t $@ "done"
[11686]328
[21925]329$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
[58530]330 $(RM) -f -- "$@" "$@.tmp"
[69376]331 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
[58530]332 $(MV) -f -- "$@.tmp" "$@"
[11686]333
[13348]334endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
[11686]335
336
[29079]337 ifdef VBOX_WITH_EFI
338 #
339 # Install EFI firmware image
340 #
341 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
342 #
343 # Either from the build server.
344 #
[58529]345 ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
346 include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
[58528]347 endif
[29079]348 INSTALLS += buildserver-efifw
349 buildserver-efifw_INST = $(INST_BIN)
350 buildserver-efifw_MODE = 0644
351 buildserver-efifw_SOURCES = \
[48584]352 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
353 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
[29079]354 buildserver-efifw_CLEANS = \
355 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
[48584]356 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
357 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
[29079]358 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
[58528]359 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
360 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
[23650]361
[58528]362 INSTALLS += buildserver-efifw-dbg-amd64
363 buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
364 buildserver-efifw-dbg-amd64_MODE = 0644
365 buildserver-efifw-dbg-amd64_SOURCES = \
366 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
367
368 INSTALLS += buildserver-efifw-dbg-x86
369 buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
370 buildserver-efifw-dbg-x86_MODE = 0644
371 buildserver-efifw-dbg-x86_SOURCES = \
372 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
373
[29079]374 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
[48584]375 +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
[58528]376 $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
377 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
[29079]378 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
[25706]379 $(call MSG_L1,Unpacking EFI firmware)
[68790]380 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
[58528]381 $(foreach arch, amd64 x86, \
[58533]382 $(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
[58528]383 $(foreach mod,$(VBOX_EFI_MODULES_FLAT) \
[58533]384 ,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
[69094]385 $(TOUCH) -c -- $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
[69071]386 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
[25706]387 $(APPEND) -t $@ "done"
[23656]388
[29079]389 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
390 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
[58528]391 $(RM) -f -- "$@" "$@.tmp"
[69376]392 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
[58528]393 $(MV) -f -- "$@.tmp" "$@"
[23650]394
[29079]395 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
396 #
[58528]397 # Or from the local copy (no debug).
[29079]398 #
399 INSTALLS += local-efifw
400 local-efifw_INST = $(INST_BIN)
401 local-efifw_MODE = 0644
402 local-efifw_SOURCES = \
403 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
404 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
405 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
406 endif # VBOX_WITH_EFI
[23658]407
408
[44272]409ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
[11686]410#
[44272]411# Get the extension pack from from the build server to facility the automatic
412# testing (everything in one tarball (VBoxAll-*)).
413#
414# Note! Using the plural here as we might be downloading more packages eventually.
415#
416INSTALLS += buildserver-extpacks
417buildserver-extpacks_INST = $(INST_DIST)
418buildserver-extpacks_MODE = 0644
419buildserver-extpacks_SOURCES = \
420 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
421buildserver-extpacks_CLEANS = \
422 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
423 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
424
425$$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
426 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
427 $(RM) -f -- "$@.tmp" "$@"
[69376]428 $(SHELL) $(PATH_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING)" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
[44272]429 $(MV) -f -- "$@.tmp" "$@"
[69096]430 $(TOUCH) -- "$@"
[44272]431
432endif
433
434
435#
[4398]436# Install staged binaries on platforms where we can't cross
[1648]437# compile things.
438#
[46035]439ifn1of ($(KBUILD_TARGET), linux win)
[1648]440 VBOX_PATH_STAGED ?= .
441
442 # Additions.
443 ifndef VBOX_WITH_LINUX_ADDITIONS
444 ifndef VBOX_WITH_WIN32_ADDITIONS
445 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
446 INSTALLS += staged-additions
[16957]447 staged-additions_INST = $(INST_ADDITIONS_ISO)
[1648]448 staged-additions_MODE = 0644
449 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
450 endif
451 endif
452 endif
453
454 # guesttool.exe
455 ifndef VBOX_WITH_WIN32_ADDITIONS
456 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
457 INSTALLS += staged-guesttool
458 staged-guesttool_INST = $(INST_BIN)
459 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
460 endif
461 endif
462
463endif
464
[51346]465endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
[1648]466
467
[12780]468ifdef VBOX_ONLY_DOCS
469# It may sound a bit odd, but for preparing the documentation package the
470# doxygen documentation isn't needed and increases the build time a lot.
[12781]471docs:
[12780]472else # !VBOX_ONLY_DOCS
[1]473#
474# Generate documentation.
475# (This should be converted into a separate pass or merged with an existing one later.)
476#
[34609]477 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
[12780]478docs: docs.Core
[34609]479 endif
[11703]480endif # !VBOX_ONLY_DOCS
[1]481
482#
[6288]483# The core (VMM+REM+Devices+Main) documentation.
[1]484#
[6288]485# This includes so much because we wish to have the complete CFGM
486# and GCFGM lists.
487#
[65153]488VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
489BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
[6288]490OTHER_CLEAN += \
[65138]491 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
492 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
[1]493
[10226]494VBOX_CORE_DOXYFILE_INPUT_DIRS = \
[6288]495 include/iprt \
[25647]496 include/iprt/cpp \
[58341]497 include/iprt/crypto \
498 include/iprt/formats \
[25647]499 include/iprt/linux \
[58341]500 include/iprt/nt \
501 include/iprt/solaris \
502 include/iprt/win \
503 include/iprt/nocrt \
[6288]504 include/VBox \
[35350]505 include/VBox/vmm \
[6288]506 include/VBox/com \
[35350]507 include/VBox/ExtPack \
[6288]508 include/VBox/HostServices \
[25647]509 include/VBox/GuestHost \
510 include/VBox/HGSMI \
[6288]511 src/VBox/VMM \
512 src/VBox/VMM/VMMR0 \
[35350]513 src/VBox/VMM/VMMRC \
514 src/VBox/VMM/VMMR3 \
[6288]515 src/VBox/VMM/VMMAll \
516 src/VBox/VMM/VMMSwitcher \
[58127]517 src/VBox/VMM/include \
[6288]518 src/VBox/Debugger \
[10029]519 src/VBox/Devices \
[6288]520 src/VBox/Devices/Audio \
521 src/VBox/Devices/Bus \
522 src/VBox/Devices/Graphics \
523 src/VBox/Devices/Graphics/BIOS \
[58132]524 src/VBox/Devices/Graphics/shaderlib \
[6288]525 src/VBox/Devices/Input \
526 src/VBox/Devices/Networking \
527 src/VBox/Devices/PC \
528 src/VBox/Devices/PC/BIOS \
529 src/VBox/Devices/Parallel \
530 src/VBox/Devices/Serial \
531 src/VBox/Devices/Storage \
532 src/VBox/Devices/USB \
533 src/VBox/Devices/USB/darwin \
534 src/VBox/Devices/USB/linux \
535 src/VBox/Devices/USB/os2 \
536 src/VBox/Devices/USB/solaris \
537 src/VBox/Devices/USB/vrdp \
538 src/VBox/Devices/USB/win32 \
539 src/VBox/Devices/VMMDev \
540 src/VBox/Main/include \
541 src/VBox/Main/include/hgcm \
[10029]542 src/VBox/Main \
[6288]543 src/VBox/Main/glue \
544 src/VBox/Main/webservice \
545 src/VBox/Main/xml \
[35379]546 src/VBox/Main/src-all \
547 src/VBox/Main/src-all/win \
548 src/VBox/Main/src-client \
549 src/VBox/Main/src-client/win \
550 src/VBox/Main/src-client/xpcom \
551 src/VBox/Main/src-server \
552 src/VBox/Main/src-server/darwin \
553 src/VBox/Main/src-server/linux \
554 src/VBox/Main/src-server/os2 \
555 src/VBox/Main/src-server/solaris \
556 src/VBox/Main/src-server/win \
557 src/VBox/Main/src-server/xpcom \
[10029]558 src/VBox/HostServices \
[39687]559 src/VBox/HostServices/DragAndDrop \
560 src/VBox/HostServices/GuestControl \
561 src/VBox/HostServices/GuestProperties \
[6307]562 src/VBox/HostServices/SharedClipboard \
563 src/VBox/HostServices/SharedFolders \
564 src/VBox/HostServices/SharedOpenGL \
[39689]565 src/VBox/HostServices/SharedOpenGL/crserver \
566 src/VBox/HostServices/SharedOpenGL/crserverlib \
567 src/VBox/HostServices/SharedOpenGL/render \
568 src/VBox/HostServices/SharedOpenGL/unpacker \
[39687]569 src/VBox/HostServices/auth \
[39689]570 src/VBox/HostServices/auth/directoryservice \
571 src/VBox/HostServices/auth/pam \
572 src/VBox/HostServices/auth/simple \
573 src/VBox/HostServices/auth/winlogon \
[6307]574 src/VBox/HostDrivers/Support \
575 src/VBox/HostDrivers/Support/darwin \
576 src/VBox/HostDrivers/Support/freebsd \
577 src/VBox/HostDrivers/Support/linux \
578 src/VBox/HostDrivers/Support/os2 \
579 src/VBox/HostDrivers/Support/solaris \
580 src/VBox/HostDrivers/Support/win \
[10029]581 src/VBox/HostDrivers/VBoxNetFlt \
[10020]582 src/VBox/HostDrivers/VBoxNetFlt/darwin \
583 src/VBox/HostDrivers/VBoxNetFlt/linux \
584 src/VBox/HostDrivers/VBoxNetFlt/solaris \
585 src/VBox/HostDrivers/VBoxNetFlt/win \
[10029]586 src/VBox/HostDrivers/VBoxNetNat \
[10020]587 src/VBox/HostDrivers/VBoxNetNat/darwin \
588 src/VBox/HostDrivers/VBoxNetNat/linux \
589 src/VBox/HostDrivers/VBoxNetNat/solaris \
590 src/VBox/HostDrivers/VBoxNetNat/win \
[17850]591 src/VBox/HostDrivers/VBoxNetAdp \
592 src/VBox/HostDrivers/VBoxNetAdp/darwin \
593 src/VBox/HostDrivers/VBoxNetAdp/linux \
594 src/VBox/HostDrivers/VBoxNetAdp/solaris \
595 src/VBox/HostDrivers/VBoxNetAdp/win \
[39687]596 src/VBox/HostDrivers/VBoxPci \
597 src/VBox/HostDrivers/VBoxPci/darwin \
598 src/VBox/HostDrivers/VBoxPci/linux \
599 src/VBox/HostDrivers/VBoxPci/solaris \
600 src/VBox/HostDrivers/VBoxPci/win \
[10029]601 src/VBox/HostDrivers/VBoxUSB \
[6307]602 src/VBox/HostDrivers/VBoxUSB/darwin \
603 src/VBox/HostDrivers/VBoxUSB/os2 \
[10020]604 src/VBox/HostDrivers/VBoxUSB/solaris \
[6307]605 src/VBox/HostDrivers/VBoxUSB/win \
606 src/VBox/HostDrivers/VBoxUSB/win/Device \
607 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
608 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
609 src/VBox/HostDrivers/VBoxUSB/win/Filter \
610 src/VBox/HostDrivers/VBoxUSB/win/Install \
611 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
612 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
613 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
614 src/VBox/HostDrivers/VBoxUSB/win/usbd \
[39687]615 src/VBox/Additions \
[39689]616 src/VBox/Additions/WINNT \
617 src/VBox/Additions/WINNT/Graphics \
618 src/VBox/Additions/WINNT/Graphics/Video \
619 src/VBox/Additions/WINNT/Graphics/Video/common \
620 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
621 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
622 src/VBox/Additions/WINNT/Graphics/Video/disp \
623 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
624 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
625 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
626 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
627 src/VBox/Additions/WINNT/Graphics/Video/mp \
628 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
629 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
630 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
[55708]631 src/VBox/Additions/WINNT/Graphics/Wine_new \
632 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
633 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
634 src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
635 src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
636 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
637 src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
[39689]638 src/VBox/Additions/WINNT/Installer \
639 src/VBox/Additions/WINNT/Installer/ISO \
640 src/VBox/Additions/WINNT/Installer/InstallHelper \
641 src/VBox/Additions/WINNT/Installer/Languages \
642 src/VBox/Additions/WINNT/Installer/Loader \
643 src/VBox/Additions/WINNT/Mouse \
644 src/VBox/Additions/WINNT/Mouse/NT5 \
645 src/VBox/Additions/WINNT/Mouse/common \
646 src/VBox/Additions/WINNT/SharedFolders \
647 src/VBox/Additions/WINNT/SharedFolders/redirector \
648 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
649 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
650 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
651 src/VBox/Additions/WINNT/VBoxCredProv \
652 src/VBox/Additions/WINNT/VBoxGINA \
653 src/VBox/Additions/WINNT/VBoxHook \
654 src/VBox/Additions/WINNT/VBoxTray \
655 src/VBox/Additions/WINNT/VBoxUSB \
656 src/VBox/Additions/WINNT/i8042prt \
657 src/VBox/Additions/WINNT/i8042prt/i386 \
658 src/VBox/Additions/WINNT/i8042prt/include \
659 src/VBox/Additions/WINNT/include \
[39687]660 src/VBox/Additions/common \
[39689]661 src/VBox/Additions/common/VBoxControl \
[39687]662 src/VBox/Additions/common/VBoxGuest \
[39689]663 src/VBox/Additions/common/VBoxGuest/freebsd \
664 src/VBox/Additions/common/VBoxGuest/linux \
665 src/VBox/Additions/common/VBoxGuest/win \
[39687]666 src/VBox/Additions/common/VBoxGuestLib \
667 src/VBox/Additions/common/VBoxService \
668 src/VBox/Additions/common/VBoxVideo \
669 src/VBox/Additions/common/crOpenGL \
[39689]670 src/VBox/Additions/common/crOpenGL/array \
671 src/VBox/Additions/common/crOpenGL/feedback \
672 src/VBox/Additions/common/crOpenGL/pack \
673 src/VBox/Additions/common/crOpenGL/passthrough \
[39687]674 src/VBox/Additions/common/pam \
[39689]675 src/VBox/Additions/darwin \
676 src/VBox/Additions/freebsd \
677 src/VBox/Additions/freebsd/Installer \
678 src/VBox/Additions/freebsd/drm \
679 src/VBox/Additions/freebsd/vboxvfs \
680 src/VBox/Additions/linux \
681 src/VBox/Additions/linux/drm \
682 src/VBox/Additions/linux/installer \
683 src/VBox/Additions/linux/selinux-fedora \
684 src/VBox/Additions/linux/sharedfolders \
685 src/VBox/Additions/os2 \
686 src/VBox/Additions/os2/VBoxGradd \
687 src/VBox/Additions/os2/VBoxGradd/graddlib \
688 src/VBox/Additions/os2/VBoxGrext \
689 src/VBox/Additions/os2/VBoxMouse \
690 src/VBox/Additions/os2/VBoxSF \
691 src/VBox/Additions/solaris \
692 src/VBox/Additions/solaris/DRM \
693 src/VBox/Additions/solaris/Installer \
694 src/VBox/Additions/solaris/SharedFolders \
695 src/VBox/Additions/solaris/SharedFolders/solaris10 \
696 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
697 src/VBox/Additions/solaris/Virtio \
698 src/VBox/Additions/x11 \
699 src/VBox/Additions/x11/Installer \
700 src/VBox/Additions/x11/VBoxClient \
701 src/VBox/Additions/x11/vboxmouse \
702 src/VBox/Additions/x11/vboxmouse/xorg70 \
703 src/VBox/Additions/x11/vboxmouse/xorg71 \
704 src/VBox/Additions/x11/vboxvideo \
[39688]705 src/VBox/NetworkServices \
706 src/VBox/NetworkServices/DHCP \
707 src/VBox/NetworkServices/NAT \
708 src/VBox/NetworkServices/NetLib \
[58167]709 src/VBox/Storage \
710 src/VBox/ValidationKit/ \
711 src/VBox/ValidationKit/docs/ \
712 src/VBox/ValidationKit/testdriver/ \
713 src/VBox/ValidationKit/bootsectors/ \
[58629]714 src/VBox/ValidationKit/bootsectors/bs3kit/ \
[58167]715 src/VBox/ValidationKit/tests/ \
716 src/VBox/ValidationKit/tests/additions/ \
717 src/VBox/ValidationKit/tests/api/ \
718 src/VBox/ValidationKit/tests/autostart/ \
719 src/VBox/ValidationKit/tests/benchmarks/ \
720 src/VBox/ValidationKit/tests/cpu/ \
721 src/VBox/ValidationKit/tests/installation/ \
722 src/VBox/ValidationKit/tests/network/ \
723 src/VBox/ValidationKit/tests/selftests/ \
724 src/VBox/ValidationKit/tests/smoketests/ \
725 src/VBox/ValidationKit/tests/storage/ \
726 src/VBox/ValidationKit/tests/teleportation/ \
727 src/VBox/ValidationKit/tests/unittests/ \
728 src/VBox/ValidationKit/tests/usb/ \
729 src/VBox/ValidationKit/common/ \
730 src/VBox/ValidationKit/utils/ \
731 src/VBox/ValidationKit/utils/TestExecServ/ \
732 src/VBox/ValidationKit/utils/cpu/ \
733 src/VBox/ValidationKit/utils/misc/ \
734 src/VBox/ValidationKit/utils/network/ \
735 src/VBox/ValidationKit/utils/nt/ \
736 src/VBox/ValidationKit/utils/usb/ \
737 src/VBox/ValidationKit/vms/ \
738 src/VBox/ValidationKit/testmanager/ \
739 src/VBox/ValidationKit/testmanager/core/ \
740 src/VBox/ValidationKit/testmanager/db/ \
741 src/VBox/ValidationKit/testmanager/debug/ \
742 src/VBox/ValidationKit/testmanager/cgi/ \
743 src/VBox/ValidationKit/testmanager/webui/ \
744 src/VBox/ValidationKit/testboxscript/ \
[6288]745
746# These must come first in order to make things look nice.
[10226]747VBOX_CORE_DOXYFILE_INPUT_FIRST =\
[6288]748 $(PATH_ROOT)/doc/VBox-doc.c \
749 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
[19010]750 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
[35350]751 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
752 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
[6288]753 $(PATH_ROOT)/include/VBox/cdefs.h \
[58114]754 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
[35350]755 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
756 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
757 $(PATH_ROOT)/include/VBox/vmm/mm.h \
758 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
759 $(PATH_ROOT)/include/VBox/vmm/selm.h \
760 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
761 $(PATH_ROOT)/include/VBox/vmm/patm.h \
762 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
763 $(PATH_ROOT)/include/VBox/vmm/stam.h \
764 $(PATH_ROOT)/include/VBox/vmm/em.h \
[58127]765 $(PATH_ROOT)/include/VBox/vmm/hm.h \
766 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
767 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
768 $(PATH_ROOT)/include/VBox/vmm/iem.h \
[35350]769 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
770 $(PATH_ROOT)/include/VBox/vmm/rem.h \
771 $(PATH_ROOT)/include/VBox/vmm/iom.h \
772 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
[58127]773 $(PATH_ROOT)/include/VBox/vmm/gim.h \
[35350]774 $(PATH_ROOT)/include/VBox/vmm/tm.h \
775 $(PATH_ROOT)/include/VBox/vmm/csam.h \
776 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
[10029]777 \
[35338]778 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
779 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
780 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
781 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
[43387]782 $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
[58127]783 $(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
[35338]784 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
785 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
786 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
787 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
[58127]788 $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
[35350]789 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
790 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
[35338]791 $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
792 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
793 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
794 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
795 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
796 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
797 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
798 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
[10029]799 \
[35350]800 $(PATH_ROOT)/include/VBox/vmm/vm.h \
[6288]801 \
802 $(PATH_ROOT)/include/VBox/sup.h \
[33573]803 $(PATH_ROOT)/include/VBox/vd.h \
[6288]804 $(PATH_ROOT)/include/VBox/types.h \
805 $(PATH_ROOT)/include/VBox/err.h \
[35350]806 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
[6288]807 $(PATH_ROOT)/include/VBox/dbggui.h \
808 $(PATH_ROOT)/include/VBox/dis.h \
809 $(PATH_ROOT)/include/VBox/disopcode.h \
810 $(PATH_ROOT)/include/VBox/intnet.h \
811 $(PATH_ROOT)/include/VBox/settings.h \
812 $(PATH_ROOT)/include/VBox/pci.h \
813 $(PATH_ROOT)/include/VBox/scsi.h \
814 $(PATH_ROOT)/include/VBox/shflsvc.h \
815 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
816 $(PATH_ROOT)/include/VBox/usb.h \
817 $(PATH_ROOT)/include/VBox/vusb.h \
[10029]818 \
[6288]819 $(PATH_ROOT)/include/VBox/log.h \
820 $(PATH_ROOT)/include/VBox/param.h \
[58114]821 $(PATH_ROOT)/include/VBox/version.h \
822 \
823 $(PATH_ROOT)/include/VBox/com/com.h
[6288]824
[10226]825VBOX_CORE_DOXYFILE_INPUT := \
826 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
[58167]827 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
828 , $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
[10226]829VBOX_CORE_DOXYFILE_INPUT := \
830 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
[65153]831 $(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)))
[6288]832
833# And some some additional stuff.
[10226]834VBOX_CORE_DOXYFILE_INPUT += \
[6288]835 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
836 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
837
[65153]838includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
[6288]839
840# Generate the Doxyfile
[65138]841$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
[65153]842 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
843 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
[16532]844 | $$(dir $$@)
[65138]845 $(QUIET)$(RM) -f $@ $@.tmp $@.dep
[58127]846 $(QUIET)$(CP) -f Doxyfile.Core $@.tmp
847 $(QUIET)$(APPEND) $@.tmp
848 $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
849 $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
850 $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
851 $(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
[58144]852 $(QUIET)$(APPEND) $@.tmp "EXCLUDE = " \
853 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
854 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
855 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
856 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
857 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
[58127]858 $(QUIET)$(APPEND) $@.tmp
[58144]859 $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
[58127]860 $(QUIET)$(APPEND) $@.tmp
861 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
862 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
863 $(QUIET)$(APPEND) $@.tmp
864 $(QUIET)$(MV) -f $@.tmp $@
[65153]865 @$(APPEND) $@.dep "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
866 @$(APPEND) $@.dep "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
[6288]867
868# Do the actual job.
[65153]869$(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
870 | $(VBOX_CORE_DOXYFILE_OUTPUT)/
871 $(QUIET)$(RM) -f $@
872 $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
[65138]873 doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
[58144]874 $(SED) -n \
[65127]875 -e ':nextwarning' \
[58147]876 -e '/^ *$(DOLLAR)/d' \
[65426]877 -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
878 -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
[58167]879 -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
880 -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
[64250]881 -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
[58167]882 -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
[58341]883 \
884 -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
885 \
[58144]886 -e 'b end' \
887 -e ':ignore' \
888 -e 'n' \
889 -e '/^[[:space:]]/b ignore' \
890 -e '/^Possible candidates/b ignore' \
[65081]891 -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
[58144]892 -e 'b nextwarning' \
893 -e ':end' \
894 -e 'p' \
895 --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
[65127]896 $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
[58148]897 $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
898 $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
[65153]899 $(APPEND) $@
[1]900
[65153]901docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
[6288]902
[69508]903#
904# This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
905# so the build box output is less confusing on failure.
906#
907ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
908 ifdef VBOX_WITH_SCM_CHECK_RUN
909 docs: scm.check.run
910 endif
911 .PHONY: scm.check.run
[69514]912 scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
[69517]913 $(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" -- \
914 $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
[69508]915endif
[65153]916
[69508]917
[27014]918#
[51346]919# Alias for kmk_time. Used by both the additions and validation kit build setups.
[27014]920#
921VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
[1]922
[34637]923#
[34648]924# Common rsync bits.
[34637]925#
[34639]926
927##
[34648]928# The basic rsync invocation for syncing the tree into a VM; the source and
929# target specs are missing.
930#
[34639]931# @param 1 os name.
[34648]932# @param 2 arch or *.
933#
[34649]934VBOX_RSYNC_IN_FN = rsync -a -v --delete --delete-excluded --prune-empty-dirs \
[40343]935 --exclude=*.pyc \
[40332]936 --exclude=.svn/ \
937 --exclude=doc/Devices/ \
938 --exclude=doc/tg/ \
939 --exclude=doc/vp/ \
940 --exclude=tinderclient.log \
941 --exclude=tools/FetchDir/ \
942 --exclude=webtools/ \
[34640]943 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
[40332]944 --exclude=tools/$(os).x86/ \
945 --exclude=tools/$(os).amd64/ \
946 --exclude=out/$(os).amd64/ \
947 --exclude=out/$(os).x86/ \
[34651]948 ,$(select \
[40332]949 "$(2)" == "x86" , --exclude=out/$(os).amd64/$(KBUILD_TYPE)/, \
950 "$(2)" == "amd64", --exclude=out/$(os).x86/$(KBUILD_TYPE)/) \
[34651]951 ))
[27014]952
[1]953#
[40327]954# VM IP addresses.
955#
[52628]956VBOX_BLD_VM_LNX_IP := 192.168.27.2
[40336]957VBOX_BLD_VM_OS2_IP := 192.168.27.3
958VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
959VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
960VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
961VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
962VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
963VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
964VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
[40327]965
[40328]966VBOX_WITH_OS2_ADD_BUILD=1
[40327]967
968#
[40346]969# For profiling the VM building steps.
970#
971if 0
972 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
973 VBOX_BLD_VM_MSG_END__ =
974else
[52587]975 VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Start building $1.
[40347]976 VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
[40346]977endif
978
979#
[6052]980# Build the additions, all of them.
981#
[6129]982# This is currently tailored (hardcoded) for the additions
[6052]983# build box. Can make it pretty and configurable later.
984#
985# The fetching must be done in serial fashion, while the building
986# should be more flexible wrt to -jN.
987#
988additions-fetch:
[27076]989 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
990 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
991 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
[40315]992ifdef VBOX_WITH_OS2_ADD_BUILD
993 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
994endif
[27076]995 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
996 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
997 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
998 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
[5957]999
[6052]1000
[12337]1001## @todo Currently combined solaris additions building assumes that amd64 is
[16043]1002# built first. The windows amd64 additions need some x86 files, so don't change
[25220]1003# the order of the windows builds. TODO: Split building and packing for these two VMs.
[6052]1004additions-build: \
[40339]1005 additions-build-rsync-into-vms \
[40346]1006 additions-build-win.x86 \
1007 additions-build-win.amd64 \
[25222]1008 additions-build-solaris.amd64 \
1009 additions-build-solaris.x86 \
[6052]1010 additions-build-os2.x86 \
[52628]1011 additions-build-linux
[6052]1012
[40339]1013additions-build-rsync-into-vms: \
1014 additions-build-solaris.rsync-into-vm \
[52628]1015 additions-build-os2.rsync-into-vm \
1016 additions-build-linux.rsync-into-vm
[40339]1017 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
[52584]1018.NOTPARALLEL: additions-build-rsync-into-vms
[52852]1019.PHONY: additions-build-rsync-into-vms
[40339]1020
1021
[10161]1022VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1023 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1024 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
[25209]1025 VBOX_SVN_REV=$(VBOX_SVN_REV)
[10161]1026
[8762]1027VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1028 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1029 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
[25209]1030 VBOX_SVN_REV=$(VBOX_SVN_REV)
[6052]1031
[12833]1032# Automatically determine the additions build subdir name. Used for figuring
1033# out directory names inside the additions building VMs.
1034VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1035
[25225]1036# When building in parallel on a Windows host, make sure we finish the host
1037# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1038ifeq ($(KBUILD_TARGET),win)
[45643]1039VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
[25225]1040else
1041VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
1042endif
1043
[25220]1044# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
[25221]1045additions-build-win.amd64: additions-build-win.x86
[10161]1046ifeq ($(KBUILD_TARGET),win)
[25209]1047 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1048 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
[10161]1049else
[52628]1050 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
[40336]1051 $(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 "
[52628]1052 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
[10161]1053endif
1054
[6052]1055additions-build-win.x86:
[8758]1056ifeq ($(KBUILD_TARGET),win)
[25209]1057 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1058 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
[6052]1059else
[52628]1060 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
[40336]1061 $(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"
[52628]1062 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
[6052]1063endif
[6129]1064
[25221]1065# ASSUMES the 64-bit edition are built first. This also serializes VM access.
1066ifeq ($(KBUILD_TARGET),solaris)
[10161]1067additions-build-solaris.amd64:
[25209]1068 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1069 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
[25221]1070
1071additions-build-solaris.x86: additions-build-solaris.amd64
1072 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
1073 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
1074
[40339]1075additions-build-solaris.rsync-into-vm:
[10161]1076else
[40339]1077additions-build-solaris.rsync-into-vm:
[40340]1078 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
[40338]1079 '--exclude=src/VBox/Additions/WINNT/**' \
1080 '--exclude=src/VBox/Frontends/**' \
1081 '--exclude=src/VBox/VMM/**' \
1082 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
[25221]1083
[25683]1084additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
[52628]1085 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
[40335]1086 $(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"
[52628]1087 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
1088 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
[40335]1089 $(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"
[52628]1090 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
[25221]1091
[25222]1092additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
[40335]1093 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1094 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
[25222]1095
[52853]1096.NOTPARALLEL: additions-build-solaris.rsync-into-vm
[40337]1097.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
[25222]1098
1099additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
[40339]1100additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
[8032]1101endif
[6052]1102
[40328]1103ifdef VBOX_WITH_OS2_ADD_BUILD
[40315]1104 ifeq ($(KBUILD_TARGET),os2)
[6052]1105additions-build-os2.x86:
[40315]1106 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1107 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
[40339]1108
1109additions-build-os2.rsync-into-vm:
[40315]1110 else
[40339]1111additions-build-os2.rsync-into-vm:
[40332]1112 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
1113 '--exclude=src/VBox/Additions/x11/**' \
1114 '--exclude=src/VBox/Additions/WINNT/**' \
1115 '--exclude=src/VBox/Frontends/**' \
1116 '--exclude=src/VBox/VMM/**' \
[40331]1117 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
[6052]1118
[40315]1119additions-build-os2.build-it: additions-build-os2.rsync-into-vm
[52628]1120 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
[40333]1121 $(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"
[52628]1122 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
[40315]1123
1124additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
[40334]1125 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
[40315]1126
[52853]1127.NOTPARALLEL: additions-build-os2.rsync-into-vm
[40337]1128.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
[40315]1129
1130additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
1131 endif
1132#
1133else
1134additions-build-os2.x86:
1135# Dummy
1136endif
1137
[52628]1138ifeq ($(KBUILD_TARGET),linux)
1139additions-build-linux.amd64:
[25209]1140 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
[31139]1141 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
[52628]1142
1143additions-build-linux.x86:
1144 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1145 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1146
1147additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1148 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1149 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
[10161]1150else
[52628]1151additions-build-linux.rsync-into-vm:
1152 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1153 '--exclude=src/VBox/Additions/WINNT/**' \
1154 '--exclude=src/VBox/Frontends/**' \
1155 '--exclude=src/VBox/VMM/**' \
1156 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1157
1158additions-build-linux.build-it: additions-build-linux.rsync-into-vm
[44075]1159 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
[45466]1160 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
[52628]1161 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_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/linux.amd64/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
[45466]1162 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
[44062]1163 endif
[52628]1164 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1165 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && dchroot -c debian-4.0-amd64 \"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)\""'
1166 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
[44075]1167 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
[45466]1168 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
[52628]1169 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 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/linux.x86/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
[45466]1170 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
[44067]1171 endif
[52628]1172 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1173 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING)\""'
1174 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1175 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1176 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1\""'
1177 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
[31139]1178
[52628]1179additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1180 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1181 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1182
[52853]1183.NOTPARALLEL: additions-build-linux.rsync-into-vm
[52628]1184.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1185
1186additions-build-linux: additions-build-linux.rsync-out-of-vm
[6052]1187endif
1188
1189additions-packing:
1190 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
[9641]1191 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
[9643]1192 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
[31139]1193 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
[6052]1194 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
[31150]1195 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
[40327]1196 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
[12337]1197 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
[8058]1198 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
[12337]1199 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
[11898]1200 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
[9641]1201 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
[6052]1202 -C src/VBox/Additions \
[45059]1203 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
[6052]1204
[25221]1205.PHONY: \
1206 additions-build-win.x86 \
1207 additions-build-win.amd64 \
1208 additions-build-solaris.amd64 \
1209 additions-build-solaris.x86 \
1210 additions-build-os2.x86 \
[52628]1211 additions-build-linux \
[25221]1212 additions-build-linux.amd64 \
1213 additions-build-linux.x86 \
[31139]1214 additions-build-linux.x86.combined \
[25221]1215 additions-packing
[12804]1216
1217
1218#
[34482]1219# Build the extension packs, all of them.
1220#
1221# This is tailored (hardcoded) for the extension pack build box.
1222#
1223# The fetching must be done in serial fashion, while the building should be
1224# more flexible wrt to -jN.
1225#
1226extpacks-fetch:
1227 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
[34620]1228 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1229 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
[34482]1230# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1231# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1232 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1233 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1234# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1235 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1236 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1237 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1238
1239
1240extpacks-build: \
[34625]1241 extpacks-build-win.amd64 \
1242 extpacks-build-win.x86 \
[34482]1243 extpacks-build-solaris.amd64 \
[34625]1244 extpacks-build-os2.x86 \
[52628]1245 extpacks-build-linux \
[34620]1246 extpacks-build-darwin.amd64 \
[34625]1247 extpacks-build-freebsd.amd64 \
1248 extpacks-build-freebsd.x86
[34482]1249
1250VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1251 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1252 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1253 VBOX_SVN_REV=$(VBOX_SVN_REV)
1254
1255VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1256 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1257 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1258 VBOX_SVN_REV=$(VBOX_SVN_REV)
1259
1260# Automatically determine the extpack build subdir name. Used for figuring out
1261# directory names inside the extension pack building VMs.
1262VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1263
1264# When building in parallel on a Windows host, make sure we finish the host
1265# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1266ifeq ($(KBUILD_TARGET),win)
1267VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1268else
1269VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1270endif
1271
1272extpacks-build-win.amd64:
1273ifeq ($(KBUILD_TARGET),win)
1274 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1275else
[40346]1276 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
[40336]1277 $(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]1278 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
[34482]1279endif
1280
1281extpacks-build-win.x86:
1282ifeq ($(KBUILD_TARGET),win)
1283 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1284else
[40346]1285 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
[40336]1286 $(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]1287 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
[34482]1288endif
1289
1290ifeq ($(KBUILD_TARGET),solaris)
1291extpacks-build-solaris.amd64:
1292 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1293
1294else
1295# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1296extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
[40335]1297 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
[34482]1298
1299extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
[40346]1300 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
[40335]1301 $(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]1302 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
[34482]1303
1304extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
[40335]1305 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
[34482]1306
[52628]1307#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
[34482]1308.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1309
1310extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1311endif
1312
1313extpacks-build-os2.x86:
1314#ifeq ($(KBUILD_TARGET),os2)
1315# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1316#else
[40327]1317# $(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]1318#endif
1319
[52628]1320ifeq ($(KBUILD_TARGET),linux)
[34482]1321extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1322 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1323
1324extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1325 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
[52628]1326
1327extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
[34482]1328else
[52628]1329# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1330extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1331 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1332
1333extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1334 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
[52851]1335 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all\""'
[52628]1336 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
[40346]1337 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
[52851]1338 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c debian-4.0-i386 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all\""'
[40346]1339 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
[52628]1340
1341extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1342 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1343 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1344
1345#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1346.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1347
1348extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
[34482]1349endif
1350
1351extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
[34625]1352#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1353# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1354#else
[40346]1355# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
[40336]1356# $(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]1357# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
[34625]1358#endif
[34482]1359
1360extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
[34625]1361#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1362# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1363#else
[40346]1364# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
[40336]1365# $(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]1366# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
[34625]1367#endif
[34482]1368
1369extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1370ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1371 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1372else
[40346]1373 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
[40336]1374 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1375 $(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"
1376 $(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]1377 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
[34482]1378endif
1379
1380extpacks-packing:
[34484]1381 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
[57155]1382 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
[34484]1383 packing
[34622]1384# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
[34482]1385
1386.PHONY: \
1387 extpacks-build-win.x86 \
1388 extpacks-build-win.amd64 \
1389 extpacks-build-solaris.amd64 \
1390 extpacks-build-os2.x86 \
[52628]1391 extpacks-build-linux \
[34482]1392 extpacks-build-linux.amd64 \
1393 extpacks-build-linux.x86 \
1394 extpacks-build-freebsd.amd64 \
1395 extpacks-build-freebsd.x86 \
1396 extpacks-build-darwin.amd64 \
1397 extpacks-packing
1398
1399
1400#
[27014]1401# Build the test suite, all of it.
1402#
1403# This is currently tailored (hardcoded) for the additions build box just like
1404# the additions build above, which it in fact is a copy of.
1405#
[51346]1406validationkit-fetch:
1407 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1408 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1409 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1410# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1411# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1412 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1413 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1414 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1415 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1416 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1417 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1418 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
[27014]1419
1420
[51346]1421validationkit-build: \
1422 validationkit-build-rsync-into-vms \
1423 validationkit-build-solaris.amd64 \
1424 validationkit-build-solaris.x86 \
1425 validationkit-build-win.x86 \
1426 validationkit-build-win.amd64 \
1427 validationkit-build-os2.x86 \
[52851]1428 validationkit-build-linux \
[51346]1429 validationkit-build-freebsd.amd64 \
1430 validationkit-build-freebsd.x86 \
1431 validationkit-build-darwin.amd64 \
1432 validationkit-build-darwin.x86
[48962]1433
[51346]1434validationkit-build-rsync-into-vms: \
1435 validationkit-build-solaris.rsync-into-vm \
[52851]1436 validationkit-build-os2.rsync-into-vm \
1437 validationkit-build-linux.rsync-into-vm
[44428]1438 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
[51346]1439.NOTPARALLEL: validationkit-build-rsync-into-vms
[52852]1440.PHONY: validationkit-build-rsync-into-vms
[27014]1441
[48962]1442
[51346]1443VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
[27014]1444 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1445 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1446 VBOX_SVN_REV=$(VBOX_SVN_REV)
1447
[51346]1448VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
[27014]1449 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1450 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1451 VBOX_SVN_REV=$(VBOX_SVN_REV)
1452
[51346]1453# Automatically determine the Validation Kit build subdir name. Used for figuring
[27014]1454# out directory names inside the test suite building VMs.
[51346]1455VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
[27014]1456
1457# When building in parallel on a Windows host, make sure we finish the host
1458# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1459ifeq ($(KBUILD_TARGET),win)
[51346]1460VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
[27014]1461else
[51346]1462VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
[27014]1463endif
1464
1465# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
[51346]1466validationkit-build-win.amd64: validationkit-build-win.x86
[27014]1467ifeq ($(KBUILD_TARGET),win)
[51346]1468 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[27014]1469else
[51346]1470 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1471 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_X86_IP) " echo $@ && cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all "
1472 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
[27014]1473endif
1474
[51346]1475validationkit-build-win.x86:
[27014]1476ifeq ($(KBUILD_TARGET),win)
[51346]1477 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[27014]1478else
[51346]1479 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1480 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) " echo $@ && cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
1481 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
[27014]1482endif
1483
1484ifeq ($(KBUILD_TARGET),solaris)
[51346]1485validationkit-build-solaris.amd64:
1486 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[27014]1487
[51346]1488validationkit-build-solaris.x86:
1489 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[27014]1490
1491else
[51346]1492validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
[52852]1493 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
[52854]1494 '--exclude=src/VBox/Additions/WINNT/**' \
[52852]1495 '--exclude=src/VBox/Frontends/**' \
1496 '--exclude=src/VBox/VMM/**' \
1497 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
[27014]1498
[51346]1499validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1500 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1501 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
1502 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1503 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1504 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_SOLARIS_IP) " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all "
1505 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
[27014]1506
[51346]1507validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1508 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1509 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
[27014]1510
[51346]1511.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
[27014]1512
[51346]1513validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1514validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
[27014]1515endif
1516
[44428]1517ifeq ($(KBUILD_TARGET),os2)
[51346]1518validationkit-build-os2.x86:
1519 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1520validationkit-build-os2.rsync-into-vm:
[44428]1521else # !OS/2
[51346]1522validationkit-build-os2.rsync-into-vm:
[44428]1523 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
[52854]1524 '--exclude=src/VBox/Additions/x11/**' \
1525 '--exclude=src/VBox/Additions/WINNT/**' \
[44428]1526 '--exclude=src/VBox/Frontends/**' \
1527 '--exclude=src/VBox/VMM/**' \
[51346]1528 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
[27014]1529
[51346]1530validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1531 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
[52648]1532 $(VBOX_KMK_TIME) rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
[51346]1533 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
[44428]1534
[51346]1535validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1536 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
[44428]1537
[51346]1538.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
[44428]1539
[51346]1540validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
[44428]1541endif # !OS/2
1542
[52851]1543ifeq ($(KBUILD_TARGET),linux)
1544validationkit-build-linux.amd64:
[51346]1545 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[52851]1546
1547validationkit-build-linux.x86:
1548 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1549
1550validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
[27014]1551else
[52851]1552validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
[52855]1553 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
[52854]1554 '--exclude=src/VBox/Additions/WINNT/**' \
[52852]1555 '--exclude=src/VBox/Frontends/**' \
1556 '--exclude=src/VBox/VMM/**' \
1557 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
[52851]1558
1559validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
[51346]1560 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
[52851]1561 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all\""'
[51346]1562 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1563 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
[52851]1564 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all\""'
[51346]1565 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
[52851]1566
1567validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1568 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1569 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1570
1571.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1572
1573validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
[27014]1574endif
1575
[51346]1576validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
[34625]1577#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
[51346]1578# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[34625]1579#else
[51346]1580# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1581# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
1582# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
[34625]1583#endif
[27014]1584
[51346]1585validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
[34625]1586#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
[51346]1587# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[34625]1588#else
[51346]1589# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1590# $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_FBSD_X86_IP) " echo $@ && cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
1591# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
[34625]1592#endif
1593
[51346]1594validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
[34625]1595ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
[51346]1596 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[34625]1597else
[51346]1598 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
[52757]1599 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
[51346]1600 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all"
[52757]1601 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
[51346]1602 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
[34625]1603endif
1604
[51346]1605validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
[34625]1606ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
[51346]1607 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
[34625]1608else
[51346]1609 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
[52757]1610 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
[51346]1611 $(VBOX_KMK_TIME) ssh vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
[52757]1612 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
[51346]1613 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
[34625]1614endif
1615
1616
[51346]1617validationkit-packing:
1618 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1619 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1620 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1621 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1622 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1623 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1624 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1625 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1626 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1627 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1628 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1629 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
[51348]1630 -C src/VBox/ValidationKit \
[51368]1631 $(PATH_OUT)/VBoxValidationKit.zip \
[43633]1632 $(PATH_OUT)/VBoxTestBoxScript.zip
[27014]1633
1634.PHONY: \
[51346]1635 validationkit-build-win.x86 \
1636 validationkit-build-win.amd64 \
1637 validationkit-build-solaris.amd64 \
1638 validationkit-build-solaris.x86 \
1639 validationkit-build-os2.x86 \
[52851]1640 validationkit-build-linux \
[51346]1641 validationkit-build-linux.amd64 \
1642 validationkit-build-linux.x86 \
1643 validationkit-build-freebsd.amd64 \
1644 validationkit-build-freebsd.x86 \
1645 validationkit-build-darwin.amd64 \
1646 validationkit-build-darwin.x86 \
1647 validationkit-packing
[27014]1648
1649
1650#
[23618]1651# Build the EFI firmware, all of it.
1652#
1653efi-fetch:
[48584]1654 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
[23618]1655
1656efi-build: $(VBOX_VERSION_HEADER)
[58495]1657 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
[23618]1658
1659efi-packing:
[58528]1660 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
[23618]1661
[58528]1662
[23618]1663#
[19162]1664# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1665# - includes kBuild
[19594]1666# - must be executed on an PUEL checkout
[19162]1667#
1668
1669# the path where to store the zip archive
1670ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1671# the root directory inside the zip archive
1672ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1673# the name of the zip archive
1674ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1675snapshot-puel:
1676 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
[31889]1677 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
[19162]1678 echo; \
[31889]1679 echo "Did not find RDP stuff, is this an OSE branch?"; \
[19162]1680 echo; \
1681 exit 1; \
1682 fi
[19163]1683 @if [ -z "$(PASSWORD)" ]; then \
[19162]1684 echo; \
1685 echo "Please specify a password with PASSWORD=..."; \
1686 echo; \
1687 exit 1; \
1688 fi
1689 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1690 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
[19683]1691 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
[19162]1692 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1693 $(QUIET)(cd $(ZIPPATH); 7z a \
1694 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1695 -xr!.svn \
[19683]1696 -i!$(ZIPROOT)/Config.kmk \
1697 -i!$(ZIPROOT)/Doxyfile.Core \
1698 -i!$(ZIPROOT)/Makefile.kmk \
1699 -i!$(ZIPROOT)/configure \
1700 -i!$(ZIPROOT)/configure.vbs \
1701 -i!$(ZIPROOT)/doc \
1702 -i!$(ZIPROOT)/include \
1703 -i!$(ZIPROOT)/kBuild \
1704 -i!$(ZIPROOT)/src \
1705 -i!$(ZIPROOT)/tools/env.sh \
1706 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1707 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
[19162]1708 -x!$(ZIPROOT)/doc/Devices \
1709 -x!$(ZIPROOT)/doc/\*pdf \
1710 -x!$(ZIPROOT)/doc/VMM \
1711 -x!$(ZIPROOT)/doc/licenses_old \
1712 -x!$(ZIPROOT)/doc/manual/de_DE \
1713 -x!$(ZIPROOT)/doc/manual/fr_FR \
1714 -x!$(ZIPROOT)/src/tests \
[23030]1715 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
[19162]1716 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1717 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1718 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1719 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1720 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
[19683]1721 $(ZIPPATH)/$(ZIPNAME))
[19162]1722 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1723
1724
1725#
[16532]1726# Generate ALL the rules.
1727#
[41477]1728include $(FILE_KBUILD_SUB_FOOTER)
[16532]1729
1730
1731#
1732# Generate x86.mac and err.mac.
1733#
1734incs:
[30724]1735 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
[16532]1736 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
[30724]1737 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
[37955]1738 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
[40138]1739 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
[34113]1740 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
[66149]1741 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
[30724]1742 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1743 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
[16532]1744
1745
1746#
[39396]1747# Legacy.
[16532]1748#
[39396]1749vslick.h:
1750 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1751 exit 1
[16532]1752
1753
1754#
1755# Add fetching of the tools to the 'up[date][2]' targets.
1756#
1757up update up2 update2::
1758ifndef VBOX_OSE
1759 +$(MAKE) -C tools fetch
1760else
1761 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1762endif
1763
1764
1765
1766#
1767# Aliases for building the SDK.
1768#
1769.NOTPARALLEL: sdk sdk-fetch
1770sdk:
1771 + $(KMK) VBOX_ONLY_SDK=1 \
1772 pass_bldprogs pass_others pass_installs pass_packing
1773
1774sdk-fetch:
[42307]1775 + $(KMK) VBOX_ONLY_SDK=1 -C tools
[16532]1776
[66918]1777
1778#
1779# Build the essentials to run a VM. Incomplete. Use with care!
1780#
1781quick: \
1782 VBoxRT \
1783 VBoxVMM \
1784 VMMR0 \
1785 VBoxDD \
1786 VBoxDDR0 \
1787 VBoxDD2 \
1788 VBoxDD2R0 \
1789 VBoxC \
1790 VBoxSVC \
1791 $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
1792 $(if-expr defined(VBOX_WITH_REM),VBoxREM,) \
1793 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
1794 $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
1795 $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
1796
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use