VirtualBox

source: vbox/trunk/Makefile.kmk@ 92688

Last change on this file since 92688 was 91981, checked in by vboxsync, 3 years ago

/Makefile.kmk: spaces -> tab; r147583

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