VirtualBox

source: vbox/trunk/Makefile.kmk@ 108871

Last change on this file since 108871 was 108519, checked in by vboxsync, 6 weeks ago

Makefile.kmk: Fix dependency issue with VBoxEditElf and qt-bin, bugref:10874

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

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