VirtualBox

source: vbox/trunk/Makefile.kmk@ 99721

Last change on this file since 99721 was 99721, checked in by vboxsync, 19 months ago

/Makefile.kmk: Build the sdk w/o using any of the truly ancient jails. bugref:10442

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