VirtualBox

source: vbox/trunk/Makefile.kmk@ 100223

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

Makefile.kmk: bugref:10450: dSYM filenames changed for Qt6, who knows why ..

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