VirtualBox

source: vbox/trunk/Makefile.kmk@ 84551

Last change on this file since 84551 was 84467, checked in by vboxsync, 5 years ago

/Makefile.kmk: Don't include VCC*.kmk files more than once. bugref:8489

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