VirtualBox

source: vbox/trunk/Makefile.kmk@ 60089

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

directory rule not required

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