VirtualBox

source: vbox/trunk/Makefile.kmk@ 62944

Last change on this file since 62944 was 62828, checked in by vboxsync, 8 years ago

Using the Qt 5.6.1 for Linux host.

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