VirtualBox

source: vbox/trunk/Makefile.kmk@ 60433

Last change on this file since 60433 was 60117, checked in by vboxsync, 9 years ago

Installer/linux: more fixes for Qt5, mainly nitpicking

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