VirtualBox

source: vbox/trunk/Makefile.kmk@ 52618

Last change on this file since 52618 was 52609, checked in by vboxsync, 10 years ago

New LocalConfig.kmk option VBOX_WITH_QT_PDBS=1 for fetching and installing Qt PDBs (windows).

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