VirtualBox

source: vbox/trunk/Makefile.kmk@ 108280

Last change on this file since 108280 was 108258, checked in by vboxsync, 4 weeks ago

*.kmk: Adding clang_rt.asan_dynamic-x86_64.dll and friends as order dependencies of the .run targets in windows asan builds. Was seeing 0xc0000135 (STATUS_DLL_NOT_FOUND) errors on the build box and assume it's a build order issue.

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette