VirtualBox

source: vbox/trunk/Makefile.kmk@ 59523

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

FE/Qt: Qt5 migration (part 80): Preparing Qt5 tool: Some cleanup and update for r105287.

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