VirtualBox

source: vbox/trunk/Makefile.kmk@ 91737

Last change on this file since 91737 was 91730, checked in by vboxsync, 3 years ago

/Makefile.kmk,Puel: Only build the extpack QM-files on the host build box (i.e. windows). bugref:1909

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 92.9 KB
Line 
1# $Id: Makefile.kmk 91730 2021-10-14 14:44:48Z 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 -- "$@" "$@.tmp"
346 $(SHELL) $(KBUILD_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
347 $(MV) -f -- "$@.tmp" "$@"
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 -- "$@" "$@.tmp"
403 $(SHELL) $(KBUILD_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
404 $(MV) -f -- "$@.tmp" "$@"
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 -- "$@" "$@.tmp"
464 $(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
465 $(MV) -f -- "$@.tmp" "$@"
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 -- "$@.tmp" "$@"
500 $(SHELL) $(KBUILD_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
501 $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
502 $(MV) -f -- "$@.tmp" "$@"
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 $@ $@.tmp $@.dep
918 $(QUIET)$(CP) -f Doxyfile.Core $@.tmp
919 $(QUIET)$(APPEND) $@.tmp
920 $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
921 $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
922 $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
923 $(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
924 $(QUIET)$(APPEND) $@.tmp "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) $@.tmp
931 $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
932 $(QUIET)$(APPEND) $@.tmp
933 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
934 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
935 $(QUIET)$(APPEND) $@.tmp
936 $(QUIET)$(APPEND) $@.tmp "PLANTUML_JAR_PATH = $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS)/common/plantuml/v*/plantuml*.jar)))"
937 $(QUIET)$(APPEND) $@.tmp
938 $(QUIET)$(MV) -f $@.tmp $@
939 @$(APPEND) $@.dep "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
940 @$(APPEND) $@.dep "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 $(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
1068 --exclude=tools/$(os).x86/ \
1069 --exclude=tools/$(os).amd64/ )
1070
1071#
1072# VM IP addresses.
1073#
1074VBOX_BLD_VM_LNX_IP := 192.168.27.2
1075VBOX_BLD_VM_OS2_IP := 192.168.27.3
1076VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
1077VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
1078VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
1079VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
1080VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
1081VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
1082VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
1083VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
1084
1085VBOX_WITH_OS2_ADD_BUILD=1
1086
1087#
1088# For profiling the VM building steps.
1089#
1090if 0
1091 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
1092 VBOX_BLD_VM_MSG_END__ =
1093else
1094 VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
1095 VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
1096endif
1097
1098#
1099# For killing old build jobs in the OS/2 VM before rsyncing.
1100#
1101VBOX_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 "
1102
1103
1104#
1105# Build the additions, all of them.
1106#
1107# This is currently tailored (hardcoded) for the additions
1108# build box. Can make it pretty and configurable later.
1109#
1110# The fetching must be done in serial fashion, while the building
1111# should be more flexible wrt to -jN.
1112#
1113additions-fetch:
1114 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
1115 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
1116 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
1117 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1118 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1119ifdef VBOX_WITH_OS2_ADD_BUILD
1120 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
1121endif
1122 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1123 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1124 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1125 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1126
1127
1128## @todo Currently combined solaris additions building assumes that amd64 is
1129# built first. The windows amd64 additions need some x86 files, so don't change
1130# the order of the windows builds. TODO: Split building and packing for these two VMs.
1131additions-build: \
1132 additions-build-rsync-into-vms \
1133 additions-build-win.x86 \
1134 additions-build-win.amd64 \
1135 additions-build-solaris.amd64 \
1136 additions-build-solaris.x86 \
1137 additions-build-os2.x86 \
1138 additions-build-linux \
1139 additions-build-darwin.x86 \
1140 additions-build-darwin.amd64
1141
1142additions-build-rsync-into-vms: \
1143 additions-build-solaris.rsync-into-vm \
1144 additions-build-os2.rsync-into-vm \
1145 additions-build-darwin.x86.rsync-into-vm \
1146 additions-build-darwin.amd64.rsync-into-vm \
1147 additions-build-linux.rsync-into-vm
1148 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1149.NOTPARALLEL: additions-build-rsync-into-vms
1150.PHONY: additions-build-rsync-into-vms
1151
1152
1153VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1154 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1155
1156VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1157 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1158
1159# Automatically determine the additions build subdir name. Used for figuring
1160# out directory names inside the additions building VMs.
1161VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1162
1163# When building in parallel on a Windows host, make sure we finish the host
1164# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1165ifeq ($(KBUILD_TARGET),win)
1166VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
1167else
1168VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
1169endif
1170
1171# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1172ifeq ($(KBUILD_TARGET),win)
1173additions-build-win.amd64-just-build:
1174 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1175additions-build-win.amd64: additions-build-win.x86 additions-build-win.amd64-just-build
1176 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1177else
1178additions-build-win.amd64: additions-build-win.x86
1179 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
1180 $(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 '
1181 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
1182endif
1183
1184ifeq ($(KBUILD_TARGET),win)
1185additions-build-win.x86:
1186 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1187 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1188else
1189additions-build-win.x86:
1190 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
1191 $(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 '
1192 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
1193endif
1194
1195# ASSUMES the 64-bit edition are built first. This also serializes VM access.
1196ifeq ($(KBUILD_TARGET),solaris)
1197additions-build-solaris.amd64:
1198 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1199 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1200
1201additions-build-solaris.x86: additions-build-solaris.amd64
1202 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
1203 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
1204
1205additions-build-solaris.rsync-into-vm:
1206else
1207additions-build-solaris.rsync-into-vm:
1208 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1209 '--exclude=src/VBox/Additions/WINNT/**' \
1210 '--exclude=src/VBox/Frontends/**' \
1211 '--exclude=src/VBox/VMM/**' \
1212 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1213
1214additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
1215 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
1216 $(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 '
1217 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
1218 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
1219 $(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 '
1220 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
1221
1222additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
1223 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1224 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1225
1226.NOTPARALLEL: additions-build-solaris.rsync-into-vm
1227.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
1228
1229additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
1230additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
1231endif
1232
1233ifdef VBOX_WITH_OS2_ADD_BUILD
1234 ifeq ($(KBUILD_TARGET),os2)
1235additions-build-os2.x86:
1236 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1237 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1238
1239additions-build-os2.rsync-into-vm:
1240 else
1241additions-build-os2.rsync-into-vm:
1242 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1243 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
1244 '--exclude=src/VBox/Additions/x11/**' \
1245 '--exclude=src/VBox/Additions/WINNT/**' \
1246 '--exclude=src/VBox/Frontends/**' \
1247 '--exclude=src/VBox/VMM/**' \
1248 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1249
1250additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
1251 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
1252 $(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"
1253 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
1254
1255additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
1256 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1257 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1258
1259.NOTPARALLEL: additions-build-os2.rsync-into-vm
1260.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
1261
1262additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
1263 endif
1264#
1265else
1266additions-build-os2.x86:
1267# Dummy
1268endif
1269
1270# Linux
1271ifeq ($(KBUILD_TARGET),linux)
1272additions-build-linux.amd64:
1273 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1274 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1275
1276additions-build-linux.x86:
1277 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1278 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1279
1280additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1281 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1282 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1283else
1284additions-build-linux.rsync-into-vm:
1285 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1286 '--exclude=src/VBox/Additions/WINNT/**' \
1287 '--exclude=src/VBox/Frontends/**' \
1288 '--exclude=src/VBox/VMM/**' \
1289 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1290
1291additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1292 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1293 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1294 $(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 " '
1295 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1296 endif
1297 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1298 $(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) " '
1299 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1300 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1301 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1302 $(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 " '
1303 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1304 endif
1305 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1306 $(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) " '
1307 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1308 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1309 $(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 " '
1310 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1311
1312additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1313 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1314 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1315
1316.NOTPARALLEL: additions-build-linux.rsync-into-vm
1317.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1318
1319additions-build-linux: additions-build-linux.rsync-out-of-vm
1320endif
1321
1322# Darwin
1323ifeq ($(KBUILD_TARGET),darwin)
1324additions-build-darwin.amd64:
1325 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1326 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1327
1328additions-build-darwin.x86:
1329 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1330 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1331
1332additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
1333.PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
1334else
1335additions-build-darwin.amd64.rsync-into-vm:
1336 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1337 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1338 '--exclude=src/libs/xpcom18a4/**' \
1339 '--exclude=src/libs/curl*/**' \
1340 '--exclude=src/libs/libxml*/**' \
1341 '--exclude=src/libs/libvpx*/**' \
1342 '--exclude=src/libs/libopus*/**' \
1343 '--exclude=src/VBox/Additions/WINNT/**' \
1344 '--exclude=src/VBox/Additions/x11/**' \
1345 '--exclude=src/VBox/Artwork/x11/**' \
1346 '--include=src/VBox/Devices/' \
1347 '--include=src/VBox/Devices/Audio/' \
1348 '--include=src/VBox/Devices/Audio/**' \
1349 '--include=src/VBox/Devices/build/' \
1350 '--include=src/VBox/Devices/build/**' \
1351 '--exclude=src/VBox/Devices/**' \
1352 '--exclude=src/VBox/Disassembler/**' \
1353 '--exclude=src/VBox/ExtPacks/**' \
1354 '--exclude=src/VBox/Frontends/**' \
1355 '--exclude=src/VBox/HostDriver/**' \
1356 '--exclude=src/VBox/HostService/**' \
1357 '--exclude=src/VBox/ImageMounter/**' \
1358 '--exclude=src/VBox/Installer/win/**' \
1359 '--exclude=src/VBox/Main/**' \
1360 '--exclude=src/VBox/NetworkService/**' \
1361 '--exclude=src/VBox/RDP/**' \
1362 '--exclude=src/VBox/Storage/**' \
1363 '--include=src/VBox/ValidationKit/' \
1364 '--include=src/VBox/ValidationKit/Config.kmk' \
1365 '--include=src/VBox/ValidationKit/utils/' \
1366 '--include=src/VBox/ValidationKit/utils/audio/' \
1367 '--include=src/VBox/ValidationKit/utils/audio/**' \
1368 '--exclude=src/VBox/ValidationKit/**' \
1369 '--exclude=src/VBox/VMM/**' \
1370 '--exclude=src/apps/**' \
1371 '--exclude=src/recompiler/**' \
1372 . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1373
1374additions-build-darwin.x86.rsync-into-vm:
1375 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1376 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1377 '--exclude=src/libs/xpcom18a4/**' \
1378 '--exclude=src/libs/curl*/**' \
1379 '--exclude=src/libs/libxml*/**' \
1380 '--exclude=src/libs/libvpx*/**' \
1381 '--exclude=src/libs/libopus*/**' \
1382 '--exclude=src/VBox/Additions/WINNT/**' \
1383 '--exclude=src/VBox/Additions/x11/**' \
1384 '--exclude=src/VBox/Artwork/x11/**' \
1385 '--include=src/VBox/Devices/' \
1386 '--include=src/VBox/Devices/Audio/' \
1387 '--include=src/VBox/Devices/Audio/**' \
1388 '--include=src/VBox/Devices/build/' \
1389 '--include=src/VBox/Devices/build/**' \
1390 '--exclude=src/VBox/Devices/**' \
1391 '--exclude=src/VBox/Disassembler/**' \
1392 '--exclude=src/VBox/ExtPacks/**' \
1393 '--exclude=src/VBox/Frontends/**' \
1394 '--exclude=src/VBox/HostDriver/**' \
1395 '--exclude=src/VBox/HostService/**' \
1396 '--exclude=src/VBox/ImageMounter/**' \
1397 '--exclude=src/VBox/Installer/win/**' \
1398 '--exclude=src/VBox/Main/**' \
1399 '--exclude=src/VBox/NetworkService/**' \
1400 '--exclude=src/VBox/RDP/**' \
1401 '--exclude=src/VBox/Storage/**' \
1402 '--include=src/VBox/ValidationKit/' \
1403 '--include=src/VBox/ValidationKit/Config.kmk' \
1404 '--include=src/VBox/ValidationKit/utils/' \
1405 '--include=src/VBox/ValidationKit/utils/audio/' \
1406 '--include=src/VBox/ValidationKit/utils/audio/**' \
1407 '--exclude=src/VBox/ValidationKit/**' \
1408 '--exclude=src/VBox/VMM/**' \
1409 '--exclude=src/apps/**' \
1410 '--exclude=src/recompiler/**' \
1411 . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1412
1413additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
1414 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
1415 $(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
1416 $(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
1417 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
1418
1419additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
1420 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
1421 $(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
1422# 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
1423 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
1424
1425additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
1426 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1427
1428additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
1429 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1430
1431additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
1432additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
1433additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
1434
1435.PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
1436 additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
1437endif
1438
1439
1440additions-packing:
1441 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1442 VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
1443 VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
1444 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1445 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1446 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1447 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1448 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1449 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1450 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1451 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1452 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1453 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1454 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1455 -C src/VBox/Additions \
1456 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1457
1458.PHONY: \
1459 additions-build-win.x86 \
1460 additions-build-win.amd64 \
1461 additions-build-solaris.amd64 \
1462 additions-build-solaris.x86 \
1463 additions-build-os2.x86 \
1464 additions-build-linux \
1465 additions-build-linux.amd64 \
1466 additions-build-linux.x86 \
1467 additions-build-linux.x86.combined \
1468 additions-build-darwin \
1469 additions-build-darwin.x86 \
1470 additions-build-darwin.amd64 \
1471 additions-packing
1472
1473
1474#
1475# Build the extension packs, all of them.
1476#
1477# This is tailored (hardcoded) for the extension pack build box.
1478#
1479# The fetching must be done in serial fashion, while the building should be
1480# more flexible wrt to -jN.
1481#
1482extpacks-fetch:
1483 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1484 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1485# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1486 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1487 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1488 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1489if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1490 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1491# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1492 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1493# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1494 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1495endif
1496
1497
1498extpacks-build: \
1499 extpacks-build-win.amd64 \
1500 extpacks-build-win.x86 \
1501 extpacks-build-solaris.amd64 \
1502 extpacks-build-os2.x86 \
1503 extpacks-build-linux \
1504 extpacks-build-darwin.amd64 \
1505 extpacks-build-freebsd.amd64 \
1506 extpacks-build-freebsd.x86
1507
1508VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
1509 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1510
1511VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
1512 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1513
1514ifdef VBOX_WITH_PUEL_NLS
1515 VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
1516else
1517 VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
1518endif
1519
1520# Automatically determine the extpack build subdir name. Used for figuring out
1521# directory names inside the extension pack building VMs.
1522VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1523
1524# When building in parallel on a Windows host, make sure we finish the host
1525# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1526ifeq ($(KBUILD_TARGET),win)
1527VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1528else
1529VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1530endif
1531
1532extpacks-build-win.amd64:
1533ifeq ($(KBUILD_TARGET),win)
1534 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1535else
1536 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1537 $(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 '
1538 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1539endif
1540
1541extpacks-build-win.x86:
1542if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1543 ifeq ($(KBUILD_TARGET),win)
1544 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1545 else
1546 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1547 $(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 '
1548 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1549 endif
1550else
1551 @$(ECHO) "nothing to do for unsupported host $@"
1552endif
1553
1554ifeq ($(KBUILD_TARGET),solaris)
1555extpacks-build-solaris.amd64:
1556 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1557
1558else
1559# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1560extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1561 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1562
1563extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1564 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1565 $(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 '
1566 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1567
1568extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1569 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1570
1571#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1572.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1573
1574extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1575endif
1576
1577extpacks-build-os2.x86:
1578#ifeq ($(KBUILD_TARGET),os2)
1579# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1580#else
1581# $(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) '
1582#endif
1583
1584ifeq ($(KBUILD_TARGET),linux)
1585extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1586 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1587
1588extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1589 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1590 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1591 else
1592 @$(ECHO) "nothing to do for unsupported host $@"
1593 endif
1594
1595extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1596else
1597# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1598extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1599 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1600
1601extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1602 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1603 $(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 " '
1604 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1605 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1606 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1607 $(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 " '
1608 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1609 endif
1610
1611extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1612 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1613 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1614 endif
1615 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1616
1617#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1618.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1619
1620extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1621endif
1622
1623extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1624#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1625# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1626#else
1627# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1628# $(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 '
1629# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1630#endif
1631
1632extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1633#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1634# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1635#else
1636# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1637# $(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 '
1638# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1639#endif
1640
1641extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1642ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1643 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1644else
1645 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1646 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1647 $(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 '
1648 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1649 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1650endif
1651
1652extpacks-packing:
1653if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1654 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1655 VBOX_ONLY_EXTPACKS=1 packing
1656else
1657 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 solaris.amd64 win.amd64" \
1658 VBOX_ONLY_EXTPACKS=1 packing
1659endif
1660# +++ freebsd.amd64 ^^^
1661
1662.PHONY: \
1663 extpacks-build-win.x86 \
1664 extpacks-build-win.amd64 \
1665 extpacks-build-solaris.amd64 \
1666 extpacks-build-os2.x86 \
1667 extpacks-build-linux \
1668 extpacks-build-linux.amd64 \
1669 extpacks-build-linux.x86 \
1670 extpacks-build-freebsd.amd64 \
1671 extpacks-build-freebsd.x86 \
1672 extpacks-build-darwin.amd64 \
1673 extpacks-packing
1674
1675
1676#
1677# Build the test suite, all of it.
1678#
1679# This is currently tailored (hardcoded) for the additions build box just like
1680# the additions build above, which it in fact is a copy of.
1681#
1682validationkit-fetch:
1683 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1684 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1685 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1686# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1687# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1688 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1689 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1690 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1691 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1692 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1693 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1694 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1695
1696
1697validationkit-build: \
1698 validationkit-build-rsync-into-vms \
1699 validationkit-build-solaris.amd64 \
1700 validationkit-build-solaris.x86 \
1701 validationkit-build-win.x86 \
1702 validationkit-build-win.amd64 \
1703 validationkit-build-os2.x86 \
1704 validationkit-build-linux \
1705 validationkit-build-freebsd.amd64 \
1706 validationkit-build-freebsd.x86 \
1707 validationkit-build-darwin.amd64 \
1708 validationkit-build-darwin.x86
1709
1710validationkit-build-rsync-into-vms: \
1711 validationkit-build-solaris.rsync-into-vm \
1712 validationkit-build-os2.rsync-into-vm \
1713 validationkit-build-linux.rsync-into-vm
1714 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1715.NOTPARALLEL: validationkit-build-rsync-into-vms
1716.PHONY: validationkit-build-rsync-into-vms
1717
1718
1719VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1720 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1721
1722VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1723 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1724
1725# Automatically determine the Validation Kit build subdir name. Used for figuring
1726# out directory names inside the test suite building VMs.
1727VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1728
1729# When building in parallel on a Windows host, make sure we finish the host
1730# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1731ifeq ($(KBUILD_TARGET),win)
1732VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1733else
1734VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1735endif
1736
1737validationkit-build-win.amd64:
1738ifeq ($(KBUILD_TARGET),win)
1739 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1740else
1741 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1742 $(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 '
1743 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1744endif
1745
1746validationkit-build-win.x86:
1747ifeq ($(KBUILD_TARGET),win)
1748 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1749else
1750 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1751 $(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 '
1752 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1753endif
1754
1755ifeq ($(KBUILD_TARGET),solaris)
1756validationkit-build-solaris.amd64:
1757 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1758
1759validationkit-build-solaris.x86:
1760 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1761
1762else
1763validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1764 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1765 '--exclude=src/VBox/Additions/WINNT/**' \
1766 '--exclude=src/VBox/Frontends/**' \
1767 '--exclude=src/VBox/VMM/**' \
1768 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1769
1770validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1771 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1772 $(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 '
1773 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1774 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1775 $(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 '
1776 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1777
1778validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1779 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1780 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1781
1782.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1783
1784validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1785validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1786endif
1787
1788ifeq ($(KBUILD_TARGET),os2)
1789validationkit-build-os2.x86:
1790 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1791validationkit-build-os2.rsync-into-vm:
1792else # !OS/2
1793validationkit-build-os2.rsync-into-vm:
1794 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1795 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
1796 '--exclude=src/VBox/Additions/x11/**' \
1797 '--exclude=src/VBox/Additions/WINNT/**' \
1798 '--exclude=src/VBox/Frontends/**' \
1799 '--exclude=src/VBox/VMM/**' \
1800 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1801
1802validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1803 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1804 $(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"
1805 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1806
1807validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1808 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1809 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1810
1811.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1812
1813validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1814endif # !OS/2
1815
1816ifeq ($(KBUILD_TARGET),linux)
1817validationkit-build-linux.amd64:
1818 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1819
1820validationkit-build-linux.x86:
1821 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1822
1823validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1824else
1825validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1826 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1827 '--exclude=src/VBox/Additions/WINNT/**' \
1828 '--exclude=src/VBox/Frontends/**' \
1829 '--exclude=src/VBox/VMM/**' \
1830 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1831
1832validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1833 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1834 $(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 " '
1835 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1836 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1837 $(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 " '
1838 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1839
1840validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1841 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1842 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1843
1844.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1845
1846validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1847endif
1848
1849validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1850#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1851# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1852#else
1853# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1854# $(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 '
1855# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1856#endif
1857
1858validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1859#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1860# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1861#else
1862# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1863# $(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 '
1864# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1865#endif
1866
1867validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1868ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1869 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1870else
1871 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1872 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1873 $(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 '
1874 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1875 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1876endif
1877
1878validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1879ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1880 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1881else
1882 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1883 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1884 $(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 '
1885 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1886 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1887endif
1888
1889
1890validationkit-packing:
1891 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1892 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1893 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1894 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1895 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1896 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1897 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1898 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1899 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1900 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1901 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1902 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1903 -C src/VBox/ValidationKit \
1904 $(PATH_OUT)/VBoxValidationKit.zip \
1905 $(PATH_OUT)/VBoxTestBoxScript.zip
1906
1907.PHONY: \
1908 validationkit-build-win.x86 \
1909 validationkit-build-win.amd64 \
1910 validationkit-build-solaris.amd64 \
1911 validationkit-build-solaris.x86 \
1912 validationkit-build-os2.x86 \
1913 validationkit-build-linux \
1914 validationkit-build-linux.amd64 \
1915 validationkit-build-linux.x86 \
1916 validationkit-build-freebsd.amd64 \
1917 validationkit-build-freebsd.x86 \
1918 validationkit-build-darwin.amd64 \
1919 validationkit-build-darwin.x86 \
1920 validationkit-packing
1921
1922
1923#
1924# Build the EFI firmware, all of it.
1925#
1926efi-fetch:
1927 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1928
1929efi-build: $(VBOX_VERSION_HEADER)
1930 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
1931
1932efi-packing:
1933 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
1934
1935
1936#
1937# Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
1938# - includes kBuild
1939# - must be executed on an PUEL checkout
1940#
1941
1942# the path where to store the zip archive
1943ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1944# the root directory inside the zip archive
1945ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1946# the name of the zip archive
1947ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1948snapshot-puel:
1949 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1950 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1951 echo; \
1952 echo "Did not find RDP stuff, is this an OSE branch?"; \
1953 echo; \
1954 exit 1; \
1955 fi
1956 @if [ -z "$(PASSWORD)" ]; then \
1957 echo; \
1958 echo "Please specify a password with PASSWORD=..."; \
1959 echo; \
1960 exit 1; \
1961 fi
1962 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1963 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1964 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1965 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1966 $(QUIET)(cd $(ZIPPATH); 7z a \
1967 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1968 -xr!.svn \
1969 -i!$(ZIPROOT)/Config.kmk \
1970 -i!$(ZIPROOT)/Doxyfile.Core \
1971 -i!$(ZIPROOT)/Makefile.kmk \
1972 -i!$(ZIPROOT)/configure \
1973 -i!$(ZIPROOT)/configure.vbs \
1974 -i!$(ZIPROOT)/doc \
1975 -i!$(ZIPROOT)/include \
1976 -i!$(ZIPROOT)/kBuild \
1977 -i!$(ZIPROOT)/src \
1978 -i!$(ZIPROOT)/tools/env.sh \
1979 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1980 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1981 -x!$(ZIPROOT)/doc/Devices \
1982 -x!$(ZIPROOT)/doc/\*pdf \
1983 -x!$(ZIPROOT)/doc/VMM \
1984 -x!$(ZIPROOT)/doc/licenses_old \
1985 -x!$(ZIPROOT)/doc/manual/de_DE \
1986 -x!$(ZIPROOT)/doc/manual/fr_FR \
1987 -x!$(ZIPROOT)/src/tests \
1988 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1989 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1990 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1991 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1992 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1993 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1994 $(ZIPPATH)/$(ZIPNAME))
1995 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1996
1997
1998#
1999# Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
2000# - includes kBuild
2001#
2002
2003snapshot-ose:
2004ifndef VBOX_OSE
2005 $(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
2006 $(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
2007 $(KBUILD_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
2008 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
2009 $(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
2010 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
2011else
2012 $(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
2013 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
2014 $(REDIRECT) -C $(PATH_ROOT) -- \
2015 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
2016endif
2017
2018
2019#
2020# Generate ALL the rules.
2021#
2022include $(FILE_KBUILD_SUB_FOOTER)
2023
2024
2025#
2026# Generate x86.mac and err.mac.
2027#
2028incs:
2029 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
2030 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
2031 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
2032 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
2033 $(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
2034 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
2035 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
2036 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
2037 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
2038 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
2039
2040
2041#
2042# Legacy.
2043#
2044vslick.h:
2045 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
2046 exit 1
2047
2048
2049#
2050# Add fetching of the tools to the 'up[date][2]' targets.
2051#
2052up update up2 update2::
2053ifndef VBOX_OSE
2054 +$(MAKE) -C tools fetch
2055else
2056 $(MAKE) -C tools -f Makefile-ose.kmk fetch
2057endif
2058
2059
2060#
2061# Aliases for building the SDK.
2062#
2063.NOTPARALLEL: sdk sdk-fetch
2064sdk:
2065 + $(KMK) VBOX_ONLY_SDK=1 \
2066 pass_bldprogs pass_others pass_installs pass_packing
2067
2068sdk-fetch:
2069 + $(KMK) VBOX_ONLY_SDK=1 -C tools
2070
2071
2072#
2073# Build the essentials to run a VM. Incomplete. Use with care!
2074#
2075quick: \
2076 VBoxRT \
2077 VBoxVMM \
2078 VMMR0 \
2079 VBoxDD \
2080 VBoxDDR0 \
2081 VBoxDD2 \
2082 VBoxDD2R0 \
2083 VBoxC \
2084 VBoxSVC \
2085 $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
2086 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
2087 $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
2088 $(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