VirtualBox

source: vbox/trunk/Makefile.kmk@ 59983

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

/Makefile.kmk: qt5-bin: Must re-sign qwindows.dll, qminimal.dll and qoffscreen.dll too.

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