VirtualBox

source: vbox/trunk/Makefile.kmk@ 60113

Last change on this file since 60113 was 60100, checked in by vboxsync, 9 years ago

Another fix for r106092.

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