VirtualBox

source: vbox/trunk/Makefile.kmk@ 61909

Last change on this file since 61909 was 61846, checked in by vboxsync, 8 years ago

/Makefile.kmk: Fixed warning about undefined variable 'buildserver-additions_0_OUTDIR'.

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