VirtualBox

source: vbox/trunk/Makefile.kmk@ 67053

Last change on this file since 67053 was 66918, checked in by vboxsync, 8 years ago

Experimenting with new 'quick' rule.

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