VirtualBox

source: vbox/trunk/Makefile.kmk@ 89363

Last change on this file since 89363 was 88400, checked in by vboxsync, 4 years ago

Config.kmk, Makefile.kmk: bugref:9532: Excessive xcb legacy stuff which was necessary for Qt 5.6.x.

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