VirtualBox

source: vbox/trunk/Makefile.kmk@ 99871

Last change on this file since 99871 was 99871, checked in by vboxsync, 19 months ago

/Makefile.kmk: Attempt to simplify and clean up the qt[56]-bin stuff. bugref:10450

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

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