VirtualBox

source: vbox/trunk/Makefile.kmk@ 58144

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

*: Doxygen fixes.

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