VirtualBox

source: vbox/trunk/Makefile.kmk@ 105445

Last change on this file since 105445 was 104710, checked in by vboxsync, 6 months ago

Makefile.kmk: bugref:10690: Using VBOX_PUEL_MANGLED_NAME instead of hardcoded package name for VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER case.

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