VirtualBox

source: vbox/trunk/Makefile.kmk@ 54474

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

Makefile.kmk: bugfix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 74.0 KB
Line 
1# $Id: Makefile.kmk 52855 2014-09-25 10:59:06Z 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_IP := 192.168.27.2
813VBOX_BLD_VM_OS2_IP := 192.168.27.3
814VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
815VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
816VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
817VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
818VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
819VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
820VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
821
822VBOX_WITH_OS2_ADD_BUILD=1
823
824#
825# For profiling the VM building steps.
826#
827if 0
828 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
829 VBOX_BLD_VM_MSG_END__ =
830else
831 VBOX_BLD_VM_MSG_BEGIN = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Start building $1.
832 VBOX_BLD_VM_MSG_END__ = @echo `date "+%Y-%m-%dT%H:%M:%S"` - Done building $1.
833endif
834
835#
836# Build the additions, all of them.
837#
838# This is currently tailored (hardcoded) for the additions
839# build box. Can make it pretty and configurable later.
840#
841# The fetching must be done in serial fashion, while the building
842# should be more flexible wrt to -jN.
843#
844additions-fetch:
845 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
846 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
847 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
848ifdef VBOX_WITH_OS2_ADD_BUILD
849 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
850endif
851 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
852 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
853 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
854 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
855
856
857## @todo Currently combined solaris additions building assumes that amd64 is
858# built first. The windows amd64 additions need some x86 files, so don't change
859# the order of the windows builds. TODO: Split building and packing for these two VMs.
860additions-build: \
861 additions-build-rsync-into-vms \
862 additions-build-win.x86 \
863 additions-build-win.amd64 \
864 additions-build-solaris.amd64 \
865 additions-build-solaris.x86 \
866 additions-build-os2.x86 \
867 additions-build-linux
868
869additions-build-rsync-into-vms: \
870 additions-build-solaris.rsync-into-vm \
871 additions-build-os2.rsync-into-vm \
872 additions-build-linux.rsync-into-vm
873 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
874.NOTPARALLEL: additions-build-rsync-into-vms
875.PHONY: additions-build-rsync-into-vms
876
877
878VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
879 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
880 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
881 VBOX_SVN_REV=$(VBOX_SVN_REV)
882
883VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
884 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
885 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
886 VBOX_SVN_REV=$(VBOX_SVN_REV)
887
888# Automatically determine the additions build subdir name. Used for figuring
889# out directory names inside the additions building VMs.
890VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
891
892# When building in parallel on a Windows host, make sure we finish the host
893# bit before kicking off any UNIX guest or we'll run into file sharing issues.
894ifeq ($(KBUILD_TARGET),win)
895VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
896else
897VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
898endif
899
900# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
901additions-build-win.amd64: additions-build-win.x86
902ifeq ($(KBUILD_TARGET),win)
903 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
904 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
905else
906 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
907 $(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 "
908 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
909endif
910
911additions-build-win.x86:
912ifeq ($(KBUILD_TARGET),win)
913 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
914 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
915else
916 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
917 $(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"
918 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
919endif
920
921# ASSUMES the 64-bit edition are built first. This also serializes VM access.
922ifeq ($(KBUILD_TARGET),solaris)
923additions-build-solaris.amd64:
924 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
925 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
926
927additions-build-solaris.x86: additions-build-solaris.amd64
928 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
929 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
930
931additions-build-solaris.rsync-into-vm:
932else
933additions-build-solaris.rsync-into-vm:
934 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
935 '--exclude=src/VBox/Additions/WINNT/**' \
936 '--exclude=src/VBox/Frontends/**' \
937 '--exclude=src/VBox/VMM/**' \
938 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
939
940additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
941 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
942 $(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"
943 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
944 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
945 $(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"
946 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
947
948additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
949 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
950 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
951
952.NOTPARALLEL: additions-build-solaris.rsync-into-vm
953.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
954
955additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
956additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
957endif
958
959ifdef VBOX_WITH_OS2_ADD_BUILD
960 ifeq ($(KBUILD_TARGET),os2)
961additions-build-os2.x86:
962 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
963 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
964
965additions-build-os2.rsync-into-vm:
966 else
967additions-build-os2.rsync-into-vm:
968 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
969 '--exclude=src/VBox/Additions/x11/**' \
970 '--exclude=src/VBox/Additions/WINNT/**' \
971 '--exclude=src/VBox/Frontends/**' \
972 '--exclude=src/VBox/VMM/**' \
973 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
974
975additions-build-os2.build-it: additions-build-os2.rsync-into-vm
976 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
977 $(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"
978 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
979
980additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
981 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
982
983.NOTPARALLEL: additions-build-os2.rsync-into-vm
984.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
985
986additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
987 endif
988#
989else
990additions-build-os2.x86:
991# Dummy
992endif
993
994ifeq ($(KBUILD_TARGET),linux)
995additions-build-linux.amd64:
996 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
997 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
998
999additions-build-linux.x86:
1000 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1001 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1002
1003additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1004 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1005 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1006else
1007additions-build-linux.rsync-into-vm:
1008 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1009 '--exclude=src/VBox/Additions/WINNT/**' \
1010 '--exclude=src/VBox/Frontends/**' \
1011 '--exclude=src/VBox/VMM/**' \
1012 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1013
1014additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1015 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1016 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1017 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && dchroot -c ubuntu-11.10-amd64 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
1018 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1019 endif
1020 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1021 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING)\""'
1022 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1023 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1024 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1025 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 dchroot -c ubuntu-11.10-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && BUILD_PLATFORM_ARCH=x86 tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter\""'
1026 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1027 endif
1028 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1029 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING)\""'
1030 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1031 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1032 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) "echo $@ && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1\""'
1033 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1034
1035additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1036 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1037 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1038
1039.NOTPARALLEL: additions-build-linux.rsync-into-vm
1040.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1041
1042additions-build-linux: additions-build-linux.rsync-out-of-vm
1043endif
1044
1045additions-packing:
1046 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1047 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1048 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1049 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1050 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1051 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1052 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1053 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1054 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1055 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1056 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1057 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1058 -C src/VBox/Additions \
1059 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1060
1061.PHONY: \
1062 additions-build-win.x86 \
1063 additions-build-win.amd64 \
1064 additions-build-solaris.amd64 \
1065 additions-build-solaris.x86 \
1066 additions-build-os2.x86 \
1067 additions-build-linux \
1068 additions-build-linux.amd64 \
1069 additions-build-linux.x86 \
1070 additions-build-linux.x86.combined \
1071 additions-packing
1072
1073
1074#
1075# Build the extension packs, all of them.
1076#
1077# This is tailored (hardcoded) for the extension pack build box.
1078#
1079# The fetching must be done in serial fashion, while the building should be
1080# more flexible wrt to -jN.
1081#
1082extpacks-fetch:
1083 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1084 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1085 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1086# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1087# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1088 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1089 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1090# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1091 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1092 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1093 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1094
1095
1096extpacks-build: \
1097 extpacks-build-win.amd64 \
1098 extpacks-build-win.x86 \
1099 extpacks-build-solaris.amd64 \
1100 extpacks-build-os2.x86 \
1101 extpacks-build-linux \
1102 extpacks-build-darwin.amd64 \
1103 extpacks-build-darwin.x86 \
1104 extpacks-build-freebsd.amd64 \
1105 extpacks-build-freebsd.x86
1106
1107VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1108 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1109 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1110 VBOX_SVN_REV=$(VBOX_SVN_REV)
1111
1112VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1113 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1114 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1115 VBOX_SVN_REV=$(VBOX_SVN_REV)
1116
1117# Automatically determine the extpack build subdir name. Used for figuring out
1118# directory names inside the extension pack building VMs.
1119VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1120
1121# When building in parallel on a Windows host, make sure we finish the host
1122# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1123ifeq ($(KBUILD_TARGET),win)
1124VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1125else
1126VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1127endif
1128
1129extpacks-build-win.amd64:
1130ifeq ($(KBUILD_TARGET),win)
1131 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1132else
1133 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1134 $(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"
1135 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1136endif
1137
1138extpacks-build-win.x86:
1139ifeq ($(KBUILD_TARGET),win)
1140 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1141else
1142 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1143 $(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"
1144 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1145endif
1146
1147ifeq ($(KBUILD_TARGET),solaris)
1148extpacks-build-solaris.amd64:
1149 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1150
1151else
1152# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1153extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1154 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1155
1156extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1157 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1158 $(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"
1159 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1160
1161extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1162 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1163
1164#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1165.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1166
1167extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1168endif
1169
1170extpacks-build-os2.x86:
1171#ifeq ($(KBUILD_TARGET),os2)
1172# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1173#else
1174# $(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) "
1175#endif
1176
1177ifeq ($(KBUILD_TARGET),linux)
1178extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1179 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1180
1181extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1182 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1183
1184extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1185else
1186# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1187extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1188 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1189
1190extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1191 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1192 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all\""'
1193 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1194 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1195 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c debian-4.0-i386 \"cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all\""'
1196 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1197
1198extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1199 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1200 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1201
1202#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1203.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1204
1205extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1206endif
1207
1208extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1209#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1210# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1211#else
1212# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1213# $(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"
1214# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1215#endif
1216
1217extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1218#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1219# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1220#else
1221# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1222# $(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"
1223# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1224#endif
1225
1226extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1227ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1228 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1229else
1230 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1231 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1232 $(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"
1233 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1234 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1235endif
1236
1237extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1238ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1239 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1240else
1241 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 extension packs)
1242 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1243 $(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"
1244 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1245 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 extension packs)
1246endif
1247
1248
1249extpacks-packing:
1250 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1251 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1252 packing
1253# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1254
1255.PHONY: \
1256 extpacks-build-win.x86 \
1257 extpacks-build-win.amd64 \
1258 extpacks-build-solaris.amd64 \
1259 extpacks-build-os2.x86 \
1260 extpacks-build-linux \
1261 extpacks-build-linux.amd64 \
1262 extpacks-build-linux.x86 \
1263 extpacks-build-freebsd.amd64 \
1264 extpacks-build-freebsd.x86 \
1265 extpacks-build-darwin.amd64 \
1266 extpacks-build-darwin.x86 \
1267 extpacks-packing
1268
1269
1270#
1271# Build the test suite, all of it.
1272#
1273# This is currently tailored (hardcoded) for the additions build box just like
1274# the additions build above, which it in fact is a copy of.
1275#
1276validationkit-fetch:
1277 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1278 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1279 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1280# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1281# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1282 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1283 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1284 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1285 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1286 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1287 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1288 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1289
1290
1291validationkit-build: \
1292 validationkit-build-rsync-into-vms \
1293 validationkit-build-solaris.amd64 \
1294 validationkit-build-solaris.x86 \
1295 validationkit-build-win.x86 \
1296 validationkit-build-win.amd64 \
1297 validationkit-build-os2.x86 \
1298 validationkit-build-linux \
1299 validationkit-build-freebsd.amd64 \
1300 validationkit-build-freebsd.x86 \
1301 validationkit-build-darwin.amd64 \
1302 validationkit-build-darwin.x86
1303
1304validationkit-build-rsync-into-vms: \
1305 validationkit-build-solaris.rsync-into-vm \
1306 validationkit-build-os2.rsync-into-vm \
1307 validationkit-build-linux.rsync-into-vm
1308 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1309.NOTPARALLEL: validationkit-build-rsync-into-vms
1310.PHONY: validationkit-build-rsync-into-vms
1311
1312
1313VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1314 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1315 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1316 VBOX_SVN_REV=$(VBOX_SVN_REV)
1317
1318VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1319 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1320 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1321 VBOX_SVN_REV=$(VBOX_SVN_REV)
1322
1323# Automatically determine the Validation Kit build subdir name. Used for figuring
1324# out directory names inside the test suite building VMs.
1325VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1326
1327# When building in parallel on a Windows host, make sure we finish the host
1328# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1329ifeq ($(KBUILD_TARGET),win)
1330VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1331else
1332VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1333endif
1334
1335# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1336validationkit-build-win.amd64: validationkit-build-win.x86
1337ifeq ($(KBUILD_TARGET),win)
1338 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1339else
1340 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1341 $(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 "
1342 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1343endif
1344
1345validationkit-build-win.x86:
1346ifeq ($(KBUILD_TARGET),win)
1347 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1348else
1349 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1350 $(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"
1351 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1352endif
1353
1354ifeq ($(KBUILD_TARGET),solaris)
1355validationkit-build-solaris.amd64:
1356 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1357
1358validationkit-build-solaris.x86:
1359 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1360
1361else
1362validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1363 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,solaris,*) \
1364 '--exclude=src/VBox/Additions/WINNT/**' \
1365 '--exclude=src/VBox/Frontends/**' \
1366 '--exclude=src/VBox/VMM/**' \
1367 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1368
1369validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1370 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1371 $(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"
1372 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1373 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1374 $(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 "
1375 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1376
1377validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1378 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1379 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1380
1381.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1382
1383validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1384validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1385endif
1386
1387ifeq ($(KBUILD_TARGET),os2)
1388validationkit-build-os2.x86:
1389 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1390validationkit-build-os2.rsync-into-vm:
1391else # !OS/2
1392validationkit-build-os2.rsync-into-vm:
1393 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,os2,*) \
1394 '--exclude=src/VBox/Additions/x11/**' \
1395 '--exclude=src/VBox/Additions/WINNT/**' \
1396 '--exclude=src/VBox/Frontends/**' \
1397 '--exclude=src/VBox/VMM/**' \
1398 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1399
1400validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1401 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1402 $(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"
1403 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1404
1405validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1406 $(VBOX_KMK_TIME) rsync -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1407
1408.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1409
1410validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1411endif # !OS/2
1412
1413ifeq ($(KBUILD_TARGET),linux)
1414validationkit-build-linux.amd64:
1415 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1416
1417validationkit-build-linux.x86:
1418 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1419
1420validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1421else
1422validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1423 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,linux,*) \
1424 '--exclude=src/VBox/Additions/WINNT/**' \
1425 '--exclude=src/VBox/Frontends/**' \
1426 '--exclude=src/VBox/VMM/**' \
1427 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1428
1429validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1430 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1431 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/amd64 && dchroot -c debian-4.0-amd64 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all\""'
1432 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1433 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1434 $(VBOX_KMK_TIME) ssh 'vbox@$(VBOX_BLD_VM_LNX_IP) " echo $@/x86 && linux32 dchroot -c rhel3-i386 \"cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all\""'
1435 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1436
1437validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1438 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1439 $(VBOX_KMK_TIME) rsync -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1440
1441.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1442
1443validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1444endif
1445
1446validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1447#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1448# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1449#else
1450# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1451# $(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"
1452# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1453#endif
1454
1455validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1456#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1457# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1458#else
1459# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1460# $(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"
1461# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1462#endif
1463
1464validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1465ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1466 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1467else
1468 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1469 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1470 $(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"
1471 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1472 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1473endif
1474
1475validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1476ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1477 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1478else
1479 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1480 $(VBOX_KMK_TIME) $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1481 $(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"
1482 $(VBOX_KMK_TIME) rsync -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1483 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1484endif
1485
1486
1487validationkit-packing:
1488 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1489 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1490 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1491 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1492 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1493 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1494 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1495 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1496 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1497 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1498 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1499 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1500 -C src/VBox/ValidationKit \
1501 $(PATH_OUT)/VBoxValidationKit.zip \
1502 $(PATH_OUT)/VBoxTestBoxScript.zip
1503
1504.PHONY: \
1505 validationkit-build-win.x86 \
1506 validationkit-build-win.amd64 \
1507 validationkit-build-solaris.amd64 \
1508 validationkit-build-solaris.x86 \
1509 validationkit-build-os2.x86 \
1510 validationkit-build-linux \
1511 validationkit-build-linux.amd64 \
1512 validationkit-build-linux.x86 \
1513 validationkit-build-freebsd.amd64 \
1514 validationkit-build-freebsd.x86 \
1515 validationkit-build-darwin.amd64 \
1516 validationkit-build-darwin.x86 \
1517 validationkit-packing
1518
1519
1520#
1521# Build the EFI firmware, all of it.
1522#
1523efi-fetch:
1524 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1525
1526efi-build: $(VBOX_VERSION_HEADER)
1527 + $(KMK) -C src/VBox/Devices/EFI/Firmware
1528
1529efi-packing:
1530 $(REDIRECT) -C "$(PATH_STAGE_BIN)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X \
1531 ../VBoxEfiFirmware.zip \
1532 VBoxEFI32.fd \
1533 VBoxEFI64.fd
1534## @todo zip up debug info as well!
1535
1536#
1537# Generate VirtualBox-x.x.x.tar.bz2 (OSE) tarballs for distribution
1538# - includes kBuild
1539# - must be executed on an OSE checkout
1540#
1541
1542# the path where to store the tarball
1543TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
1544# the root directory inside the tarball
1545TARBALLROOT ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING))
1546# the name of the tarball file
1547TARBALLNAME ?= VirtualBox-$(subst _OSE,,$(VBOX_VERSION_STRING)).tar.bz2
1548snapshot-ose:
1549 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
1550 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1551 echo; \
1552 echo "Found RDP stuff, refused to build OSE tarball!"; \
1553 echo; \
1554 exit 1; \
1555 fi; \
1556 if [ -z "$(VBOX_OSE)" ]; then \
1557 echo; \
1558 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1559 echo; \
1560 exit 1; \
1561 fi
1562 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
1563 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
1564 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
1565 $(QUIET)tar -cjh --dereference --owner 0 --group 0 --totals \
1566 --exclude=.svn \
1567 --exclude=$(TARBALLROOT)/out \
1568 --exclude=$(TARBALLROOT)/env.sh \
1569 --exclude=$(TARBALLROOT)/configure.log \
1570 --exclude=$(TARBALLROOT)/build.log \
1571 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1572 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
1573 --exclude=$(TARBALLROOT)/prebuild \
1574 -C $(TARBALLPATH) \
1575 -f $(TARBALLPATH)/$(TARBALLNAME) \
1576 $(TARBALLROOT)
1577 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
1578
1579
1580#
1581# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1582# - includes kBuild
1583# - must be executed on an PUEL checkout
1584#
1585
1586# the path where to store the zip archive
1587ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1588# the root directory inside the zip archive
1589ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1590# the name of the zip archive
1591ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1592snapshot-puel:
1593 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1594 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1595 echo; \
1596 echo "Did not find RDP stuff, is this an OSE branch?"; \
1597 echo; \
1598 exit 1; \
1599 fi
1600 @if [ -z "$(PASSWORD)" ]; then \
1601 echo; \
1602 echo "Please specify a password with PASSWORD=..."; \
1603 echo; \
1604 exit 1; \
1605 fi
1606 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1607 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1608 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1609 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1610 $(QUIET)(cd $(ZIPPATH); 7z a \
1611 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1612 -xr!.svn \
1613 -i!$(ZIPROOT)/Config.kmk \
1614 -i!$(ZIPROOT)/Doxyfile.Core \
1615 -i!$(ZIPROOT)/Makefile.kmk \
1616 -i!$(ZIPROOT)/configure \
1617 -i!$(ZIPROOT)/configure.vbs \
1618 -i!$(ZIPROOT)/doc \
1619 -i!$(ZIPROOT)/include \
1620 -i!$(ZIPROOT)/kBuild \
1621 -i!$(ZIPROOT)/src \
1622 -i!$(ZIPROOT)/tools/env.sh \
1623 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1624 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1625 -x!$(ZIPROOT)/doc/Devices \
1626 -x!$(ZIPROOT)/doc/\*pdf \
1627 -x!$(ZIPROOT)/doc/VMM \
1628 -x!$(ZIPROOT)/doc/licenses_old \
1629 -x!$(ZIPROOT)/doc/manual/de_DE \
1630 -x!$(ZIPROOT)/doc/manual/fr_FR \
1631 -x!$(ZIPROOT)/src/tests \
1632 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1633 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1634 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1635 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1636 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1637 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1638 $(ZIPPATH)/$(ZIPNAME))
1639 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1640
1641
1642#
1643# Generate ALL the rules.
1644#
1645include $(FILE_KBUILD_SUB_FOOTER)
1646
1647
1648#
1649# Generate x86.mac and err.mac.
1650#
1651incs:
1652 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1653 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1654 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1655 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1656 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
1657 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1658 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1659 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1660
1661
1662#
1663# Legacy.
1664#
1665vslick.h:
1666 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1667 exit 1
1668
1669
1670#
1671# Add fetching of the tools to the 'up[date][2]' targets.
1672#
1673up update up2 update2::
1674ifndef VBOX_OSE
1675 +$(MAKE) -C tools fetch
1676else
1677 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1678endif
1679
1680
1681#
1682# For efficiently build serveral build types / archs.
1683#
1684both-debug-release both-release-debug: \
1685 build-release-$(KBUILD_TARGET_ARCH) \
1686 build-debug-$(KBUILD_TARGET_ARCH)
1687both-x86-amd64 both-amd64-x86: \
1688 build-$(KBUILD_TYPE)-x86 \
1689 build-$(KBUILD_TYPE)-x86
1690both-types-archs both-archs-types: \
1691 build-debug-x86 \
1692 build-release-x86 \
1693 build-debug-amd64 \
1694 build-release-amd64
1695
1696build-release-x86:
1697 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=x86
1698
1699build-debug-x86:
1700 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=x86
1701
1702build-release-amd64:
1703 +$(MAKE) KBUILD_TYPE=release KBUILD_TARGET_ARCH=amd64
1704
1705build-debug-amd64:
1706 +$(MAKE) KBUILD_TYPE=debug KBUILD_TARGET_ARCH=amd64
1707
1708
1709#
1710# Aliases for building the SDK.
1711#
1712.NOTPARALLEL: sdk sdk-fetch
1713sdk:
1714 + $(KMK) VBOX_ONLY_SDK=1 \
1715 pass_bldprogs pass_others pass_installs pass_packing
1716
1717sdk-fetch:
1718 + $(KMK) VBOX_ONLY_SDK=1 -C tools
1719
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