VirtualBox

source: vbox/trunk/Makefile.kmk@ 107114

Last change on this file since 107114 was 107105, checked in by vboxsync, 3 months ago

Makefile.kmk, tools/Makefile.kmk: bugref:10450: Windows/amd64: Move from Qt6.5 to Qt6.8.

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

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