VirtualBox

source: vbox/trunk/Makefile.kmk@ 69091

Last change on this file since 69091 was 69072, checked in by vboxsync, 7 years ago

Makefile.kmk: temporary kBuild typo workaround

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