VirtualBox

source: vbox/trunk/Makefile.kmk@ 108503

Last change on this file since 108503 was 108503, checked in by vboxsync, 8 weeks ago

bldprogs,Config.kmk,Makefile.kmk: Introduce VBoxEditElf tool to edit ELF binaries. Currently supports deleting and chanign the runpath only, bugref:10874 [build fix]

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