VirtualBox

source: vbox/trunk/Makefile.kmk@ 106180

Last change on this file since 106180 was 106170, checked in by vboxsync, 2 months ago

Config.kmk, Makefile.kmk, FE/Qt: bugref:10450: Get rid of VBOX_WITH_QT6 define and old possibility to build with our own Qt5 tool which was impossible already.

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