VirtualBox

source: vbox/trunk/Makefile.kmk@ 54680

最後變更 在這個檔案從54680是 54680,由 vboxsync 提交於 10 年 前

Installer/darwin: Corrected frameworks so they're signable on 10.10 with xcode 6.1.1.

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette