VirtualBox

source: vbox/trunk/Makefile.kmk@ 62521

Last change on this file since 62521 was 62472, checked in by vboxsync, 8 years ago

Misc: scm

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

© 2023 Oracle
ContactPrivacy policyTerms of Use