VirtualBox

source: vbox/trunk/Makefile.kmk@ 100064

Last change on this file since 100064 was 99928, checked in by vboxsync, 13 months ago

Makefile.kmk: Install local EFI firmware images for ARMv8 if not fetching from the buildserver, bugref:10400

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

© 2023 Oracle
ContactPrivacy policyTerms of Use