VirtualBox

source: vbox/trunk/Makefile.kmk@ 77329

Last change on this file since 77329 was 76661, checked in by vboxsync, 6 years ago

/Makefile.kmk: Better variable/parameter name.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 87.6 KB
Line 
1# $Id: Makefile.kmk 76661 2019-01-06 19:21:38Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2019 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
30 ifdef VBOX_WITH_INCLUDE_SYNTAX_CHECKING
31 include $(PATH_SUB_CURRENT)/include/Makefile.kmk
32 endif
33endif
34
35#
36# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
37# from the build server), and it's not really worth the effort of dragging in
38#q this tool only if absolutely needed.
39#
40## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
41include $(KBUILD_PATH)/tools/ZIP.kmk
42ifndef TOOL_ZIP_PACK
43 TOOL_ZIP_PACK = zip
44endif
45
46
47## @todo split up this file!
48
49
50#
51# Clean up global stuff that Config.kmk generates.
52#
53OTHER_CLEAN += \
54 $(VBOX_PACKAGE_HEADER) \
55 $(VBOX_LICENSE_VER_KMK) \
56 $(VBOX_VERSION_MK) \
57 $(VBOX_VERSION_HEADER) \
58 $(VBOX_VERSION_STAMP) \
59 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
60 $(VBOX_SVN_REV_KMK).ts \
61 $(VBOX_SVN_REV_KMK) \
62 $(PATH_OUT)/DynamicConfig.kmk
63
64
65if !defined(VBOX_ONLY_ADDITIONS) \
66 && !defined(VBOX_ONLY_DOCS) \
67 && !defined(VBOX_ONLY_EXTPACKS) \
68 && !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
69
70 if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
71 #
72 # Install the license (and misc non-executable stuff).
73 #
74 INSTALLS += InstallLicenseFiles
75 InstallLicenseFiles_INST = $(INST_BIN)
76 InstallLicenseFiles_MODE = 0644
77 InstallLicenseFiles_SOURCES =
78 InstallLicenseFiles_SOURCES += \
79 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
80 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
81 endif
82
83
84#
85# Install external binaries (mostly redistributable parts of tools we use).
86#
87# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
88# and .linux property suffixes.
89#
90INSTALLS += InstallExternalLibs
91
92InstallExternalLibs_INST = $(INST_BIN)
93
94# The SDL DLLs
95if1of ($(KBUILD_TARGET), win os2)
96 ifdef VBOX_WITH_VBOXSDL
97 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
98 InstallExternalLibs_SOURCES += \
99 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
100 ifdef VBOX_WITH_SECURELABEL
101 InstallExternalLibs_SOURCES += \
102 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
103 endif
104 ifeq ($(KBUILD_TARGET),os2)
105 InstallExternalLibs_SOURCES += \
106 $(DLL_SDK_LIBSDL_FSLIB)
107 endif
108 endif
109endif
110
111
112# The compiler runtime DLLs.
113ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
114 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
115 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
116 VBOX_VCC_REDIR_BASE := Microsoft.VC$(substr $(VBOX_VCC_TOOL),4,3)
117 VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
118 VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).CRT
119 VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).DebugCRT
120 VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/$(VBOX_VCC_REDIR_BASE).CRT
121 VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/$(VBOX_VCC_REDIR_BASE).DebugCRT
122
123 InstallExternalLibs_SOURCES += \
124 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
125 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
126 $(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 \
127 $(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
128 ifdef VBOX_WITH_32_ON_64_MAIN_API
129 InstallExternalLibs_SOURCES += \
130 $(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 \
131 $(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
132 endif
133 ifeq ($(VBOX_VCC_CRT_TYPE),d)
134 InstallExternalLibs_SOURCES += \
135 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
136 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
137 $(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 \
138 $(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
139 ifdef VBOX_WITH_32_ON_64_MAIN_API
140 InstallExternalLibs_SOURCES += \
141 $(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 \
142 $(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
143 endif
144 endif
145endif
146
147#
148# Install our Qt DLLs / Shared Objects / Frameworks.
149# Note: The installer fixes the darwin .dylibs when hardening is enabled.
150# Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
151# https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
152# the Info.plist file goes into Resources.
153#
154ifeq ($(KBUILD_TARGET),darwin)
155 include $(KBUILD_PATH)/units/qt5.kmk
156 INSTALLS += qt5-bin
157 qt5-bin_MODE = 755
158 qt5-bin_INST = $(INST_VIRTUALBOX)Contents/
159 qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
160 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/5/$(qtmod) \
161 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/5/Resources/Info.plist)
162 qt5-bin_SOURCES += \
163 $(PATH_SDK_QT5)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \
164 $(PATH_SDK_QT5)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \
165 $(PATH_SDK_QT5)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL)
166 qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
167 Frameworks/$(qtmod).framework/Versions/Current=>5 \
168 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/5/$(qtmod) \
169 Frameworks/$(qtmod).framework/Resources=>Versions/5/Resources)
170else # win x11
171 if1of ($(KBUILD_TARGET), linux solaris)
172 ifndef VBOX_ONLY_BUILD
173 ifneq ($(VBOX_GCC_VERSION_CXX),)
174 ifeq ($(int-ge $(VBOX_GCC_VERSION_CXX),40400),)
175 $(error gcc >= 4.4 required when compiling against Qt5!)
176 endif
177 endif
178 endif
179 endif
180 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
181 include $(KBUILD_PATH)/units/qt5.kmk
182 ifeq ($(KBUILD_TARGET),win)
183 INSTALLS += qt5-bin
184 qt5-bin_MODE = 755
185 qt5-bin_INST = $(INST_BIN)
186 qt5-bin_SOURCES = \
187 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL)))
188 qt5-bin_SOURCES += \
189 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \
190 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \
191 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL)
192 ifdef VBOX_WITH_QT_PDBS
193 qt5-bin_SOURCES += \
194 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
195 endif # VBOX_WITH_QT_PDBS
196 else # x11
197 INSTALLS += qt5-bin
198 qt5-bin_MODE = 755
199 qt5-bin_INST = $(INST_BIN)
200 ifdef VBOX_WITH_HARDENING
201 # The wildcards are necessary to install the libs instead of the symlinks
202 qt5-bin_SOURCES = \
203 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*)=>lib$(qtmod).so.5) \
204 $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
205 ifneq ($(KBUILD_TARGET),solaris)
206 qt5-bin_SOURCES += \
207 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(wildcard $(VBOX_PATH_QT_LIB)/legacy/$(lib).*.*)=>legacy/$(lib))
208 endif # solaris
209 else # !VBOX_WITH_HARDENING
210 # For non-hardened builds we need to remove the RUNPATH. This stuff is
211 # ugly but we need to prevent kBuild from hard-linking otherwise we
212 # (indirectly) change the binaries in tools
213 ifneq ($(KBUILD_TARGET),solaris)
214 QT5_VERSION = 5.6.1
215 else
216 QT5_VERSION = 5.6.2
217 endif
218 qt5-bin_SOURCES = \
219 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \
220 $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib))
221 ifneq ($(KBUILD_TARGET),solaris)
222 qt5-bin_SOURCES += \
223 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(qt5-bin_0_OUTDIR)/$(lib)=>legacy/$(lib))
224 endif # solaris
225
226$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)): \
227 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt5-bin_0_OUTDIR)/
228 $(call MSG_INST_FILE,$^,$@)
229 $(QUIET)$(CP) $^ $@
230 $(QUIET)chrpath --delete $@
231
232 ifn1of ($(KBUILD_TARGET),solaris linux)
233$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
234 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
235 $(call MSG_INST_FILE,$^,$@)
236 $(QUIET)$(MKDIR) -p $(@D)
237 $(QUIET)$(CP) $^ $@
238 $(QUIET)chrpath --delete $@
239 endif # !solaris and !linux
240
241 # @todo For solaris and some linuxes dlopen fails to navigate executable rpath to dependent libraries,
242 # so add explicit rpath for libqxcb.so, find better solution later.
243 if1of ($(KBUILD_TARGET),solaris linux)
244$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
245 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
246 $(call MSG_INST_FILE,$^,$@)
247 $(QUIET)$(MKDIR) -p $(@D)
248 $(QUIET)$(CP) $^ $@
249 $(QUIET)chrpath --replace "\$$ORIGIN/../../" $@
250 endif # solaris linux
251
252$(foreach lib,$(VBOX_QT_LEGACY_LIBS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
253 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/legacy/% | $$(qt5-bin_0_OUTDIR)/
254 $(call MSG_INST_FILE,$^,$@)
255 $(QUIET)$(CP) $^ $@
256 $(QUIET)chrpath --delete $@
257
258 endif # !VBOX_WITH_HARDENING
259 endif # x11
260 endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD
261endif # win x11
262
263
264#
265# Install additions iso from the build server if configured to do so.
266#
267# Note! For building the combined package, just get the additions .ISO
268# once for amd64 to prevent version inconsistences. In all other
269# cases we get the .ISO per target architecture.
270#
271if defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
272 && ( !defined(VBOX_WITH_COMBINED_PACKAGE) \
273 || "$(KBUILD_TARGET_ARCH)" == "amd64" )
274 INSTALLS += buildserver-additions
275 buildserver-additions_INST = $(INST_ADDITIONS_ISO)
276 buildserver-additions_MODE = 0644
277 buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
278 buildserver-additions_CLEANS = \
279 $(buildserver-additions_0_OUTDIR)/unpacked.ts \
280 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
281 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
282 $(PATH_TARGET)/VBoxGuestAdditions.iso
283
284 $$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
285 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
286 $(call MSG_L1,Unpacking additions archive)
287 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
288 $(TOUCH) -c -- $(PATH_TARGET)/VBoxGuestAdditions.iso
289 $(APPEND) -t $@ "done"
290
291 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
292 $(RM) -f -- "$@" "[email protected]"
293 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
294 $(MV) -f -- "[email protected]" "$@"
295
296endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER unless win.x86+combined
297
298
299#
300# Install documentation files (at the moment the .chm) from the build server.
301#
302ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
303## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
304INSTALLS += buildserver-docs
305buildserver-docs_INST = $(INST_BIN)
306buildserver-docs_MODE = 0644
307buildserver-docs_SOURCES = \
308 $(addprefix $(PATH_TARGET)/, \
309 VirtualBox.chm UserManual.pdf \
310 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
311buildserver-docs_CLEANS = \
312 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
313 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
314 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
315 $(addprefix $(PATH_TARGET)/, \
316 VirtualBox.chm UserManual.pdf \
317 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
318
319$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
320$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
321 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
322 $(call MSG_L1,Unpacking documentation)
323 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
324 $(TOUCH) -c -- $(PATH_TARGET)/VirtualBox.chm \
325 $(PATH_TARGET)/UserManual.pdf \
326 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf)
327 $(APPEND) -t $@ "done"
328
329$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
330 $(RM) -f -- "$@" "[email protected]"
331 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
332 $(MV) -f -- "[email protected]" "$@"
333
334endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
335
336
337 ifdef VBOX_WITH_EFI
338 #
339 # Install EFI firmware image
340 #
341 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
342 #
343 # Either from the build server.
344 #
345 ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
346 include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
347 endif
348 INSTALLS += buildserver-efifw
349 buildserver-efifw_INST = $(INST_BIN)
350 buildserver-efifw_MODE = 0644
351 buildserver-efifw_SOURCES = \
352 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
353 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
354 buildserver-efifw_CLEANS = \
355 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
356 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
357 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
358 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
359 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
360 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
361
362 INSTALLS += buildserver-efifw-dbg-amd64
363 buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
364 buildserver-efifw-dbg-amd64_MODE = 0644
365 buildserver-efifw-dbg-amd64_SOURCES = \
366 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
367
368 INSTALLS += buildserver-efifw-dbg-x86
369 buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
370 buildserver-efifw-dbg-x86_MODE = 0644
371 buildserver-efifw-dbg-x86_SOURCES = \
372 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
373
374 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
375 +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
376 $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
377 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
378 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
379 $(call MSG_L1,Unpacking EFI firmware)
380 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
381 $(foreach arch, amd64 x86, \
382 $(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
383 $(foreach mod,$(VBOX_EFI_MODULES_FLAT) \
384 ,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
385 $(TOUCH) -c -- $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
386 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
387 $(APPEND) -t $@ "done"
388
389 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
390 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
391 $(RM) -f -- "$@" "[email protected]"
392 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
393 $(MV) -f -- "[email protected]" "$@"
394
395 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
396 #
397 # Or from the local copy (no debug).
398 #
399 INSTALLS += local-efifw
400 local-efifw_INST = $(INST_BIN)
401 local-efifw_MODE = 0644
402 local-efifw_SOURCES = \
403 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
404 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
405 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
406 endif # VBOX_WITH_EFI
407
408
409ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
410#
411# Get the extension pack from from the build server to facility the automatic
412# testing (everything in one tarball (VBoxAll-*)).
413#
414# Note! Using the plural here as we might be downloading more packages eventually.
415#
416INSTALLS += buildserver-extpacks
417buildserver-extpacks_INST = $(INST_DIST)
418buildserver-extpacks_MODE = 0644
419buildserver-extpacks_SOURCES = \
420 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
421buildserver-extpacks_CLEANS = \
422 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
423 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
424
425$$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
426 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
427 $(RM) -f -- "[email protected]" "$@"
428 $(SHELL) $(PATH_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "[email protected]" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
429 $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
430 $(MV) -f -- "[email protected]" "$@"
431 $(TOUCH) -- "$@"
432
433endif
434
435
436#
437# Install staged binaries on platforms where we can't cross
438# compile things.
439#
440ifn1of ($(KBUILD_TARGET), linux win)
441 VBOX_PATH_STAGED ?= .
442
443 # Additions.
444 ifndef VBOX_WITH_LINUX_ADDITIONS
445 ifndef VBOX_WITH_WIN32_ADDITIONS
446 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
447 INSTALLS += staged-additions
448 staged-additions_INST = $(INST_ADDITIONS_ISO)
449 staged-additions_MODE = 0644
450 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
451 endif
452 endif
453 endif
454
455 # guesttool.exe
456 ifndef VBOX_WITH_WIN32_ADDITIONS
457 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
458 INSTALLS += staged-guesttool
459 staged-guesttool_INST = $(INST_BIN)
460 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
461 endif
462 endif
463
464endif
465
466endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
467
468
469ifdef VBOX_ONLY_DOCS
470# It may sound a bit odd, but for preparing the documentation package the
471# doxygen documentation isn't needed and increases the build time a lot.
472docs:
473else # !VBOX_ONLY_DOCS
474#
475# Generate documentation.
476# (This should be converted into a separate pass or merged with an existing one later.)
477#
478 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
479docs: docs.Core
480 endif
481endif # !VBOX_ONLY_DOCS
482
483#
484# The core (VMM+REM+Devices+Main) documentation.
485#
486# This includes so much because we wish to have the complete CFGM
487# and GCFGM lists.
488#
489VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
490BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
491OTHER_CLEAN += \
492 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
493 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
494
495VBOX_CORE_DOXYFILE_INPUT_DIRS = \
496 include/iprt \
497 include/iprt/cpp \
498 include/iprt/crypto \
499 include/iprt/formats \
500 include/iprt/linux \
501 include/iprt/nt \
502 include/iprt/solaris \
503 include/iprt/win \
504 include/iprt/nocrt \
505 include/VBox \
506 include/VBox/vmm \
507 include/VBox/com \
508 include/VBox/ExtPack \
509 include/VBox/HostServices \
510 include/VBox/GuestHost \
511 include/VBox/HGSMI \
512 src/VBox/VMM \
513 src/VBox/VMM/VMMR0 \
514 src/VBox/VMM/VMMRC \
515 src/VBox/VMM/VMMR3 \
516 src/VBox/VMM/VMMAll \
517 src/VBox/VMM/VMMSwitcher \
518 src/VBox/VMM/include \
519 src/VBox/Debugger \
520 src/VBox/Devices \
521 src/VBox/Devices/Audio \
522 src/VBox/Devices/Bus \
523 src/VBox/Devices/Graphics \
524 src/VBox/Devices/Graphics/BIOS \
525 src/VBox/Devices/Graphics/shaderlib \
526 src/VBox/Devices/Input \
527 src/VBox/Devices/Networking \
528 src/VBox/Devices/PC \
529 src/VBox/Devices/PC/BIOS \
530 src/VBox/Devices/Parallel \
531 src/VBox/Devices/Serial \
532 src/VBox/Devices/Storage \
533 src/VBox/Devices/USB \
534 src/VBox/Devices/USB/darwin \
535 src/VBox/Devices/USB/linux \
536 src/VBox/Devices/USB/os2 \
537 src/VBox/Devices/USB/solaris \
538 src/VBox/Devices/USB/vrdp \
539 src/VBox/Devices/USB/win32 \
540 src/VBox/Devices/VMMDev \
541 src/VBox/Main/include \
542 src/VBox/Main/include/hgcm \
543 src/VBox/Main \
544 src/VBox/Main/glue \
545 src/VBox/Main/webservice \
546 src/VBox/Main/xml \
547 src/VBox/Main/src-all \
548 src/VBox/Main/src-all/win \
549 src/VBox/Main/src-client \
550 src/VBox/Main/src-client/win \
551 src/VBox/Main/src-client/xpcom \
552 src/VBox/Main/src-server \
553 src/VBox/Main/src-server/darwin \
554 src/VBox/Main/src-server/linux \
555 src/VBox/Main/src-server/os2 \
556 src/VBox/Main/src-server/solaris \
557 src/VBox/Main/src-server/win \
558 src/VBox/Main/src-server/xpcom \
559 src/VBox/HostServices \
560 src/VBox/HostServices/DragAndDrop \
561 src/VBox/HostServices/GuestControl \
562 src/VBox/HostServices/GuestProperties \
563 src/VBox/HostServices/SharedClipboard \
564 src/VBox/HostServices/SharedFolders \
565 src/VBox/HostServices/SharedOpenGL \
566 src/VBox/HostServices/SharedOpenGL/crserver \
567 src/VBox/HostServices/SharedOpenGL/crserverlib \
568 src/VBox/HostServices/SharedOpenGL/render \
569 src/VBox/HostServices/SharedOpenGL/unpacker \
570 src/VBox/HostServices/auth \
571 src/VBox/HostServices/auth/directoryservice \
572 src/VBox/HostServices/auth/pam \
573 src/VBox/HostServices/auth/simple \
574 src/VBox/HostServices/auth/winlogon \
575 src/VBox/HostDrivers/Support \
576 src/VBox/HostDrivers/Support/darwin \
577 src/VBox/HostDrivers/Support/freebsd \
578 src/VBox/HostDrivers/Support/linux \
579 src/VBox/HostDrivers/Support/os2 \
580 src/VBox/HostDrivers/Support/solaris \
581 src/VBox/HostDrivers/Support/win \
582 src/VBox/HostDrivers/VBoxNetFlt \
583 src/VBox/HostDrivers/VBoxNetFlt/darwin \
584 src/VBox/HostDrivers/VBoxNetFlt/linux \
585 src/VBox/HostDrivers/VBoxNetFlt/solaris \
586 src/VBox/HostDrivers/VBoxNetFlt/win \
587 src/VBox/HostDrivers/VBoxNetNat \
588 src/VBox/HostDrivers/VBoxNetNat/darwin \
589 src/VBox/HostDrivers/VBoxNetNat/linux \
590 src/VBox/HostDrivers/VBoxNetNat/solaris \
591 src/VBox/HostDrivers/VBoxNetNat/win \
592 src/VBox/HostDrivers/VBoxNetAdp \
593 src/VBox/HostDrivers/VBoxNetAdp/darwin \
594 src/VBox/HostDrivers/VBoxNetAdp/linux \
595 src/VBox/HostDrivers/VBoxNetAdp/solaris \
596 src/VBox/HostDrivers/VBoxNetAdp/win \
597 src/VBox/HostDrivers/VBoxPci \
598 src/VBox/HostDrivers/VBoxPci/darwin \
599 src/VBox/HostDrivers/VBoxPci/linux \
600 src/VBox/HostDrivers/VBoxPci/solaris \
601 src/VBox/HostDrivers/VBoxPci/win \
602 src/VBox/HostDrivers/VBoxUSB \
603 src/VBox/HostDrivers/VBoxUSB/darwin \
604 src/VBox/HostDrivers/VBoxUSB/os2 \
605 src/VBox/HostDrivers/VBoxUSB/solaris \
606 src/VBox/HostDrivers/VBoxUSB/win \
607 src/VBox/HostDrivers/VBoxUSB/win/Device \
608 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
609 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
610 src/VBox/HostDrivers/VBoxUSB/win/Filter \
611 src/VBox/HostDrivers/VBoxUSB/win/Install \
612 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
613 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
614 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
615 src/VBox/HostDrivers/VBoxUSB/win/usbd \
616 src/VBox/Additions \
617 src/VBox/Additions/WINNT \
618 src/VBox/Additions/WINNT/Graphics \
619 src/VBox/Additions/WINNT/Graphics/Video \
620 src/VBox/Additions/WINNT/Graphics/Video/common \
621 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
622 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
623 src/VBox/Additions/WINNT/Graphics/Video/disp \
624 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
625 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
626 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
627 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
628 src/VBox/Additions/WINNT/Graphics/Video/mp \
629 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
630 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
631 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
632 src/VBox/Additions/WINNT/Graphics/Wine_new \
633 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
634 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
635 src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
636 src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
637 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
638 src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
639 src/VBox/Additions/WINNT/Installer \
640 src/VBox/Additions/WINNT/Installer/ISO \
641 src/VBox/Additions/WINNT/Installer/InstallHelper \
642 src/VBox/Additions/WINNT/Installer/Languages \
643 src/VBox/Additions/WINNT/Installer/Loader \
644 src/VBox/Additions/WINNT/Mouse \
645 src/VBox/Additions/WINNT/Mouse/NT5 \
646 src/VBox/Additions/WINNT/Mouse/common \
647 src/VBox/Additions/WINNT/SharedFolders \
648 src/VBox/Additions/WINNT/SharedFolders/redirector \
649 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
650 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
651 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
652 src/VBox/Additions/WINNT/VBoxCredProv \
653 src/VBox/Additions/WINNT/VBoxGINA \
654 src/VBox/Additions/WINNT/VBoxHook \
655 src/VBox/Additions/WINNT/VBoxTray \
656 src/VBox/Additions/WINNT/VBoxUSB \
657 src/VBox/Additions/WINNT/i8042prt \
658 src/VBox/Additions/WINNT/i8042prt/i386 \
659 src/VBox/Additions/WINNT/i8042prt/include \
660 src/VBox/Additions/WINNT/include \
661 src/VBox/Additions/common \
662 src/VBox/Additions/common/VBoxControl \
663 src/VBox/Additions/common/VBoxGuest \
664 src/VBox/Additions/common/VBoxGuest/freebsd \
665 src/VBox/Additions/common/VBoxGuest/linux \
666 src/VBox/Additions/common/VBoxGuest/win \
667 src/VBox/Additions/common/VBoxGuestLib \
668 src/VBox/Additions/common/VBoxService \
669 src/VBox/Additions/common/VBoxVideo \
670 src/VBox/Additions/common/crOpenGL \
671 src/VBox/Additions/common/crOpenGL/array \
672 src/VBox/Additions/common/crOpenGL/feedback \
673 src/VBox/Additions/common/crOpenGL/pack \
674 src/VBox/Additions/common/crOpenGL/passthrough \
675 src/VBox/Additions/common/pam \
676 src/VBox/Additions/darwin \
677 src/VBox/Additions/freebsd \
678 src/VBox/Additions/freebsd/Installer \
679 src/VBox/Additions/freebsd/drm \
680 src/VBox/Additions/freebsd/vboxvfs \
681 src/VBox/Additions/linux \
682 src/VBox/Additions/linux/drm \
683 src/VBox/Additions/linux/installer \
684 src/VBox/Additions/linux/selinux-fedora \
685 src/VBox/Additions/linux/sharedfolders \
686 src/VBox/Additions/os2 \
687 src/VBox/Additions/os2/VBoxGradd \
688 src/VBox/Additions/os2/VBoxGradd/graddlib \
689 src/VBox/Additions/os2/VBoxGrext \
690 src/VBox/Additions/os2/VBoxMouse \
691 src/VBox/Additions/os2/VBoxSF \
692 src/VBox/Additions/solaris \
693 src/VBox/Additions/solaris/DRM \
694 src/VBox/Additions/solaris/Installer \
695 src/VBox/Additions/solaris/SharedFolders \
696 src/VBox/Additions/solaris/SharedFolders/solaris10 \
697 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
698 src/VBox/Additions/solaris/Virtio \
699 src/VBox/Additions/x11 \
700 src/VBox/Additions/x11/Installer \
701 src/VBox/Additions/x11/VBoxClient \
702 src/VBox/Additions/x11/vboxmouse \
703 src/VBox/Additions/x11/vboxmouse/xorg70 \
704 src/VBox/Additions/x11/vboxmouse/xorg71 \
705 src/VBox/Additions/x11/vboxvideo \
706 src/VBox/NetworkServices \
707 src/VBox/NetworkServices/DHCP \
708 src/VBox/NetworkServices/NAT \
709 src/VBox/NetworkServices/NetLib \
710 src/VBox/Storage \
711 src/VBox/ValidationKit/ \
712 src/VBox/ValidationKit/docs/ \
713 src/VBox/ValidationKit/testdriver/ \
714 src/VBox/ValidationKit/bootsectors/ \
715 src/VBox/ValidationKit/bootsectors/bs3kit/ \
716 src/VBox/ValidationKit/tests/ \
717 src/VBox/ValidationKit/tests/additions/ \
718 src/VBox/ValidationKit/tests/api/ \
719 src/VBox/ValidationKit/tests/autostart/ \
720 src/VBox/ValidationKit/tests/benchmarks/ \
721 src/VBox/ValidationKit/tests/cpu/ \
722 src/VBox/ValidationKit/tests/installation/ \
723 src/VBox/ValidationKit/tests/network/ \
724 src/VBox/ValidationKit/tests/selftests/ \
725 src/VBox/ValidationKit/tests/smoketests/ \
726 src/VBox/ValidationKit/tests/storage/ \
727 src/VBox/ValidationKit/tests/teleportation/ \
728 src/VBox/ValidationKit/tests/unittests/ \
729 src/VBox/ValidationKit/tests/usb/ \
730 src/VBox/ValidationKit/common/ \
731 src/VBox/ValidationKit/utils/ \
732 src/VBox/ValidationKit/utils/TestExecServ/ \
733 src/VBox/ValidationKit/utils/cpu/ \
734 src/VBox/ValidationKit/utils/misc/ \
735 src/VBox/ValidationKit/utils/network/ \
736 src/VBox/ValidationKit/utils/nt/ \
737 src/VBox/ValidationKit/utils/usb/ \
738 src/VBox/ValidationKit/vms/ \
739 src/VBox/ValidationKit/testmanager/ \
740 src/VBox/ValidationKit/testmanager/core/ \
741 src/VBox/ValidationKit/testmanager/db/ \
742 src/VBox/ValidationKit/testmanager/debug/ \
743 src/VBox/ValidationKit/testmanager/cgi/ \
744 src/VBox/ValidationKit/testmanager/webui/ \
745 src/VBox/ValidationKit/testboxscript/ \
746
747# These must come first in order to make things look nice.
748VBOX_CORE_DOXYFILE_INPUT_FIRST =\
749 $(PATH_ROOT)/doc/VBox-doc.c \
750 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
751 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
752 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
753 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
754 $(PATH_ROOT)/include/VBox/cdefs.h \
755 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
756 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
757 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
758 $(PATH_ROOT)/include/VBox/vmm/mm.h \
759 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
760 $(PATH_ROOT)/include/VBox/vmm/selm.h \
761 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
762 $(PATH_ROOT)/include/VBox/vmm/patm.h \
763 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
764 $(PATH_ROOT)/include/VBox/vmm/stam.h \
765 $(PATH_ROOT)/include/VBox/vmm/em.h \
766 $(PATH_ROOT)/include/VBox/vmm/hm.h \
767 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
768 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
769 $(PATH_ROOT)/include/VBox/vmm/iem.h \
770 $(PATH_ROOT)/include/VBox/vmm/nem.h \
771 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
772 $(PATH_ROOT)/include/VBox/vmm/pdmifs.h \
773 $(PATH_ROOT)/include/VBox/vmm/pdmaudioifs.h \
774 $(PATH_ROOT)/include/VBox/vmm/pdmnetifs.h \
775 $(PATH_ROOT)/include/VBox/vmm/pdmserialifs.h \
776 $(PATH_ROOT)/include/VBox/vmm/pdmstorageifs.h \
777 $(PATH_ROOT)/include/VBox/vmm/rem.h \
778 $(PATH_ROOT)/include/VBox/vmm/iom.h \
779 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
780 $(PATH_ROOT)/include/VBox/vmm/gim.h \
781 $(PATH_ROOT)/include/VBox/vmm/tm.h \
782 $(PATH_ROOT)/include/VBox/vmm/csam.h \
783 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
784 \
785 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
786 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
787 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
788 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
789 $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
790 $(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
791 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
792 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
793 $(PATH_ROOT)/src/VBox/VMM/include/NEMInternal.h \
794 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
795 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
796 $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
797 $(PATH_ROOT)/src/VBox/VMM/include/CSAMInternal.h \
798 $(PATH_ROOT)/src/VBox/VMM/include/PATMInternal.h \
799 $(PATH_ROOT)/src/VBox/VMM/include/REMInternal.h \
800 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
801 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
802 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
803 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
804 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
805 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
806 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
807 \
808 $(PATH_ROOT)/include/VBox/vmm/vm.h \
809 \
810 $(PATH_ROOT)/include/VBox/sup.h \
811 $(PATH_ROOT)/include/VBox/vd.h \
812 $(PATH_ROOT)/include/VBox/types.h \
813 $(PATH_ROOT)/include/VBox/err.h \
814 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
815 $(PATH_ROOT)/include/VBox/dbggui.h \
816 $(PATH_ROOT)/include/VBox/dis.h \
817 $(PATH_ROOT)/include/VBox/disopcode.h \
818 $(PATH_ROOT)/include/VBox/intnet.h \
819 $(PATH_ROOT)/include/VBox/settings.h \
820 $(PATH_ROOT)/include/VBox/pci.h \
821 $(PATH_ROOT)/include/VBox/scsi.h \
822 $(PATH_ROOT)/include/VBox/shflsvc.h \
823 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
824 $(PATH_ROOT)/include/VBox/usb.h \
825 $(PATH_ROOT)/include/VBox/vusb.h \
826 \
827 $(PATH_ROOT)/include/VBox/log.h \
828 $(PATH_ROOT)/include/VBox/param.h \
829 $(PATH_ROOT)/include/VBox/version.h \
830 \
831 $(PATH_ROOT)/include/VBox/com/com.h
832
833VBOX_CORE_DOXYFILE_INPUT := \
834 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
835 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
836 , $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
837VBOX_CORE_DOXYFILE_INPUT := \
838 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
839 $(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)))
840
841# And some some additional stuff.
842VBOX_CORE_DOXYFILE_INPUT += \
843 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
844 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
845
846includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
847
848# Generate the Doxyfile
849$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
850 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
851 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
852 | $$(dir $$@)
853 $(QUIET)$(RM) -f $@ [email protected] [email protected]
854 $(QUIET)$(CP) -f Doxyfile.Core [email protected]
855 $(QUIET)$(APPEND) [email protected]
856 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
857 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
858 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
859 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
860 $(QUIET)$(APPEND) [email protected] "EXCLUDE = " \
861 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
862 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
863 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
864 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
865 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
866 $(QUIET)$(APPEND) [email protected]
867 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
868 $(QUIET)$(APPEND) [email protected]
869 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
870 $(QUIET)$(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
871 $(QUIET)$(APPEND) [email protected]
872 $(QUIET)$(MV) -f [email protected] $@
873 @$(APPEND) [email protected] "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
874 @$(APPEND) [email protected] "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
875
876# Do the actual job.
877$(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
878 | $(VBOX_CORE_DOXYFILE_OUTPUT)/
879 $(QUIET)$(RM) -f $@
880 $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
881 doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
882 $(SED) -n \
883 -e ':nextwarning' \
884 -e '/^ *$(DOLLAR)/d' \
885 -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
886 -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
887 -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
888 -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
889 -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
890 -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
891 \
892 -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
893 \
894 -e 'b end' \
895 -e ':ignore' \
896 -e 'n' \
897 -e '/^[[:space:]]/b ignore' \
898 -e '/^Possible candidates/b ignore' \
899 -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
900 -e 'b nextwarning' \
901 -e ':end' \
902 -e 'p' \
903 --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
904 $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
905 $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
906 $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
907 $(APPEND) $@
908
909docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
910
911#
912# This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
913# so the build box output is less confusing on failure.
914#
915ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
916 ifdef VBOX_WITH_SCM_CHECK_RUN
917 docs: scm.check.run
918 endif
919 .PHONY: scm.check.run
920 scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
921 $(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" \
922 $(if-expr "$(KBUILD_HOST)" == "darwin",-E DYLD_FALLBACK_LIBRARY_PATH="$(VBOX_PATH_TOOLS)/..",) -- \
923 $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
924endif
925
926
927#
928# Combined package build (windows only).
929#
930# The combined package is created by the x86 environment, so we do the amd64
931# packaging in the build phase since it's just a few very slow jobs. We hold
932# back the x86 build until the amd64 packaging starts, to try encourage
933# parallel execution.
934#
935# Note! VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1 is required because the additions
936# packing must be done in amd64 mode as it picks files from the x86 build.
937#
938
939VBOX_COMBINED_PACKAGE_DEFS := \
940 VBOX_WITH_COMBINED_PACKAGE=1 \
941 VBOX_WITH_ALL_DOXYGEN_TARGETS= \
942 VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1
943
944combined-package-fetch:
945 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64
946 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86
947
948combined-package-build-amd64:
949 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64
950
951combined-package-build-amd64-packing: combined-package-build-amd64
952 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64
953
954combined-package-build-x86: combined-package-build-amd64
955 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86
956
957combined-package-build: combined-package-build-amd64-packing combined-package-build-x86
958
959combined-package-packing:
960 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86
961
962
963
964#
965# Common rsync bits.
966#
967
968
969## Overridable ssh name.
970# On windows build boxes install https://github.com/PowerShell/Win32-OpenSSH/releases
971# and point to it in LocalConfig. (The cygwin ssh frequently segfaults due to
972# termination race or something along those lines.)
973VBOX_SSH ?= ssh
974VBOX_SSH_FOR_RSYNC ?= $(VBOX_SSH)
975
976## Overridable rsh name.
977VBOX_RSYNC ?= rsync --rsh="$(VBOX_SSH_FOR_RSYNC)"
978VBOX_RSYNC_NOSSH ?= rsync
979
980##
981# The basic rsync invocation for syncing the tree into a VM; the source and
982# target specs are missing.
983#
984# @param 1 os name.
985# @param 2 arch or *.
986# @param 3 nossh or empty
987#
988VBOX_RSYNC_IN_FN = $(if-expr "$(3)" != "nossh",$(VBOX_RSYNC),$(VBOX_RSYNC_NOSSH))\
989 -a -v --delete --delete-excluded --prune-empty-dirs \
990 --exclude=*.pyc \
991 --exclude=.svn/ \
992 --exclude=doc/Devices/ \
993 --exclude=doc/tg/ \
994 --exclude=doc/vp/ \
995 --exclude=tinderclient.log \
996 --exclude=tools/FetchDir/ \
997 --exclude=webtools/ \
998 --exclude=out/ \
999 $(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
1000 --exclude=tools/$(os).x86/ \
1001 --exclude=tools/$(os).amd64/ )
1002
1003#
1004# VM IP addresses.
1005#
1006VBOX_BLD_VM_LNX_IP := 192.168.27.2
1007VBOX_BLD_VM_OS2_IP := 192.168.27.3
1008VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
1009VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
1010VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
1011VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
1012VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
1013VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
1014VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
1015VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
1016
1017VBOX_WITH_OS2_ADD_BUILD=1
1018
1019#
1020# For profiling the VM building steps.
1021#
1022if 0
1023 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
1024 VBOX_BLD_VM_MSG_END__ =
1025else
1026 VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
1027 VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
1028endif
1029
1030#
1031# For killing old build jobs in the OS/2 VM before rsyncing.
1032#
1033VBOX_BLD_VM_OS2_KKILL_STUFF = $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "kkill -All -Tree kmk.exe gcc.exe & sleep.exe 1 & kkill -All gcc.exe emxomfld.exe as.exe kmk.exe "
1034
1035
1036#
1037# Build the additions, all of them.
1038#
1039# This is currently tailored (hardcoded) for the additions
1040# build box. Can make it pretty and configurable later.
1041#
1042# The fetching must be done in serial fashion, while the building
1043# should be more flexible wrt to -jN.
1044#
1045additions-fetch:
1046 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
1047 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
1048 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
1049 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1050 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1051ifdef VBOX_WITH_OS2_ADD_BUILD
1052 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
1053endif
1054 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1055 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1056 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1057 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1058
1059
1060## @todo Currently combined solaris additions building assumes that amd64 is
1061# built first. The windows amd64 additions need some x86 files, so don't change
1062# the order of the windows builds. TODO: Split building and packing for these two VMs.
1063additions-build: \
1064 additions-build-rsync-into-vms \
1065 additions-build-win.x86 \
1066 additions-build-win.amd64 \
1067 additions-build-solaris.amd64 \
1068 additions-build-solaris.x86 \
1069 additions-build-os2.x86 \
1070 additions-build-linux \
1071 additions-build-darwin.x86 \
1072 additions-build-darwin.amd64
1073
1074additions-build-rsync-into-vms: \
1075 additions-build-solaris.rsync-into-vm \
1076 additions-build-os2.rsync-into-vm \
1077 additions-build-darwin.x86.rsync-into-vm \
1078 additions-build-darwin.amd64.rsync-into-vm \
1079 additions-build-linux.rsync-into-vm
1080 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1081.NOTPARALLEL: additions-build-rsync-into-vms
1082.PHONY: additions-build-rsync-into-vms
1083
1084
1085VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1086 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1087 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1088 VBOX_SVN_REV=$(VBOX_SVN_REV)
1089
1090VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1091 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1092 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1093 VBOX_SVN_REV=$(VBOX_SVN_REV)
1094
1095# Automatically determine the additions build subdir name. Used for figuring
1096# out directory names inside the additions building VMs.
1097VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1098
1099# When building in parallel on a Windows host, make sure we finish the host
1100# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1101ifeq ($(KBUILD_TARGET),win)
1102VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
1103else
1104VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
1105endif
1106
1107# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1108ifeq ($(KBUILD_TARGET),win)
1109additions-build-win.amd64-just-build:
1110 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1111additions-build-win.amd64: additions-build-win.x86 additions-build-win.amd64-just-build
1112 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1113else
1114additions-build-win.amd64: additions-build-win.x86
1115 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
1116 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
1117 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
1118endif
1119
1120ifeq ($(KBUILD_TARGET),win)
1121additions-build-win.x86:
1122 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1123 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1124else
1125additions-build-win.x86:
1126 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
1127 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing '
1128 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
1129endif
1130
1131# ASSUMES the 64-bit edition are built first. This also serializes VM access.
1132ifeq ($(KBUILD_TARGET),solaris)
1133additions-build-solaris.amd64:
1134 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1135 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1136
1137additions-build-solaris.x86: additions-build-solaris.amd64
1138 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
1139 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
1140
1141additions-build-solaris.rsync-into-vm:
1142else
1143additions-build-solaris.rsync-into-vm:
1144 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1145 '--exclude=src/VBox/Additions/WINNT/**' \
1146 '--exclude=src/VBox/Frontends/**' \
1147 '--exclude=src/VBox/VMM/**' \
1148 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1149
1150additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
1151 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
1152 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
1153 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
1154 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
1155 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' 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 '
1156 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
1157
1158additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
1159 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1160 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1161
1162.NOTPARALLEL: additions-build-solaris.rsync-into-vm
1163.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
1164
1165additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
1166additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
1167endif
1168
1169ifdef VBOX_WITH_OS2_ADD_BUILD
1170 ifeq ($(KBUILD_TARGET),os2)
1171additions-build-os2.x86:
1172 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1173 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1174
1175additions-build-os2.rsync-into-vm:
1176 else
1177additions-build-os2.rsync-into-vm:
1178 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1179 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
1180 '--exclude=src/VBox/Additions/x11/**' \
1181 '--exclude=src/VBox/Additions/WINNT/**' \
1182 '--exclude=src/VBox/Frontends/**' \
1183 '--exclude=src/VBox/VMM/**' \
1184 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1185
1186additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
1187 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
1188 $(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- 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"
1189 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
1190
1191additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
1192 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1193 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1194
1195.NOTPARALLEL: additions-build-os2.rsync-into-vm
1196.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
1197
1198additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
1199 endif
1200#
1201else
1202additions-build-os2.x86:
1203# Dummy
1204endif
1205
1206# Linux
1207ifeq ($(KBUILD_TARGET),linux)
1208additions-build-linux.amd64:
1209 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1210 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1211
1212additions-build-linux.x86:
1213 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1214 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1215
1216additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1217 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1218 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1219else
1220additions-build-linux.rsync-into-vm:
1221 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1222 '--exclude=src/VBox/Additions/WINNT/**' \
1223 '--exclude=src/VBox/Frontends/**' \
1224 '--exclude=src/VBox/VMM/**' \
1225 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1226
1227additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1228 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1229 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1230 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) '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 " '
1231 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1232 endif
1233 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1234 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) '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) " '
1235 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1236 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1237 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1238 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) '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 " '
1239 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1240 endif
1241 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1242 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) '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) " '
1243 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1244 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1245 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) '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 " '
1246 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1247
1248additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1249 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1250 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1251
1252.NOTPARALLEL: additions-build-linux.rsync-into-vm
1253.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1254
1255additions-build-linux: additions-build-linux.rsync-out-of-vm
1256endif
1257
1258# Darwin
1259ifeq ($(KBUILD_TARGET),darwin)
1260additions-build-darwin.amd64:
1261 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1262 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1263
1264additions-build-darwin.x86:
1265 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1266 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1267
1268additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
1269.PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
1270else
1271additions-build-darwin.amd64.rsync-into-vm:
1272 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1273 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1274 '--exclude=src/libs/xpcom18a4/**' \
1275 '--exclude=src/libs/curl*/**' \
1276 '--exclude=src/libs/libxml*/**' \
1277 '--exclude=src/libs/libvpx*/**' \
1278 '--exclude=src/libs/libopus*/**' \
1279 '--exclude=src/VBox/Additions/WINNT/**' \
1280 '--exclude=src/VBox/Additions/x11/**' \
1281 '--exclude=src/VBox/Artwork/x11/**' \
1282 '--exclude=src/VBox/Devices/**' \
1283 '--exclude=src/VBox/Disassembler/**' \
1284 '--exclude=src/VBox/ExtPacks/**' \
1285 '--exclude=src/VBox/Frontends/**' \
1286 '--exclude=src/VBox/HostDriver/**' \
1287 '--exclude=src/VBox/HostService/**' \
1288 '--exclude=src/VBox/ImageMounter/**' \
1289 '--exclude=src/VBox/Installer/win/**' \
1290 '--exclude=src/VBox/Main/**' \
1291 '--exclude=src/VBox/NetworkService/**' \
1292 '--exclude=src/VBox/RDP/**' \
1293 '--exclude=src/VBox/Storage/**' \
1294 '--exclude=src/VBox/ValidationKit/**' \
1295 '--exclude=src/VBox/VMM/**' \
1296 '--exclude=src/apps/**' \
1297 '--exclude=src/recompiler/**' \
1298 . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1299
1300additions-build-darwin.x86.rsync-into-vm:
1301 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1302 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1303 '--exclude=src/libs/xpcom18a4/**' \
1304 '--exclude=src/libs/curl*/**' \
1305 '--exclude=src/libs/libxml*/**' \
1306 '--exclude=src/libs/libvpx*/**' \
1307 '--exclude=src/libs/libopus*/**' \
1308 '--exclude=src/VBox/Additions/WINNT/**' \
1309 '--exclude=src/VBox/Additions/x11/**' \
1310 '--exclude=src/VBox/Artwork/x11/**' \
1311 '--exclude=src/VBox/Devices/**' \
1312 '--exclude=src/VBox/Disassembler/**' \
1313 '--exclude=src/VBox/ExtPacks/**' \
1314 '--exclude=src/VBox/Frontends/**' \
1315 '--exclude=src/VBox/HostDriver/**' \
1316 '--exclude=src/VBox/HostService/**' \
1317 '--exclude=src/VBox/ImageMounter/**' \
1318 '--exclude=src/VBox/Installer/win/**' \
1319 '--exclude=src/VBox/Main/**' \
1320 '--exclude=src/VBox/NetworkService/**' \
1321 '--exclude=src/VBox/RDP/**' \
1322 '--exclude=src/VBox/Storage/**' \
1323 '--exclude=src/VBox/ValidationKit/**' \
1324 '--exclude=src/VBox/VMM/**' \
1325 '--exclude=src/apps/**' \
1326 '--exclude=src/recompiler/**' \
1327 . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1328
1329additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
1330 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
1331 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
1332 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
1333 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
1334
1335additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
1336 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
1337 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
1338# no pkgbuild # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
1339 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
1340
1341additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
1342 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1343
1344additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
1345 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1346
1347additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
1348additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
1349additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
1350
1351.PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
1352 additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
1353endif
1354
1355
1356additions-packing:
1357 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1358 VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
1359 VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
1360 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1361 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1362 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1363 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1364 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1365 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1366 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1367 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1368 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1369 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1370 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1371 -C src/VBox/Additions \
1372 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1373
1374.PHONY: \
1375 additions-build-win.x86 \
1376 additions-build-win.amd64 \
1377 additions-build-solaris.amd64 \
1378 additions-build-solaris.x86 \
1379 additions-build-os2.x86 \
1380 additions-build-linux \
1381 additions-build-linux.amd64 \
1382 additions-build-linux.x86 \
1383 additions-build-linux.x86.combined \
1384 additions-build-darwin \
1385 additions-build-darwin.x86 \
1386 additions-build-darwin.amd64 \
1387 additions-packing
1388
1389
1390#
1391# Build the extension packs, all of them.
1392#
1393# This is tailored (hardcoded) for the extension pack build box.
1394#
1395# The fetching must be done in serial fashion, while the building should be
1396# more flexible wrt to -jN.
1397#
1398extpacks-fetch:
1399 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1400 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1401 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1402# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1403# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1404 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1405 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1406# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1407 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1408 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1409 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1410
1411
1412extpacks-build: \
1413 extpacks-build-win.amd64 \
1414 extpacks-build-win.x86 \
1415 extpacks-build-solaris.amd64 \
1416 extpacks-build-os2.x86 \
1417 extpacks-build-linux \
1418 extpacks-build-darwin.amd64 \
1419 extpacks-build-freebsd.amd64 \
1420 extpacks-build-freebsd.x86
1421
1422VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1423 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1424 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1425 VBOX_SVN_REV=$(VBOX_SVN_REV)
1426
1427VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1428 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1429 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1430 VBOX_SVN_REV=$(VBOX_SVN_REV)
1431
1432# Automatically determine the extpack build subdir name. Used for figuring out
1433# directory names inside the extension pack building VMs.
1434VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1435
1436# When building in parallel on a Windows host, make sure we finish the host
1437# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1438ifeq ($(KBUILD_TARGET),win)
1439VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1440else
1441VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1442endif
1443
1444extpacks-build-win.amd64:
1445ifeq ($(KBUILD_TARGET),win)
1446 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1447else
1448 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1449 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1450 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1451endif
1452
1453extpacks-build-win.x86:
1454ifeq ($(KBUILD_TARGET),win)
1455 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1456else
1457 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1458 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all '
1459 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1460endif
1461
1462ifeq ($(KBUILD_TARGET),solaris)
1463extpacks-build-solaris.amd64:
1464 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1465
1466else
1467# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1468extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1469 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1470
1471extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1472 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1473 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1474 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1475
1476extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1477 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1478
1479#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1480.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1481
1482extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1483endif
1484
1485extpacks-build-os2.x86:
1486#ifeq ($(KBUILD_TARGET),os2)
1487# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1488#else
1489# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_OS2_IP) ' cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) '
1490#endif
1491
1492ifeq ($(KBUILD_TARGET),linux)
1493extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1494 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1495
1496extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1497 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1498
1499extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1500else
1501# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1502extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1503 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1504
1505extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1506 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1507 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all " '
1508 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1509 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1510 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) '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 " '
1511 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1512
1513extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1514 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1515 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1516
1517#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1518.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1519
1520extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1521endif
1522
1523extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1524#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1525# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1526#else
1527# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1528# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1529# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1530#endif
1531
1532extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1533#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1534# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1535#else
1536# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1537# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all '
1538# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1539#endif
1540
1541extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1542ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1543 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1544else
1545 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1546 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1547 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=amd64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1548 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1549 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1550endif
1551
1552extpacks-packing:
1553 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1554 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1555 packing
1556# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1557
1558.PHONY: \
1559 extpacks-build-win.x86 \
1560 extpacks-build-win.amd64 \
1561 extpacks-build-solaris.amd64 \
1562 extpacks-build-os2.x86 \
1563 extpacks-build-linux \
1564 extpacks-build-linux.amd64 \
1565 extpacks-build-linux.x86 \
1566 extpacks-build-freebsd.amd64 \
1567 extpacks-build-freebsd.x86 \
1568 extpacks-build-darwin.amd64 \
1569 extpacks-packing
1570
1571
1572#
1573# Build the test suite, all of it.
1574#
1575# This is currently tailored (hardcoded) for the additions build box just like
1576# the additions build above, which it in fact is a copy of.
1577#
1578validationkit-fetch:
1579 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1580 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1581 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1582# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1583# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1584 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1585 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1586 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1587 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1588 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1589 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1590 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1591
1592
1593validationkit-build: \
1594 validationkit-build-rsync-into-vms \
1595 validationkit-build-solaris.amd64 \
1596 validationkit-build-solaris.x86 \
1597 validationkit-build-win.x86 \
1598 validationkit-build-win.amd64 \
1599 validationkit-build-os2.x86 \
1600 validationkit-build-linux \
1601 validationkit-build-freebsd.amd64 \
1602 validationkit-build-freebsd.x86 \
1603 validationkit-build-darwin.amd64 \
1604 validationkit-build-darwin.x86
1605
1606validationkit-build-rsync-into-vms: \
1607 validationkit-build-solaris.rsync-into-vm \
1608 validationkit-build-os2.rsync-into-vm \
1609 validationkit-build-linux.rsync-into-vm
1610 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1611.NOTPARALLEL: validationkit-build-rsync-into-vms
1612.PHONY: validationkit-build-rsync-into-vms
1613
1614
1615VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1616 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1617 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1618 VBOX_SVN_REV=$(VBOX_SVN_REV)
1619
1620VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1621 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1622 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1623 VBOX_SVN_REV=$(VBOX_SVN_REV)
1624
1625# Automatically determine the Validation Kit build subdir name. Used for figuring
1626# out directory names inside the test suite building VMs.
1627VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1628
1629# When building in parallel on a Windows host, make sure we finish the host
1630# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1631ifeq ($(KBUILD_TARGET),win)
1632VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1633else
1634VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1635endif
1636
1637validationkit-build-win.amd64:
1638ifeq ($(KBUILD_TARGET),win)
1639 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1640else
1641 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1642 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1643 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1644endif
1645
1646validationkit-build-win.x86:
1647ifeq ($(KBUILD_TARGET),win)
1648 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1649else
1650 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1651 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1652 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1653endif
1654
1655ifeq ($(KBUILD_TARGET),solaris)
1656validationkit-build-solaris.amd64:
1657 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1658
1659validationkit-build-solaris.x86:
1660 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1661
1662else
1663validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1664 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1665 '--exclude=src/VBox/Additions/WINNT/**' \
1666 '--exclude=src/VBox/Frontends/**' \
1667 '--exclude=src/VBox/VMM/**' \
1668 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1669
1670validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1671 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1672 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1673 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1674 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1675 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1676 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1677
1678validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1679 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1680 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1681
1682.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1683
1684validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1685validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1686endif
1687
1688ifeq ($(KBUILD_TARGET),os2)
1689validationkit-build-os2.x86:
1690 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1691validationkit-build-os2.rsync-into-vm:
1692else # !OS/2
1693validationkit-build-os2.rsync-into-vm:
1694 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1695 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
1696 '--exclude=src/VBox/Additions/x11/**' \
1697 '--exclude=src/VBox/Additions/WINNT/**' \
1698 '--exclude=src/VBox/Frontends/**' \
1699 '--exclude=src/VBox/VMM/**' \
1700 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1701
1702validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1703 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1704 $(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- 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"
1705 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1706
1707validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1708 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1709 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1710
1711.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1712
1713validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1714endif # !OS/2
1715
1716ifeq ($(KBUILD_TARGET),linux)
1717validationkit-build-linux.amd64:
1718 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1719
1720validationkit-build-linux.x86:
1721 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1722
1723validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1724else
1725validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1726 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1727 '--exclude=src/VBox/Additions/WINNT/**' \
1728 '--exclude=src/VBox/Frontends/**' \
1729 '--exclude=src/VBox/VMM/**' \
1730 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1731
1732validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1733 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1734 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all " '
1735 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1736 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1737 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all " '
1738 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1739
1740validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1741 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1742 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1743
1744.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1745
1746validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1747endif
1748
1749validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1750#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1751# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1752#else
1753# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1754# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1755# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1756#endif
1757
1758validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1759#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1760# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1761#else
1762# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1763# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1764# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1765#endif
1766
1767validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1768ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1769 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1770else
1771 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1772 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1773 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1774 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1775 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1776endif
1777
1778validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1779ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1780 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1781else
1782 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1783 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1784 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1785 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1786 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1787endif
1788
1789
1790validationkit-packing:
1791 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1792 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1793 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1794 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1795 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1796 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1797 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1798 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1799 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1800 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1801 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1802 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1803 -C src/VBox/ValidationKit \
1804 $(PATH_OUT)/VBoxValidationKit.zip \
1805 $(PATH_OUT)/VBoxTestBoxScript.zip
1806
1807.PHONY: \
1808 validationkit-build-win.x86 \
1809 validationkit-build-win.amd64 \
1810 validationkit-build-solaris.amd64 \
1811 validationkit-build-solaris.x86 \
1812 validationkit-build-os2.x86 \
1813 validationkit-build-linux \
1814 validationkit-build-linux.amd64 \
1815 validationkit-build-linux.x86 \
1816 validationkit-build-freebsd.amd64 \
1817 validationkit-build-freebsd.x86 \
1818 validationkit-build-darwin.amd64 \
1819 validationkit-build-darwin.x86 \
1820 validationkit-packing
1821
1822
1823#
1824# Build the EFI firmware, all of it.
1825#
1826efi-fetch:
1827 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1828
1829efi-build: $(VBOX_VERSION_HEADER)
1830 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
1831
1832efi-packing:
1833 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
1834
1835
1836#
1837# Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
1838# - includes kBuild
1839# - must be executed on an PUEL checkout
1840#
1841
1842# the path where to store the zip archive
1843ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1844# the root directory inside the zip archive
1845ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1846# the name of the zip archive
1847ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1848snapshot-puel:
1849 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1850 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1851 echo; \
1852 echo "Did not find RDP stuff, is this an OSE branch?"; \
1853 echo; \
1854 exit 1; \
1855 fi
1856 @if [ -z "$(PASSWORD)" ]; then \
1857 echo; \
1858 echo "Please specify a password with PASSWORD=..."; \
1859 echo; \
1860 exit 1; \
1861 fi
1862 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1863 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1864 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1865 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1866 $(QUIET)(cd $(ZIPPATH); 7z a \
1867 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1868 -xr!.svn \
1869 -i!$(ZIPROOT)/Config.kmk \
1870 -i!$(ZIPROOT)/Doxyfile.Core \
1871 -i!$(ZIPROOT)/Makefile.kmk \
1872 -i!$(ZIPROOT)/configure \
1873 -i!$(ZIPROOT)/configure.vbs \
1874 -i!$(ZIPROOT)/doc \
1875 -i!$(ZIPROOT)/include \
1876 -i!$(ZIPROOT)/kBuild \
1877 -i!$(ZIPROOT)/src \
1878 -i!$(ZIPROOT)/tools/env.sh \
1879 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1880 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1881 -x!$(ZIPROOT)/doc/Devices \
1882 -x!$(ZIPROOT)/doc/\*pdf \
1883 -x!$(ZIPROOT)/doc/VMM \
1884 -x!$(ZIPROOT)/doc/licenses_old \
1885 -x!$(ZIPROOT)/doc/manual/de_DE \
1886 -x!$(ZIPROOT)/doc/manual/fr_FR \
1887 -x!$(ZIPROOT)/src/tests \
1888 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1889 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1890 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1891 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1892 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1893 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1894 $(ZIPPATH)/$(ZIPNAME))
1895 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1896
1897
1898#
1899# Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
1900# - includes kBuild
1901#
1902
1903snapshot-ose:
1904ifndef VBOX_OSE
1905 $(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
1906 $(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
1907 $(PATH_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
1908 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
1909 $(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
1910 $(PATH_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
1911else
1912 $(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
1913 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
1914 $(REDIRECT) -C $(PATH_ROOT) -- \
1915 $(PATH_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
1916endif
1917
1918
1919#
1920# Generate ALL the rules.
1921#
1922include $(FILE_KBUILD_SUB_FOOTER)
1923
1924
1925#
1926# Generate x86.mac and err.mac.
1927#
1928incs:
1929 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1930 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1931 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1932 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
1933 $(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
1934 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
1935 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1936 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
1937 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1938 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1939
1940
1941#
1942# Legacy.
1943#
1944vslick.h:
1945 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
1946 exit 1
1947
1948
1949#
1950# Add fetching of the tools to the 'up[date][2]' targets.
1951#
1952up update up2 update2::
1953ifndef VBOX_OSE
1954 +$(MAKE) -C tools fetch
1955else
1956 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1957endif
1958
1959
1960
1961#
1962# Aliases for building the SDK.
1963#
1964.NOTPARALLEL: sdk sdk-fetch
1965sdk:
1966 + $(KMK) VBOX_ONLY_SDK=1 \
1967 pass_bldprogs pass_others pass_installs pass_packing
1968
1969sdk-fetch:
1970 + $(KMK) VBOX_ONLY_SDK=1 -C tools
1971
1972
1973#
1974# Build the essentials to run a VM. Incomplete. Use with care!
1975#
1976quick: \
1977 VBoxRT \
1978 VBoxVMM \
1979 VMMR0 \
1980 VBoxDD \
1981 VBoxDDR0 \
1982 VBoxDD2 \
1983 VBoxDD2R0 \
1984 VBoxC \
1985 VBoxSVC \
1986 $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
1987 $(if-expr defined(VBOX_WITH_REM),VBoxREM,) \
1988 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
1989 $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
1990 $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
1991
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