VirtualBox

source: vbox/trunk/Makefile.kmk@ 58491

Last change on this file since 58491 was 58490, checked in by vboxsync, 9 years ago

/Makefile.kmk: efi-build: Build new Firmware, at least for a while.

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