VirtualBox

source: vbox/trunk/Makefile.kmk@ 61629

Last change on this file since 61629 was 61048, checked in by vboxsync, 9 years ago

Solaris: Makefile: Qt5 migration(part 115): Legacy libraries not required for solaris for now.

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