VirtualBox

source: vbox/trunk/Makefile.kmk@ 88303

Last change on this file since 88303 was 88303, checked in by vboxsync, 4 years ago

/Config.kmk, /Makefile.kmk, Installer/win/Makefile.kmk: Start phasing out the .chm documentation including kchmviewer.

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