VirtualBox

source: vbox/trunk/Makefile.kmk@ 88279

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

Reverting r143481 cause seems it's a bit too early for now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 90.1 KB
Line 
1# $Id: Makefile.kmk 88279 2021-03-24 13:54:13Z 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.6.3
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 VirtualBox.chm UserManual.pdf \
372 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
373buildserver-docs_CLEANS = \
374 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
375 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
376 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
377 $(addprefix $(PATH_TARGET)/, \
378 VirtualBox.chm UserManual.pdf \
379 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
380
381$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
382$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
383 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
384 $(call MSG_L1,Unpacking documentation)
385 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
386 $(TOUCH) -c -- $(PATH_TARGET)/VirtualBox.chm \
387 $(PATH_TARGET)/UserManual.pdf \
388 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf)
389 $(APPEND) -t $@ "done"
390
391$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
392 $(RM) -f -- "$@" "[email protected]"
393 $(SHELL) $(KBUILD_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
394 $(MV) -f -- "[email protected]" "$@"
395
396endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
397
398
399 ifdef VBOX_WITH_EFI
400 #
401 # Install EFI firmware image
402 #
403 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
404 #
405 # Either from the build server.
406 #
407 ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
408 include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
409 endif
410 INSTALLS += buildserver-efifw
411 buildserver-efifw_INST = $(INST_BIN)
412 buildserver-efifw_MODE = 0644
413 buildserver-efifw_SOURCES = \
414 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
415 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
416 buildserver-efifw_CLEANS = \
417 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
418 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
419 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
420 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
421 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
422 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
423
424 INSTALLS += buildserver-efifw-dbg-amd64
425 buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
426 buildserver-efifw-dbg-amd64_MODE = 0644
427 buildserver-efifw-dbg-amd64_SOURCES = \
428 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
429
430 INSTALLS += buildserver-efifw-dbg-x86
431 buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
432 buildserver-efifw-dbg-x86_MODE = 0644
433 buildserver-efifw-dbg-x86_SOURCES = \
434 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
435
436 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
437 +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
438 $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
439 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
440 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
441 $(call MSG_L1,Unpacking EFI firmware)
442 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
443 $(foreach arch, amd64 x86, \
444 $(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
445 $(foreach mod,$(VBOX_EFI_MODULES_FLAT) \
446 ,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
447 $(TOUCH) -c -- $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
448 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
449 $(APPEND) -t $@ "done"
450
451 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
452 $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
453 $(RM) -f -- "$@" "[email protected]"
454 $(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
455 $(MV) -f -- "[email protected]" "$@"
456
457 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
458 #
459 # Or from the local copy (no debug).
460 #
461 INSTALLS += local-efifw
462 local-efifw_INST = $(INST_BIN)
463 local-efifw_MODE = 0644
464 local-efifw_SOURCES = \
465 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
466 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
467 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
468 endif # VBOX_WITH_EFI
469
470
471ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
472#
473# Get the extension pack from from the build server to facility the automatic
474# testing (everything in one tarball (VBoxAll-*)).
475#
476# Note! Using the plural here as we might be downloading more packages eventually.
477#
478INSTALLS += buildserver-extpacks
479buildserver-extpacks_INST = $(INST_DIST)
480buildserver-extpacks_MODE = 0644
481buildserver-extpacks_SOURCES = \
482 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
483buildserver-extpacks_CLEANS = \
484 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
485 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
486
487$$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
488 $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
489 $(RM) -f -- "[email protected]" "$@"
490 $(SHELL) $(KBUILD_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "[email protected]" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
491 $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
492 $(MV) -f -- "[email protected]" "$@"
493 $(TOUCH) -- "$@"
494
495endif
496
497
498#
499# Install staged binaries on platforms where we can't cross
500# compile things.
501#
502ifn1of ($(KBUILD_TARGET), linux win)
503 VBOX_PATH_STAGED ?= .
504
505 # Additions.
506 ifndef VBOX_WITH_LINUX_ADDITIONS
507 ifndef VBOX_WITH_WIN32_ADDITIONS
508 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
509 INSTALLS += staged-additions
510 staged-additions_INST = $(INST_ADDITIONS_ISO)
511 staged-additions_MODE = 0644
512 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
513 endif
514 endif
515 endif
516
517 # guesttool.exe
518 ifndef VBOX_WITH_WIN32_ADDITIONS
519 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
520 INSTALLS += staged-guesttool
521 staged-guesttool_INST = $(INST_BIN)
522 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
523 endif
524 endif
525
526endif
527
528endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
529
530
531ifdef VBOX_ONLY_DOCS
532# It may sound a bit odd, but for preparing the documentation package the
533# doxygen documentation isn't needed and increases the build time a lot.
534docs:
535else # !VBOX_ONLY_DOCS
536#
537# Generate documentation.
538# (This should be converted into a separate pass or merged with an existing one later.)
539#
540 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
541docs: docs.Core
542 else
543docs:
544 endif
545endif # !VBOX_ONLY_DOCS
546
547#
548# The core (VMM+Devices+Main) documentation.
549#
550# This includes so much because we wish to have the complete CFGM
551# and GCFGM lists.
552#
553VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
554BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
555OTHER_CLEAN += \
556 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
557 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
558
559VBOX_CORE_DOXYFILE_INPUT_DIRS = \
560 include/iprt \
561 include/iprt/cpp \
562 include/iprt/crypto \
563 include/iprt/formats \
564 include/iprt/linux \
565 include/iprt/nt \
566 include/iprt/solaris \
567 include/iprt/win \
568 include/iprt/nocrt \
569 include/VBox \
570 include/VBox/vmm \
571 include/VBox/com \
572 include/VBox/ExtPack \
573 include/VBox/HostServices \
574 include/VBox/GuestHost \
575 include/VBox/HGSMI \
576 src/VBox/VMM \
577 src/VBox/VMM/VMMR0 \
578 src/VBox/VMM/VMMRC \
579 src/VBox/VMM/VMMR3 \
580 src/VBox/VMM/VMMAll \
581 src/VBox/VMM/VMMSwitcher \
582 src/VBox/VMM/include \
583 src/VBox/Debugger \
584 src/VBox/Devices \
585 src/VBox/Devices/Audio \
586 src/VBox/Devices/Bus \
587 src/VBox/Devices/Graphics \
588 src/VBox/Devices/Graphics/BIOS \
589 src/VBox/Devices/Graphics/shaderlib \
590 src/VBox/Devices/Input \
591 src/VBox/Devices/Networking \
592 src/VBox/Devices/PC \
593 src/VBox/Devices/PC/BIOS \
594 src/VBox/Devices/Parallel \
595 src/VBox/Devices/Serial \
596 src/VBox/Devices/Storage \
597 src/VBox/Devices/USB \
598 src/VBox/Devices/USB/darwin \
599 src/VBox/Devices/USB/linux \
600 src/VBox/Devices/USB/os2 \
601 src/VBox/Devices/USB/solaris \
602 src/VBox/Devices/USB/vrdp \
603 src/VBox/Devices/USB/win32 \
604 src/VBox/Devices/VMMDev \
605 src/VBox/Main/include \
606 src/VBox/Main/include/hgcm \
607 src/VBox/Main \
608 src/VBox/Main/glue \
609 src/VBox/Main/webservice \
610 src/VBox/Main/xml \
611 src/VBox/Main/src-all \
612 src/VBox/Main/src-all/win \
613 src/VBox/Main/src-client \
614 src/VBox/Main/src-client/win \
615 src/VBox/Main/src-client/xpcom \
616 src/VBox/Main/src-server \
617 src/VBox/Main/src-server/darwin \
618 src/VBox/Main/src-server/linux \
619 src/VBox/Main/src-server/os2 \
620 src/VBox/Main/src-server/solaris \
621 src/VBox/Main/src-server/win \
622 src/VBox/Main/src-server/xpcom \
623 src/VBox/HostServices \
624 src/VBox/HostServices/DragAndDrop \
625 src/VBox/HostServices/GuestControl \
626 src/VBox/HostServices/GuestProperties \
627 src/VBox/HostServices/SharedClipboard \
628 src/VBox/HostServices/SharedFolders \
629 src/VBox/HostServices/SharedOpenGL \
630 src/VBox/HostServices/SharedOpenGL/crserver \
631 src/VBox/HostServices/SharedOpenGL/crserverlib \
632 src/VBox/HostServices/SharedOpenGL/render \
633 src/VBox/HostServices/SharedOpenGL/unpacker \
634 src/VBox/HostServices/auth \
635 src/VBox/HostServices/auth/directoryservice \
636 src/VBox/HostServices/auth/pam \
637 src/VBox/HostServices/auth/simple \
638 src/VBox/HostServices/auth/winlogon \
639 src/VBox/HostDrivers/Support \
640 src/VBox/HostDrivers/Support/darwin \
641 src/VBox/HostDrivers/Support/freebsd \
642 src/VBox/HostDrivers/Support/linux \
643 src/VBox/HostDrivers/Support/os2 \
644 src/VBox/HostDrivers/Support/solaris \
645 src/VBox/HostDrivers/Support/win \
646 src/VBox/HostDrivers/VBoxNetFlt \
647 src/VBox/HostDrivers/VBoxNetFlt/darwin \
648 src/VBox/HostDrivers/VBoxNetFlt/linux \
649 src/VBox/HostDrivers/VBoxNetFlt/solaris \
650 src/VBox/HostDrivers/VBoxNetFlt/win \
651 src/VBox/HostDrivers/VBoxNetNat \
652 src/VBox/HostDrivers/VBoxNetNat/darwin \
653 src/VBox/HostDrivers/VBoxNetNat/linux \
654 src/VBox/HostDrivers/VBoxNetNat/solaris \
655 src/VBox/HostDrivers/VBoxNetNat/win \
656 src/VBox/HostDrivers/VBoxNetAdp \
657 src/VBox/HostDrivers/VBoxNetAdp/darwin \
658 src/VBox/HostDrivers/VBoxNetAdp/linux \
659 src/VBox/HostDrivers/VBoxNetAdp/solaris \
660 src/VBox/HostDrivers/VBoxNetAdp/win \
661 src/VBox/HostDrivers/VBoxPci \
662 src/VBox/HostDrivers/VBoxPci/darwin \
663 src/VBox/HostDrivers/VBoxPci/linux \
664 src/VBox/HostDrivers/VBoxPci/solaris \
665 src/VBox/HostDrivers/VBoxPci/win \
666 src/VBox/HostDrivers/VBoxUSB \
667 src/VBox/HostDrivers/VBoxUSB/darwin \
668 src/VBox/HostDrivers/VBoxUSB/os2 \
669 src/VBox/HostDrivers/VBoxUSB/solaris \
670 src/VBox/HostDrivers/VBoxUSB/win \
671 src/VBox/HostDrivers/VBoxUSB/win/Device \
672 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
673 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
674 src/VBox/HostDrivers/VBoxUSB/win/Filter \
675 src/VBox/HostDrivers/VBoxUSB/win/Install \
676 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
677 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
678 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
679 src/VBox/HostDrivers/VBoxUSB/win/usbd \
680 src/VBox/Additions \
681 src/VBox/Additions/WINNT \
682 src/VBox/Additions/WINNT/Graphics \
683 src/VBox/Additions/WINNT/Graphics/Video \
684 src/VBox/Additions/WINNT/Graphics/Video/common \
685 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
686 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
687 src/VBox/Additions/WINNT/Graphics/Video/disp \
688 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
689 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
690 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
691 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
692 src/VBox/Additions/WINNT/Graphics/Video/mp \
693 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
694 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
695 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
696 src/VBox/Additions/WINNT/Graphics/Wine_new \
697 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
698 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
699 src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
700 src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
701 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
702 src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
703 src/VBox/Additions/WINNT/Installer \
704 src/VBox/Additions/WINNT/Installer/ISO \
705 src/VBox/Additions/WINNT/Installer/InstallHelper \
706 src/VBox/Additions/WINNT/Installer/Languages \
707 src/VBox/Additions/WINNT/Installer/Loader \
708 src/VBox/Additions/WINNT/Mouse \
709 src/VBox/Additions/WINNT/Mouse/NT5 \
710 src/VBox/Additions/WINNT/Mouse/common \
711 src/VBox/Additions/WINNT/SharedFolders \
712 src/VBox/Additions/WINNT/SharedFolders/redirector \
713 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
714 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
715 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
716 src/VBox/Additions/WINNT/VBoxCredProv \
717 src/VBox/Additions/WINNT/VBoxGINA \
718 src/VBox/Additions/WINNT/VBoxHook \
719 src/VBox/Additions/WINNT/VBoxTray \
720 src/VBox/Additions/WINNT/VBoxUSB \
721 src/VBox/Additions/WINNT/i8042prt \
722 src/VBox/Additions/WINNT/i8042prt/i386 \
723 src/VBox/Additions/WINNT/i8042prt/include \
724 src/VBox/Additions/WINNT/include \
725 src/VBox/Additions/common \
726 src/VBox/Additions/common/VBoxControl \
727 src/VBox/Additions/common/VBoxGuest \
728 src/VBox/Additions/common/VBoxGuest/freebsd \
729 src/VBox/Additions/common/VBoxGuest/linux \
730 src/VBox/Additions/common/VBoxGuest/win \
731 src/VBox/Additions/common/VBoxGuestLib \
732 src/VBox/Additions/common/VBoxService \
733 src/VBox/Additions/common/VBoxVideo \
734 src/VBox/Additions/common/crOpenGL \
735 src/VBox/Additions/common/crOpenGL/array \
736 src/VBox/Additions/common/crOpenGL/feedback \
737 src/VBox/Additions/common/crOpenGL/pack \
738 src/VBox/Additions/common/crOpenGL/passthrough \
739 src/VBox/Additions/common/pam \
740 src/VBox/Additions/darwin \
741 src/VBox/Additions/freebsd \
742 src/VBox/Additions/freebsd/Installer \
743 src/VBox/Additions/freebsd/drm \
744 src/VBox/Additions/freebsd/vboxvfs \
745 src/VBox/Additions/linux \
746 src/VBox/Additions/linux/drm \
747 src/VBox/Additions/linux/installer \
748 src/VBox/Additions/linux/selinux-fedora \
749 src/VBox/Additions/linux/sharedfolders \
750 src/VBox/Additions/os2 \
751 src/VBox/Additions/os2/VBoxGradd \
752 src/VBox/Additions/os2/VBoxGradd/graddlib \
753 src/VBox/Additions/os2/VBoxGrext \
754 src/VBox/Additions/os2/VBoxMouse \
755 src/VBox/Additions/os2/VBoxSF \
756 src/VBox/Additions/solaris \
757 src/VBox/Additions/solaris/DRM \
758 src/VBox/Additions/solaris/Installer \
759 src/VBox/Additions/solaris/SharedFolders \
760 src/VBox/Additions/solaris/SharedFolders/solaris10 \
761 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
762 src/VBox/Additions/solaris/Virtio \
763 src/VBox/Additions/x11 \
764 src/VBox/Additions/x11/Installer \
765 src/VBox/Additions/x11/VBoxClient \
766 src/VBox/Additions/x11/vboxmouse \
767 src/VBox/Additions/x11/vboxmouse/xorg70 \
768 src/VBox/Additions/x11/vboxmouse/xorg71 \
769 src/VBox/Additions/x11/vboxvideo \
770 src/VBox/NetworkServices \
771 src/VBox/NetworkServices/Dhcpd \
772 src/VBox/NetworkServices/NAT \
773 src/VBox/NetworkServices/NetLib \
774 src/VBox/Storage \
775 src/VBox/ValidationKit/ \
776 src/VBox/ValidationKit/docs/ \
777 src/VBox/ValidationKit/testdriver/ \
778 src/VBox/ValidationKit/bootsectors/ \
779 src/VBox/ValidationKit/bootsectors/bs3kit/ \
780 src/VBox/ValidationKit/tests/ \
781 src/VBox/ValidationKit/tests/additions/ \
782 src/VBox/ValidationKit/tests/api/ \
783 src/VBox/ValidationKit/tests/autostart/ \
784 src/VBox/ValidationKit/tests/benchmarks/ \
785 src/VBox/ValidationKit/tests/cpu/ \
786 src/VBox/ValidationKit/tests/installation/ \
787 src/VBox/ValidationKit/tests/network/ \
788 src/VBox/ValidationKit/tests/selftests/ \
789 src/VBox/ValidationKit/tests/smoketests/ \
790 src/VBox/ValidationKit/tests/storage/ \
791 src/VBox/ValidationKit/tests/teleportation/ \
792 src/VBox/ValidationKit/tests/unittests/ \
793 src/VBox/ValidationKit/tests/usb/ \
794 src/VBox/ValidationKit/common/ \
795 src/VBox/ValidationKit/utils/ \
796 src/VBox/ValidationKit/utils/TestExecServ/ \
797 src/VBox/ValidationKit/utils/cpu/ \
798 src/VBox/ValidationKit/utils/misc/ \
799 src/VBox/ValidationKit/utils/network/ \
800 src/VBox/ValidationKit/utils/nt/ \
801 src/VBox/ValidationKit/utils/usb/ \
802 src/VBox/ValidationKit/vms/ \
803 src/VBox/ValidationKit/testmanager/ \
804 src/VBox/ValidationKit/testmanager/core/ \
805 src/VBox/ValidationKit/testmanager/db/ \
806 src/VBox/ValidationKit/testmanager/debug/ \
807 src/VBox/ValidationKit/testmanager/cgi/ \
808 src/VBox/ValidationKit/testmanager/webui/ \
809 src/VBox/ValidationKit/testboxscript/ \
810
811# These must come first in order to make things look nice.
812VBOX_CORE_DOXYFILE_INPUT_FIRST =\
813 $(PATH_ROOT)/doc/VBox-doc.c \
814 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
815 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
816 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
817 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
818 $(PATH_ROOT)/include/VBox/cdefs.h \
819 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
820 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
821 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
822 $(PATH_ROOT)/include/VBox/vmm/mm.h \
823 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
824 $(PATH_ROOT)/include/VBox/vmm/selm.h \
825 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
826 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
827 $(PATH_ROOT)/include/VBox/vmm/stam.h \
828 $(PATH_ROOT)/include/VBox/vmm/em.h \
829 $(PATH_ROOT)/include/VBox/vmm/hm.h \
830 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
831 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
832 $(PATH_ROOT)/include/VBox/vmm/iem.h \
833 $(PATH_ROOT)/include/VBox/vmm/nem.h \
834 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
835 $(PATH_ROOT)/include/VBox/vmm/pdmifs.h \
836 $(PATH_ROOT)/include/VBox/vmm/pdmaudioifs.h \
837 $(PATH_ROOT)/include/VBox/vmm/pdmnetifs.h \
838 $(PATH_ROOT)/include/VBox/vmm/pdmserialifs.h \
839 $(PATH_ROOT)/include/VBox/vmm/pdmstorageifs.h \
840 $(PATH_ROOT)/include/VBox/vmm/iom.h \
841 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
842 $(PATH_ROOT)/include/VBox/vmm/gim.h \
843 $(PATH_ROOT)/include/VBox/vmm/tm.h \
844 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
845 \
846 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
847 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
848 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
849 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
850 $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
851 $(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
852 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
853 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
854 $(PATH_ROOT)/src/VBox/VMM/include/NEMInternal.h \
855 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
856 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
857 $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
858 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
859 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
860 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
861 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
862 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
863 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
864 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
865 \
866 $(PATH_ROOT)/include/VBox/vmm/vm.h \
867 \
868 $(PATH_ROOT)/include/VBox/sup.h \
869 $(PATH_ROOT)/include/VBox/vd.h \
870 $(PATH_ROOT)/include/VBox/types.h \
871 $(PATH_ROOT)/include/VBox/err.h \
872 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
873 $(PATH_ROOT)/include/VBox/dbggui.h \
874 $(PATH_ROOT)/include/VBox/dis.h \
875 $(PATH_ROOT)/include/VBox/disopcode.h \
876 $(PATH_ROOT)/include/VBox/intnet.h \
877 $(PATH_ROOT)/include/VBox/settings.h \
878 $(PATH_ROOT)/include/VBox/pci.h \
879 $(PATH_ROOT)/include/VBox/scsi.h \
880 $(PATH_ROOT)/include/VBox/shflsvc.h \
881 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
882 $(PATH_ROOT)/include/VBox/usb.h \
883 $(PATH_ROOT)/include/VBox/vusb.h \
884 \
885 $(PATH_ROOT)/include/VBox/log.h \
886 $(PATH_ROOT)/include/VBox/param.h \
887 $(PATH_ROOT)/include/VBox/version.h \
888 \
889 $(PATH_ROOT)/include/VBox/com/com.h \
890 $(PATH_ROOT)/include/VBox/com/utils.h
891
892VBOX_CORE_DOXYFILE_INPUT := \
893 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
894 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
895 , $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
896VBOX_CORE_DOXYFILE_INPUT := \
897 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
898 $(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)))
899
900includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
901
902# Generate the Doxyfile
903$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
904 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
905 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
906 | $$(dir $$@)
907 $(QUIET)$(RM) -f $@ [email protected] [email protected]
908 $(QUIET)$(CP) -f Doxyfile.Core [email protected]
909 $(QUIET)$(APPEND) [email protected]
910 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
911 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
912 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
913 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
914 $(QUIET)$(APPEND) [email protected] "EXCLUDE = " \
915 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
916 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
917 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
918 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
919 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
920 $(QUIET)$(APPEND) [email protected]
921 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
922 $(QUIET)$(APPEND) [email protected]
923 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
924 $(QUIET)$(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
925 $(QUIET)$(APPEND) [email protected]
926 $(QUIET)$(MV) -f [email protected] $@
927 @$(APPEND) [email protected] "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
928 @$(APPEND) [email protected] "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
929
930# Do the actual job.
931$(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
932 | $(VBOX_CORE_DOXYFILE_OUTPUT)/
933 $(QUIET)$(RM) -f $@
934 $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
935 doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
936 $(SED) -n \
937 -e ':nextwarning' \
938 -e '/^ *$(DOLLAR)/d' \
939 -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
940 -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
941 -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
942 -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
943 -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
944 -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
945 \
946 -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
947 \
948 -e 'b end' \
949 -e ':ignore' \
950 -e 'n' \
951 -e '/^[[:space:]]/b ignore' \
952 -e '/^Possible candidates/b ignore' \
953 -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
954 -e 'b nextwarning' \
955 -e ':end' \
956 -e 'p' \
957 --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
958 $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
959 $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
960 $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
961 $(APPEND) $@
962
963docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
964
965#
966# This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
967# so the build box output is less confusing on failure.
968#
969ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
970 ifdef VBOX_WITH_SCM_CHECK_RUN
971 docs: scm.check.run
972 endif
973 .PHONY: scm.check.run
974 scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
975 $(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" \
976 $(if-expr "$(KBUILD_HOST)" == "darwin",-E DYLD_FALLBACK_LIBRARY_PATH="$(VBOX_PATH_TOOLS)/..",) -- \
977 $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
978endif
979
980
981#
982# Combined package build (windows only).
983#
984# The combined package is created by the x86 environment, so we do the amd64
985# packaging in the build phase since it's just a few very slow jobs. We hold
986# back the x86 build until the amd64 packaging starts, to try encourage
987# parallel execution.
988#
989# Note! VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1 is required because the additions
990# packing must be done in amd64 mode as it picks files from the x86 build.
991#
992
993VBOX_COMBINED_PACKAGE_DEFS := \
994 VBOX_WITH_COMBINED_PACKAGE=1 \
995 VBOX_WITH_ALL_DOXYGEN_TARGETS= \
996 VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1
997
998combined-package-fetch:
999 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1000 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1001
1002combined-package-build-amd64:
1003 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1004
1005combined-package-build-amd64-packing: combined-package-build-amd64
1006 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1007
1008combined-package-build-x86: combined-package-build-amd64
1009 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1010
1011combined-package-build: combined-package-build-amd64-packing combined-package-build-x86
1012
1013combined-package-packing:
1014 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1015
1016
1017
1018#
1019# Common rsync bits.
1020#
1021
1022
1023## Overridable ssh name.
1024# On windows build boxes install https://github.com/PowerShell/Win32-OpenSSH/releases
1025# and point to it in LocalConfig. (The cygwin ssh frequently segfaults due to
1026# termination race or something along those lines.)
1027VBOX_SSH ?= ssh
1028VBOX_SSH_FOR_RSYNC ?= $(VBOX_SSH)
1029
1030## Overridable rsh name.
1031VBOX_RSYNC ?= rsync --rsh="$(VBOX_SSH_FOR_RSYNC)"
1032VBOX_RSYNC_NOSSH ?= rsync
1033
1034##
1035# The basic rsync invocation for syncing the tree into a VM; the source and
1036# target specs are missing.
1037#
1038# @param 1 os name.
1039# @param 2 arch or *.
1040# @param 3 nossh or empty
1041#
1042VBOX_RSYNC_IN_FN = $(if-expr "$(3)" != "nossh",$(VBOX_RSYNC),$(VBOX_RSYNC_NOSSH))\
1043 -a -v --delete --delete-excluded --prune-empty-dirs \
1044 --exclude=*.pyc \
1045 --exclude=.svn/ \
1046 --exclude=doc/Devices/ \
1047 --exclude=doc/tg/ \
1048 --exclude=doc/vp/ \
1049 --exclude=tinderclient.log \
1050 --exclude=tools/FetchDir/ \
1051 --exclude=webtools/ \
1052 --exclude=out/ \
1053 $(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
1054 --exclude=tools/$(os).x86/ \
1055 --exclude=tools/$(os).amd64/ )
1056
1057#
1058# VM IP addresses.
1059#
1060VBOX_BLD_VM_LNX_IP := 192.168.27.2
1061VBOX_BLD_VM_OS2_IP := 192.168.27.3
1062VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
1063VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
1064VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
1065VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
1066VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
1067VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
1068VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
1069VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
1070
1071VBOX_WITH_OS2_ADD_BUILD=1
1072
1073#
1074# For profiling the VM building steps.
1075#
1076if 0
1077 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
1078 VBOX_BLD_VM_MSG_END__ =
1079else
1080 VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
1081 VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
1082endif
1083
1084#
1085# For killing old build jobs in the OS/2 VM before rsyncing.
1086#
1087VBOX_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 "
1088
1089
1090#
1091# Build the additions, all of them.
1092#
1093# This is currently tailored (hardcoded) for the additions
1094# build box. Can make it pretty and configurable later.
1095#
1096# The fetching must be done in serial fashion, while the building
1097# should be more flexible wrt to -jN.
1098#
1099additions-fetch:
1100 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
1101 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
1102 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
1103 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1104 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1105ifdef VBOX_WITH_OS2_ADD_BUILD
1106 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
1107endif
1108 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1109 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1110 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1111 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1112
1113
1114## @todo Currently combined solaris additions building assumes that amd64 is
1115# built first. The windows amd64 additions need some x86 files, so don't change
1116# the order of the windows builds. TODO: Split building and packing for these two VMs.
1117additions-build: \
1118 additions-build-rsync-into-vms \
1119 additions-build-win.x86 \
1120 additions-build-win.amd64 \
1121 additions-build-solaris.amd64 \
1122 additions-build-solaris.x86 \
1123 additions-build-os2.x86 \
1124 additions-build-linux \
1125 additions-build-darwin.x86 \
1126 additions-build-darwin.amd64
1127
1128additions-build-rsync-into-vms: \
1129 additions-build-solaris.rsync-into-vm \
1130 additions-build-os2.rsync-into-vm \
1131 additions-build-darwin.x86.rsync-into-vm \
1132 additions-build-darwin.amd64.rsync-into-vm \
1133 additions-build-linux.rsync-into-vm
1134 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1135.NOTPARALLEL: additions-build-rsync-into-vms
1136.PHONY: additions-build-rsync-into-vms
1137
1138
1139VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1140 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1141
1142VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1143 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1144
1145# Automatically determine the additions build subdir name. Used for figuring
1146# out directory names inside the additions building VMs.
1147VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1148
1149# When building in parallel on a Windows host, make sure we finish the host
1150# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1151ifeq ($(KBUILD_TARGET),win)
1152VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
1153else
1154VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
1155endif
1156
1157# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1158ifeq ($(KBUILD_TARGET),win)
1159additions-build-win.amd64-just-build:
1160 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1161additions-build-win.amd64: additions-build-win.x86 additions-build-win.amd64-just-build
1162 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1163else
1164additions-build-win.amd64: additions-build-win.x86
1165 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
1166 $(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 '
1167 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
1168endif
1169
1170ifeq ($(KBUILD_TARGET),win)
1171additions-build-win.x86:
1172 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1173 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1174else
1175additions-build-win.x86:
1176 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
1177 $(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 '
1178 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
1179endif
1180
1181# ASSUMES the 64-bit edition are built first. This also serializes VM access.
1182ifeq ($(KBUILD_TARGET),solaris)
1183additions-build-solaris.amd64:
1184 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1185 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1186
1187additions-build-solaris.x86: additions-build-solaris.amd64
1188 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
1189 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
1190
1191additions-build-solaris.rsync-into-vm:
1192else
1193additions-build-solaris.rsync-into-vm:
1194 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1195 '--exclude=src/VBox/Additions/WINNT/**' \
1196 '--exclude=src/VBox/Frontends/**' \
1197 '--exclude=src/VBox/VMM/**' \
1198 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1199
1200additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
1201 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
1202 $(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 '
1203 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
1204 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
1205 $(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 '
1206 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
1207
1208additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
1209 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1210 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1211
1212.NOTPARALLEL: additions-build-solaris.rsync-into-vm
1213.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
1214
1215additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
1216additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
1217endif
1218
1219ifdef VBOX_WITH_OS2_ADD_BUILD
1220 ifeq ($(KBUILD_TARGET),os2)
1221additions-build-os2.x86:
1222 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1223 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1224
1225additions-build-os2.rsync-into-vm:
1226 else
1227additions-build-os2.rsync-into-vm:
1228 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1229 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
1230 '--exclude=src/VBox/Additions/x11/**' \
1231 '--exclude=src/VBox/Additions/WINNT/**' \
1232 '--exclude=src/VBox/Frontends/**' \
1233 '--exclude=src/VBox/VMM/**' \
1234 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1235
1236additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
1237 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
1238 $(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"
1239 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
1240
1241additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
1242 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1243 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1244
1245.NOTPARALLEL: additions-build-os2.rsync-into-vm
1246.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
1247
1248additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
1249 endif
1250#
1251else
1252additions-build-os2.x86:
1253# Dummy
1254endif
1255
1256# Linux
1257ifeq ($(KBUILD_TARGET),linux)
1258additions-build-linux.amd64:
1259 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1260 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1261
1262additions-build-linux.x86:
1263 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1264 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1265
1266additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1267 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1268 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1269else
1270additions-build-linux.rsync-into-vm:
1271 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1272 '--exclude=src/VBox/Additions/WINNT/**' \
1273 '--exclude=src/VBox/Frontends/**' \
1274 '--exclude=src/VBox/VMM/**' \
1275 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1276
1277additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1278 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1279 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1280 $(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 " '
1281 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1282 endif
1283 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1284 $(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) " '
1285 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1286 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1287 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1288 $(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 " '
1289 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1290 endif
1291 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1292 $(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) " '
1293 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1294 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1295 $(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 " '
1296 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1297
1298additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1299 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1300 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1301
1302.NOTPARALLEL: additions-build-linux.rsync-into-vm
1303.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1304
1305additions-build-linux: additions-build-linux.rsync-out-of-vm
1306endif
1307
1308# Darwin
1309ifeq ($(KBUILD_TARGET),darwin)
1310additions-build-darwin.amd64:
1311 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1312 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1313
1314additions-build-darwin.x86:
1315 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1316 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1317
1318additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
1319.PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
1320else
1321additions-build-darwin.amd64.rsync-into-vm:
1322 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1323 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1324 '--exclude=src/libs/xpcom18a4/**' \
1325 '--exclude=src/libs/curl*/**' \
1326 '--exclude=src/libs/libxml*/**' \
1327 '--exclude=src/libs/libvpx*/**' \
1328 '--exclude=src/libs/libopus*/**' \
1329 '--exclude=src/VBox/Additions/WINNT/**' \
1330 '--exclude=src/VBox/Additions/x11/**' \
1331 '--exclude=src/VBox/Artwork/x11/**' \
1332 '--exclude=src/VBox/Devices/**' \
1333 '--exclude=src/VBox/Disassembler/**' \
1334 '--exclude=src/VBox/ExtPacks/**' \
1335 '--exclude=src/VBox/Frontends/**' \
1336 '--exclude=src/VBox/HostDriver/**' \
1337 '--exclude=src/VBox/HostService/**' \
1338 '--exclude=src/VBox/ImageMounter/**' \
1339 '--exclude=src/VBox/Installer/win/**' \
1340 '--exclude=src/VBox/Main/**' \
1341 '--exclude=src/VBox/NetworkService/**' \
1342 '--exclude=src/VBox/RDP/**' \
1343 '--exclude=src/VBox/Storage/**' \
1344 '--exclude=src/VBox/ValidationKit/**' \
1345 '--exclude=src/VBox/VMM/**' \
1346 '--exclude=src/apps/**' \
1347 '--exclude=src/recompiler/**' \
1348 . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1349
1350additions-build-darwin.x86.rsync-into-vm:
1351 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1352 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1353 '--exclude=src/libs/xpcom18a4/**' \
1354 '--exclude=src/libs/curl*/**' \
1355 '--exclude=src/libs/libxml*/**' \
1356 '--exclude=src/libs/libvpx*/**' \
1357 '--exclude=src/libs/libopus*/**' \
1358 '--exclude=src/VBox/Additions/WINNT/**' \
1359 '--exclude=src/VBox/Additions/x11/**' \
1360 '--exclude=src/VBox/Artwork/x11/**' \
1361 '--exclude=src/VBox/Devices/**' \
1362 '--exclude=src/VBox/Disassembler/**' \
1363 '--exclude=src/VBox/ExtPacks/**' \
1364 '--exclude=src/VBox/Frontends/**' \
1365 '--exclude=src/VBox/HostDriver/**' \
1366 '--exclude=src/VBox/HostService/**' \
1367 '--exclude=src/VBox/ImageMounter/**' \
1368 '--exclude=src/VBox/Installer/win/**' \
1369 '--exclude=src/VBox/Main/**' \
1370 '--exclude=src/VBox/NetworkService/**' \
1371 '--exclude=src/VBox/RDP/**' \
1372 '--exclude=src/VBox/Storage/**' \
1373 '--exclude=src/VBox/ValidationKit/**' \
1374 '--exclude=src/VBox/VMM/**' \
1375 '--exclude=src/apps/**' \
1376 '--exclude=src/recompiler/**' \
1377 . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1378
1379additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
1380 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
1381 $(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
1382 $(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
1383 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
1384
1385additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
1386 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
1387 $(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
1388# 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
1389 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
1390
1391additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
1392 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1393
1394additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
1395 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1396
1397additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
1398additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
1399additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
1400
1401.PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
1402 additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
1403endif
1404
1405
1406additions-packing:
1407 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1408 VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
1409 VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
1410 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1411 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1412 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1413 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1414 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1415 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1416 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1417 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1418 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1419 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1420 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1421 -C src/VBox/Additions \
1422 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1423
1424.PHONY: \
1425 additions-build-win.x86 \
1426 additions-build-win.amd64 \
1427 additions-build-solaris.amd64 \
1428 additions-build-solaris.x86 \
1429 additions-build-os2.x86 \
1430 additions-build-linux \
1431 additions-build-linux.amd64 \
1432 additions-build-linux.x86 \
1433 additions-build-linux.x86.combined \
1434 additions-build-darwin \
1435 additions-build-darwin.x86 \
1436 additions-build-darwin.amd64 \
1437 additions-packing
1438
1439
1440#
1441# Build the extension packs, all of them.
1442#
1443# This is tailored (hardcoded) for the extension pack build box.
1444#
1445# The fetching must be done in serial fashion, while the building should be
1446# more flexible wrt to -jN.
1447#
1448extpacks-fetch:
1449 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1450 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1451# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1452 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1453 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1454 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1455if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1456 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1457# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1458 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1459# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1460 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1461endif
1462
1463
1464extpacks-build: \
1465 extpacks-build-win.amd64 \
1466 extpacks-build-win.x86 \
1467 extpacks-build-solaris.amd64 \
1468 extpacks-build-os2.x86 \
1469 extpacks-build-linux \
1470 extpacks-build-darwin.amd64 \
1471 extpacks-build-freebsd.amd64 \
1472 extpacks-build-freebsd.x86
1473
1474VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1475 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1476
1477VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1478 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1479
1480# Automatically determine the extpack build subdir name. Used for figuring out
1481# directory names inside the extension pack building VMs.
1482VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1483
1484# When building in parallel on a Windows host, make sure we finish the host
1485# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1486ifeq ($(KBUILD_TARGET),win)
1487VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1488else
1489VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1490endif
1491
1492extpacks-build-win.amd64:
1493ifeq ($(KBUILD_TARGET),win)
1494 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1495else
1496 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1497 $(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 '
1498 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1499endif
1500
1501extpacks-build-win.x86:
1502if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1503 ifeq ($(KBUILD_TARGET),win)
1504 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1505 else
1506 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1507 $(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 '
1508 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1509 endif
1510else
1511 @$(ECHO) "nothing to do for unsupported host $@"
1512endif
1513
1514ifeq ($(KBUILD_TARGET),solaris)
1515extpacks-build-solaris.amd64:
1516 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1517
1518else
1519# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1520extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1521 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1522
1523extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1524 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1525 $(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 '
1526 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1527
1528extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1529 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1530
1531#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1532.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1533
1534extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1535endif
1536
1537extpacks-build-os2.x86:
1538#ifeq ($(KBUILD_TARGET),os2)
1539# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1540#else
1541# $(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) '
1542#endif
1543
1544ifeq ($(KBUILD_TARGET),linux)
1545extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1546 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1547
1548extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1549 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1550 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1551 else
1552 @$(ECHO) "nothing to do for unsupported host $@"
1553 endif
1554
1555extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1556else
1557# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1558extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1559 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1560
1561extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1562 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1563 $(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 " '
1564 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1565 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1566 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1567 $(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 " '
1568 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1569 endif
1570
1571extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1572 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1573 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1574 endif
1575 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1576
1577#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1578.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1579
1580extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1581endif
1582
1583extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1584#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1585# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1586#else
1587# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1588# $(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 '
1589# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1590#endif
1591
1592extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1593#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1594# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1595#else
1596# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1597# $(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 '
1598# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1599#endif
1600
1601extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1602ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1603 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1604else
1605 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1606 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1607 $(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 '
1608 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1609 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1610endif
1611
1612extpacks-packing:
1613if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1614 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1615 VBOX_ONLY_EXTPACKS=1 packing
1616else
1617 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 solaris.amd64 win.amd64" \
1618 VBOX_ONLY_EXTPACKS=1 packing
1619endif
1620# +++ freebsd.amd64 ^^^
1621
1622.PHONY: \
1623 extpacks-build-win.x86 \
1624 extpacks-build-win.amd64 \
1625 extpacks-build-solaris.amd64 \
1626 extpacks-build-os2.x86 \
1627 extpacks-build-linux \
1628 extpacks-build-linux.amd64 \
1629 extpacks-build-linux.x86 \
1630 extpacks-build-freebsd.amd64 \
1631 extpacks-build-freebsd.x86 \
1632 extpacks-build-darwin.amd64 \
1633 extpacks-packing
1634
1635
1636#
1637# Build the test suite, all of it.
1638#
1639# This is currently tailored (hardcoded) for the additions build box just like
1640# the additions build above, which it in fact is a copy of.
1641#
1642validationkit-fetch:
1643 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1644 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1645 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1646# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1647# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1648 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1649 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1650 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1651 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1652 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1653 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1654 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1655
1656
1657validationkit-build: \
1658 validationkit-build-rsync-into-vms \
1659 validationkit-build-solaris.amd64 \
1660 validationkit-build-solaris.x86 \
1661 validationkit-build-win.x86 \
1662 validationkit-build-win.amd64 \
1663 validationkit-build-os2.x86 \
1664 validationkit-build-linux \
1665 validationkit-build-freebsd.amd64 \
1666 validationkit-build-freebsd.x86 \
1667 validationkit-build-darwin.amd64 \
1668 validationkit-build-darwin.x86
1669
1670validationkit-build-rsync-into-vms: \
1671 validationkit-build-solaris.rsync-into-vm \
1672 validationkit-build-os2.rsync-into-vm \
1673 validationkit-build-linux.rsync-into-vm
1674 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1675.NOTPARALLEL: validationkit-build-rsync-into-vms
1676.PHONY: validationkit-build-rsync-into-vms
1677
1678
1679VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1680 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1681
1682VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1683 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1684
1685# Automatically determine the Validation Kit build subdir name. Used for figuring
1686# out directory names inside the test suite building VMs.
1687VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1688
1689# When building in parallel on a Windows host, make sure we finish the host
1690# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1691ifeq ($(KBUILD_TARGET),win)
1692VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1693else
1694VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1695endif
1696
1697validationkit-build-win.amd64:
1698ifeq ($(KBUILD_TARGET),win)
1699 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1700else
1701 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1702 $(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 '
1703 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1704endif
1705
1706validationkit-build-win.x86:
1707ifeq ($(KBUILD_TARGET),win)
1708 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1709else
1710 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1711 $(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 '
1712 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1713endif
1714
1715ifeq ($(KBUILD_TARGET),solaris)
1716validationkit-build-solaris.amd64:
1717 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1718
1719validationkit-build-solaris.x86:
1720 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1721
1722else
1723validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1724 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1725 '--exclude=src/VBox/Additions/WINNT/**' \
1726 '--exclude=src/VBox/Frontends/**' \
1727 '--exclude=src/VBox/VMM/**' \
1728 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1729
1730validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1731 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1732 $(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 '
1733 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1734 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1735 $(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 '
1736 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1737
1738validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1739 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1740 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1741
1742.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1743
1744validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1745validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1746endif
1747
1748ifeq ($(KBUILD_TARGET),os2)
1749validationkit-build-os2.x86:
1750 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1751validationkit-build-os2.rsync-into-vm:
1752else # !OS/2
1753validationkit-build-os2.rsync-into-vm:
1754 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1755 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
1756 '--exclude=src/VBox/Additions/x11/**' \
1757 '--exclude=src/VBox/Additions/WINNT/**' \
1758 '--exclude=src/VBox/Frontends/**' \
1759 '--exclude=src/VBox/VMM/**' \
1760 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1761
1762validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1763 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1764 $(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"
1765 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1766
1767validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1768 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1769 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1770
1771.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1772
1773validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1774endif # !OS/2
1775
1776ifeq ($(KBUILD_TARGET),linux)
1777validationkit-build-linux.amd64:
1778 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1779
1780validationkit-build-linux.x86:
1781 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1782
1783validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1784else
1785validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1786 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1787 '--exclude=src/VBox/Additions/WINNT/**' \
1788 '--exclude=src/VBox/Frontends/**' \
1789 '--exclude=src/VBox/VMM/**' \
1790 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1791
1792validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1793 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1794 $(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 " '
1795 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1796 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1797 $(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 " '
1798 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1799
1800validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1801 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1802 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1803
1804.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1805
1806validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1807endif
1808
1809validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1810#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1811# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1812#else
1813# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1814# $(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 '
1815# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1816#endif
1817
1818validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1819#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1820# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1821#else
1822# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1823# $(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 '
1824# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1825#endif
1826
1827validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1828ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1829 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1830else
1831 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1832 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1833 $(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 '
1834 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1835 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1836endif
1837
1838validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1839ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1840 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1841else
1842 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1843 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1844 $(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 '
1845 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1846 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1847endif
1848
1849
1850validationkit-packing:
1851 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1852 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1853 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1854 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1855 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1856 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1857 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1858 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1859 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1860 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1861 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1862 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1863 -C src/VBox/ValidationKit \
1864 $(PATH_OUT)/VBoxValidationKit.zip \
1865 $(PATH_OUT)/VBoxTestBoxScript.zip
1866
1867.PHONY: \
1868 validationkit-build-win.x86 \
1869 validationkit-build-win.amd64 \
1870 validationkit-build-solaris.amd64 \
1871 validationkit-build-solaris.x86 \
1872 validationkit-build-os2.x86 \
1873 validationkit-build-linux \
1874 validationkit-build-linux.amd64 \
1875 validationkit-build-linux.x86 \
1876 validationkit-build-freebsd.amd64 \
1877 validationkit-build-freebsd.x86 \
1878 validationkit-build-darwin.amd64 \
1879 validationkit-build-darwin.x86 \
1880 validationkit-packing
1881
1882
1883#
1884# Build the EFI firmware, all of it.
1885#
1886efi-fetch:
1887 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1888
1889efi-build: $(VBOX_VERSION_HEADER)
1890 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
1891
1892efi-packing:
1893 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
1894
1895
1896#
1897# Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
1898# - includes kBuild
1899# - must be executed on an PUEL checkout
1900#
1901
1902# the path where to store the zip archive
1903ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1904# the root directory inside the zip archive
1905ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1906# the name of the zip archive
1907ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1908snapshot-puel:
1909 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1910 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1911 echo; \
1912 echo "Did not find RDP stuff, is this an OSE branch?"; \
1913 echo; \
1914 exit 1; \
1915 fi
1916 @if [ -z "$(PASSWORD)" ]; then \
1917 echo; \
1918 echo "Please specify a password with PASSWORD=..."; \
1919 echo; \
1920 exit 1; \
1921 fi
1922 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1923 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1924 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1925 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1926 $(QUIET)(cd $(ZIPPATH); 7z a \
1927 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1928 -xr!.svn \
1929 -i!$(ZIPROOT)/Config.kmk \
1930 -i!$(ZIPROOT)/Doxyfile.Core \
1931 -i!$(ZIPROOT)/Makefile.kmk \
1932 -i!$(ZIPROOT)/configure \
1933 -i!$(ZIPROOT)/configure.vbs \
1934 -i!$(ZIPROOT)/doc \
1935 -i!$(ZIPROOT)/include \
1936 -i!$(ZIPROOT)/kBuild \
1937 -i!$(ZIPROOT)/src \
1938 -i!$(ZIPROOT)/tools/env.sh \
1939 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1940 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1941 -x!$(ZIPROOT)/doc/Devices \
1942 -x!$(ZIPROOT)/doc/\*pdf \
1943 -x!$(ZIPROOT)/doc/VMM \
1944 -x!$(ZIPROOT)/doc/licenses_old \
1945 -x!$(ZIPROOT)/doc/manual/de_DE \
1946 -x!$(ZIPROOT)/doc/manual/fr_FR \
1947 -x!$(ZIPROOT)/src/tests \
1948 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1949 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1950 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1951 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1952 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1953 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1954 $(ZIPPATH)/$(ZIPNAME))
1955 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1956
1957
1958#
1959# Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
1960# - includes kBuild
1961#
1962
1963snapshot-ose:
1964ifndef VBOX_OSE
1965 $(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
1966 $(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
1967 $(KBUILD_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
1968 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
1969 $(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
1970 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
1971else
1972 $(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
1973 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
1974 $(REDIRECT) -C $(PATH_ROOT) -- \
1975 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
1976endif
1977
1978
1979#
1980# Generate ALL the rules.
1981#
1982include $(FILE_KBUILD_SUB_FOOTER)
1983
1984
1985#
1986# Generate x86.mac and err.mac.
1987#
1988incs:
1989 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1990 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1991 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1992 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1993 $(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
1994 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
1995 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1996 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
1997 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1998 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1999
2000
2001#
2002# Legacy.
2003#
2004vslick.h:
2005 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
2006 exit 1
2007
2008
2009#
2010# Add fetching of the tools to the 'up[date][2]' targets.
2011#
2012up update up2 update2::
2013ifndef VBOX_OSE
2014 +$(MAKE) -C tools fetch
2015else
2016 $(MAKE) -C tools -f Makefile-ose.kmk fetch
2017endif
2018
2019
2020#
2021# Aliases for building the SDK.
2022#
2023.NOTPARALLEL: sdk sdk-fetch
2024sdk:
2025 + $(KMK) VBOX_ONLY_SDK=1 \
2026 pass_bldprogs pass_others pass_installs pass_packing
2027
2028sdk-fetch:
2029 + $(KMK) VBOX_ONLY_SDK=1 -C tools
2030
2031
2032#
2033# Build the essentials to run a VM. Incomplete. Use with care!
2034#
2035quick: \
2036 VBoxRT \
2037 VBoxVMM \
2038 VMMR0 \
2039 VBoxDD \
2040 VBoxDDR0 \
2041 VBoxDD2 \
2042 VBoxDD2R0 \
2043 VBoxC \
2044 VBoxSVC \
2045 $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
2046 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
2047 $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
2048 $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
2049
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