VirtualBox

source: vbox/trunk/Makefile.kmk@ 52590

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

typo

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