VirtualBox

source: vbox/trunk/Makefile.kmk@ 67981

Last change on this file since 67981 was 67129, checked in by vboxsync, 7 years ago

Makefile.kmk: moved 'snapshot-ose' target to a separate script

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

© 2023 Oracle
ContactPrivacy policyTerms of Use