VirtualBox

source: vbox/trunk/Makefile.kmk@ 106605

Last change on this file since 106605 was 106331, checked in by vboxsync, 6 weeks ago

Makefile.kmk: bugref:10450: Allow building VBox with side-load Qt6 binaries even without branding postfix and even of different version than ours; This requires a bunch of flags to be overridden, such as VBOX_WITH_QT_PAYLOAD, PATH_SDK_QT6 and PATH_TOOL_QT6.

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