VirtualBox

source: vbox/trunk/Makefile.kmk@ 82968

Last change on this file since 82968 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette